functions.h
changeset 2125 edc17858f9f6
parent 2091 d28dc7eb23f6
child 2162 b98e430ffd10
equal deleted inserted replaced
2124:868ae25e586b 2125:edc17858f9f6
   126 uint32 InteractiveRandom(void); /* Used for random sequences that are not the same on the other end of the multiplayer link */
   126 uint32 InteractiveRandom(void); /* Used for random sequences that are not the same on the other end of the multiplayer link */
   127 uint InteractiveRandomRange(uint max);
   127 uint InteractiveRandomRange(uint max);
   128 
   128 
   129 
   129 
   130 // Used for profiling
   130 // Used for profiling
   131 #define TIC() { extern uint32 rdtsc(void); uint32 _xxx_ = rdtsc();
   131 #define TIC() { extern uint32 rdtsc(void); uint32 _xxx_ = rdtsc(); static float __avg__;
   132 #define TOC(s) 	_xxx_ = rdtsc() - _xxx_; printf("%s: %d\n", s, _xxx_); }
   132 #define TOC(s) 	_xxx_ = rdtsc() - _xxx_; __avg__=__avg__*0.99+_xxx_*0.01; printf("%s: %8d %f\n", s, _xxx_,__avg__); }
   133 
   133 
   134 
   134 
   135 void SetDate(uint date);
   135 void SetDate(uint date);
   136 /* facedraw.c */
   136 /* facedraw.c */
   137 void DrawPlayerFace(uint32 face, int color, int x, int y);
   137 void DrawPlayerFace(uint32 face, int color, int x, int y);