#ifndef _COMMON_H #define _COMMON_H // basically the common header file; all // of everything includes this in RAVEN. // it prevents me from having to add commonly // included files to every file. #if defined(__linux__) # include # include # include # include # include "GLee.h" # include # include # include # include # include #elif defined(WIN32)||defined(__WIN32__)||defined(_MSC_VER) # include # include "GLee.h" # include # include # include # include # include # include #endif #ifndef UINT8 #define UINT8 unsigned char #endif // map smaller integer types to a 32 bit integer #define MSHORT2(a,b) (a|(b<<16)) #define MCHAR2(a,b) (a|(b<<8)) #define MCHAR4(a,b,c,d) (a|(b<<8)|(c<<16)|(d<<24)) // check if x is a power of two static inline bool is_pow2(const int x) { return (x&(x-1))==0; } // find the next power of two up from x static inline int next_pow2(const int x) { register int i; for (i=1; i