您的位置:首页 > 运维架构

openGL note 1 : Command Suffixes and Argument Data Types

2009-12-10 22:43 429 查看
2009-12-10

正在学习openGL编程,记录些东西。

文章链接http://www.loria.fr/~roegel/cours/iut/opengl/addison.pdf

Command Suffixes and Argument Data Types

SuffixData TypeTypical Corresponding C-Language TypeOpenGL Type Definition
b8-bit integersigned charGLbyte
s16-bit integershortGLshort
i32-bit integerint or longGLint,GLsizei
f32-bit floating-pointfloatGLfloar,GLclampf
d64-bit floating-pointdoubleGLdouble,GLclampd
ub8-bit unsigned integerunsigned charGLubyte,GLboolean
us16-bit unsigned integerunsigned shortGLushort
ui32-bit unsigned integerunsigned int or unsigned longGLuint,GLenum,GLbittfield
OpenGL defines the typedef GLvoid. This is most often used for OpenGL commands that
accept pointers to arrays of values.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: