OpenGL Type
Posted LogiCoal
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了OpenGL Type相关的知识,希望对你有一定的参考价值。
C Type | Bitdepth | Description | Common Enum |
---|---|---|---|
GLboolean | 1+ | A boolean value, either GL_TRUE or GL_FALSE | |
GLbyte | 8 | Signed, 2‘s complement binary integer | GL_BYTE |
GLubyte | 8 | Unsigned binary integer | GL_UNSIGNED_BYTE |
GLshort | 16 | Signed, 2‘s complement binary integer | GL_SHORT |
GLushort | 16 | Unsigned binary integer | GL_UNSIGNED_SHORT |
GLint | 32 | Signed, 2‘s complement binary integer | GL_INT |
GLuint | 32 | Unsigned binary integer | GL_UNSIGNED_INT |
GLfixed | 32 | Signed, 2‘s complement 16.16 integer | GL_FIXED |
GLint64 | 64 | Signed, 2‘s complement binary integer | |
GLuint64 | 64 | Unsigned binary integer | |
GLsizei | 32 | A non-negative binary integer, for sizes. | |
GLenum | 32 | An OpenGL enumerator value | |
GLintptr | ptrbits?1 | Signed, 2‘s complement binary integer | |
GLsizeiptr | ptrbits?1 | Non-negative binary integer size, for memory offsets and ranges | |
GLsync | ptrbits?1 | Sync Object handle | |
GLbitfield | 32 | A bitfield value | |
GLhalf | 16 | An IEEE-754 floating-point value | GL_HALF_FLOAT |
GLfloat | 32 | An IEEE-754 floating-point value | GL_FLOAT |
GLclampf | 32 | An IEEE-754 floating-point value, clamped to the range [0,1] | |
GLdouble | 64 | An IEEE-754 floating-point value | GL_DOUBLE |
GLclampd | 64 | An IEEE-754 floating-point value, clamped to the range [0,1] |
以上是关于OpenGL Type的主要内容,如果未能解决你的问题,请参考以下文章