To main page..

OpenGL Enums Cheatsheet


GL_POINTS = 0 (0x0000)
GL_LINES = 1 (0x0001)
GL_TRIANGLES = 4 (0x0004)
GL_QUADS = 7 (0x0007)

GL_INVALID_ENUM 1280 (0x0500)
GL_INVALID_VALUE 1281 (0x0501)
GL_INVALID_OPERATION 1282 (0x0502)

GL_BYTE 5120 (0x1400)
GL_UNSIGNED_BYTE 5121 (0x1401)
GL_SHORT 5122 (0x1402)
GL_UNSIGNED_SHORT 5123 (0x1403)
GL_INT 5124 (0x1404)
GL_UNSIGNED_INT 5125 (0x1405)
GL_FLOAT 5126 (0x1406)

GL_RED 6403 (0x1903)
GL_RGB 6407 (0x1907)
GL_RGBA 6408 (0x1908)

GL_TEXTURE_2D 3553 (0x0DE1)
GL_TEXTURE_CUBE_MAP_POSITIVE_X 34'069 (0x8515)
GL_TEXTURE_CUBE_MAP_NEGATIVE_X 34'070 (0x8516)
GL_TEXTURE_CUBE_MAP_POSITIVE_Y 34'071 (0x8517)
GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 34'072 (0x8518)
GL_TEXTURE_CUBE_MAP_POSITIVE_Z 34'073 (0x8519)
GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 34'074 (0x851A)

GL_COMPRESSED_RGB 34'029 (0x84ED)
GL_COMPRESSED_RGBA 34'030 (0x84EE)

GL_ARRAY_BUFFER 34'962 (0x8892)
GL_ELEMENT_ARRAY_BUFFER 34'963 (0x8893)
© 2024 Oleg Loshkin   •  Powered by Jekyll   •   Theme  Moonwalk