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
Wrap
Text File
|
1995-11-14
|
338b
|
9 lines
int CheckDisplayDepth(HWND window);
int AllowStretching(HWND window);
#define RANDOM_REAL(min, max) \
(RAdd(min,RMul(RMul(INT2REAL(RwRandom()&0x7fff),CREAL(1.0/32768.0)), RSub(max, min))))
#define RANDOM_INT(min, max) \
((RwInt32)min + (((RwInt32)16383 + (RwRandom() & 0x7fff) * ((RwInt32)max - (RwInt32)min)) >> 15))