home *** CD-ROM | disk | FTP | other *** search
/ Learn 3D Graphics Programming on the PC / Learn_3D_Graphics_Programming_on_the_PC_Ferraro.iso / rwwin / common.h_ / common.bin
Text File  |  1995-11-14  |  338b  |  9 lines

  1. int CheckDisplayDepth(HWND window);
  2. int AllowStretching(HWND window);
  3.  
  4. #define RANDOM_REAL(min, max) \
  5. (RAdd(min,RMul(RMul(INT2REAL(RwRandom()&0x7fff),CREAL(1.0/32768.0)), RSub(max, min))))                               
  6.  
  7. #define RANDOM_INT(min, max) \
  8. ((RwInt32)min + (((RwInt32)16383 + (RwRandom() & 0x7fff) * ((RwInt32)max - (RwInt32)min)) >> 15))
  9.