functions.h
changeset 2125 3098398bf7ff
parent 2091 97197b795fe6
child 2162 c1ded3bd3d0c
equal deleted inserted replaced
2124:425fb490ae70 2125:3098398bf7ff
   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);