OpenGL数据类型
OpenGL的数据类型定义可以与其它语言一致,但建议在ANSI C下最好使用以下定义的
据类型,如GLint、GLfloat等。
_______________________________________________________________
前缀 数据类型 相应C语言类型 OpenGL类型
_______________________________________________________________
b 8-bit integer signed char GLbyte
s 16-bit integer short GLshort
i 32-bit integer long GLint,GLsizei
f 32-bit floating-point float GLfloat,GLclampf
d 64-bit floating-point double GLdouble,GLclampd
ub 8-bit unsigned integer unsigned char GLubyte,GLboolean
us 16-bit unsigned integer unsigned short GLushort
ui 32-bit unsigned integer unsigned long GLuint,GLenum,GLbitfield
_______________________________________________________________