43 long random(
long howsmall,
long howbig)
45 if (howsmall >= howbig) {
48 long diff = howbig - howsmall;
49 return random(diff) + howsmall;
52 long map(
long x,
long in_min,
long in_max,
long out_min,
long out_max)
54 return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
58 unsigned int makeWord(
unsigned char h,
unsigned char l) {
return (h << 8) | l; }
GLubyte GLubyte GLubyte GLubyte w
void randomSeed(unsigned long seed)
GLint GLint GLint GLint GLint x
long map(long x, long in_min, long in_max, long out_min, long out_max)
unsigned int makeWord(unsigned int w)