Windows2003-3790/multimedia/opengl/inc/glsize.h
2020-09-30 16:53:55 +02:00

12 lines
330 B
C

#ifndef __GLSIZE_H__
#define __GLSIZE_H__
#define RANGE(n, a, b) \
(((unsigned)(n) >= (unsigned)(a)) && ((unsigned)(n) <= (unsigned)(b)))
#define __GLTYPESIZE(n) __glTypeSize[(n)-GL_BYTE]
extern GLint __glTypeSize[];
// #define RANGE_GLTYPESIZE(n) RANGE(n,GL_BYTE,GL_DOUBLE)
#endif /* !__GLSIZE_H__ */