gl_defs.h (6150B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 typedef int8_t GLbyte; 6 typedef uint8_t GLubyte; 7 typedef int16_t GLshort; 8 typedef uint16_t GLushort; 9 typedef int32_t GLint; 10 typedef uint32_t GLuint; 11 typedef int64_t GLint64; 12 typedef uint64_t GLuint64; 13 14 typedef float GLfloat; 15 typedef double GLdouble; 16 17 typedef uint32_t GLenum; 18 typedef uint8_t GLboolean; 19 typedef uint32_t GLbitfield; 20 21 typedef int32_t GLsizei; 22 typedef size_t GLsizeiptr; 23 typedef intptr_t GLintptr; 24 25 #define GL_FALSE 0 26 #define GL_TRUE 1 27 28 #define GL_NONE 0 29 30 #define GL_NO_ERROR 0 31 #define GL_OUT_OF_MEMORY 0x0505 32 33 #define GL_RGBA32F 0x8814 34 #define GL_RGBA8 0x8058 35 #define GL_R8 0x8229 36 #define GL_R16 0x822A 37 #define GL_RG16 0x822C 38 #define GL_RGBA32I 0x8D82 39 #define GL_BGRA8 0x93A1 40 #define GL_RG8 0x822B 41 42 #define GL_BYTE 0x1400 43 #define GL_UNSIGNED_BYTE 0x1401 44 #define GL_SHORT 0x1402 45 #define GL_UNSIGNED_SHORT 0x1403 46 #define GL_INT 0x1404 47 #define GL_UNSIGNED_INT 0x1405 48 #define GL_FLOAT 0x1406 49 #define GL_DOUBLE 0x1408 50 51 #define GL_RED 0x1903 52 #define GL_GREEN 0x1904 53 #define GL_BLUE 0x1905 54 #define GL_ALPHA 0x1906 55 #define GL_RGB 0x1907 56 #define GL_RGBA 0x1908 57 #define GL_RGBA_INTEGER 0x8D99 58 #define GL_BGRA 0x80E1 59 #define GL_RG 0x8227 60 61 #define GL_DEPTH_COMPONENT 0x1902 62 #define GL_DEPTH_COMPONENT16 0x81A5 63 #define GL_DEPTH_COMPONENT24 0x81A6 64 #define GL_DEPTH_COMPONENT32 0x81A7 65 66 #define GL_ARRAY_BUFFER 0x8892 67 #define GL_ELEMENT_ARRAY_BUFFER 0x8893 68 69 #define GL_READ_FRAMEBUFFER 0x8CA8 70 #define GL_DRAW_FRAMEBUFFER 0x8CA9 71 #define GL_FRAMEBUFFER 0x8D40 72 #define GL_DRAW_FRAMEBUFFER_BINDING 0x8CA6 73 #define GL_READ_FRAMEBUFFER_BINDING 0x8CAA 74 #define GL_RENDERBUFFER 0x8D41 75 #define GL_COLOR_ATTACHMENT0 0x8CE0 76 #define GL_DEPTH_ATTACHMENT 0x8D00 77 #define GL_STENCIL_ATTACHMENT 0x8D20 78 #define GL_FRAMEBUFFER_COMPLETE 0x8CD5 79 #define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6 80 #define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7 81 #define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER 0x8CDB 82 #define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER 0x8CDC 83 #define GL_FRAMEBUFFER_UNSUPPORTED 0x8CDD 84 #define GL_COLOR_BUFFER_BIT 0x00004000 85 #define GL_DEPTH_BUFFER_BIT 0x00000100 86 #define GL_STENCIL_BUFFER_BIT 0x00000400 87 88 #define GL_PIXEL_PACK_BUFFER 0x88EB 89 #define GL_PIXEL_UNPACK_BUFFER 0x88EC 90 #define GL_PIXEL_PACK_BUFFER_BINDING 0x88ED 91 #define GL_PIXEL_UNPACK_BUFFER_BINDING 0x88EF 92 #define GL_UNPACK_ROW_LENGTH 0x0CF2 93 #define GL_UNPACK_ALIGNMENT 0x0CF5 94 95 #define GL_QUERY_RESULT 0x8866 96 #define GL_QUERY_RESULT_AVAILABLE 0x8867 97 #define GL_TIME_ELAPSED 0x88BF 98 #define GL_SAMPLES_PASSED 0x8914 99 100 #define GL_NEAREST 0x2600 101 #define GL_LINEAR 0x2601 102 #define GL_NEAREST_MIPMAP_NEAREST 0x2700 103 #define GL_NEAREST_MIPMAP_LINEAR 0x2702 104 #define GL_LINEAR_MIPMAP_NEAREST 0x2701 105 #define GL_LINEAR_MIPMAP_LINEAR 0x2703 106 #define GL_TEXTURE_WRAP_S 0x2802 107 #define GL_TEXTURE_WRAP_T 0x2803 108 #define GL_TEXTURE_MAG_FILTER 0x2800 109 #define GL_TEXTURE_MIN_FILTER 0x2801 110 #define GL_CLAMP_TO_EDGE 0x812F 111 #define GL_TEXTURE_2D 0x0DE1 112 #define GL_TEXTURE_3D 0x806F 113 #define GL_TEXTURE_2D_ARRAY 0x8C1A 114 #define GL_TEXTURE_RECTANGLE 0x84F5 115 #define GL_TEXTURE0 0x84C0 116 #define GL_TEXTURE1 0x84C1 117 #define GL_TEXTURE2 0x84C2 118 #define GL_TEXTURE3 0x84C3 119 #define GL_TEXTURE4 0x84C4 120 #define GL_TEXTURE5 0x84C5 121 #define GL_TEXTURE6 0x84C6 122 #define GL_TEXTURE7 0x84C7 123 #define GL_TEXTURE8 0x84C8 124 #define GL_TEXTURE9 0x84C9 125 #define GL_TEXTURE10 0x84CA 126 #define GL_TEXTURE11 0x84CB 127 #define GL_TEXTURE12 0x84CC 128 #define GL_TEXTURE13 0x84CD 129 #define GL_TEXTURE14 0x84CE 130 #define GL_TEXTURE15 0x84CF 131 #define GL_MAX_TEXTURE_UNITS 0x84E2 132 #define GL_MAX_TEXTURE_IMAGE_UNITS 0x8872 133 #define GL_MAX_TEXTURE_SIZE 0x0D33 134 #define GL_MAX_ARRAY_TEXTURE_LAYERS 0x88FF 135 #define GL_MIN_PROGRAM_TEXEL_OFFSET 0x8904 136 #define GL_MAX_PROGRAM_TEXEL_OFFSET 0x8905 137 138 #define GL_VERTEX_SHADER 0x8B31 139 #define GL_FRAGMENT_SHADER 0x8B30 140 141 #define GL_BLEND 0x0BE2 142 #define GL_ZERO 0 143 #define GL_ONE 1 144 #define GL_SRC_COLOR 0x0300 145 #define GL_ONE_MINUS_SRC_COLOR 0x0301 146 #define GL_SRC_ALPHA 0x0302 147 #define GL_ONE_MINUS_SRC_ALPHA 0x0303 148 #define GL_DST_ALPHA 0x0304 149 #define GL_ONE_MINUS_DST_ALPHA 0x0305 150 #define GL_DST_COLOR 0x0306 151 #define GL_ONE_MINUS_DST_COLOR 0x0307 152 #define GL_CONSTANT_COLOR 0x8001 153 #define GL_ONE_MINUS_CONSTANT_COLOR 0x8002 154 #define GL_CONSTANT_ALPHA 0x8003 155 #define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004 156 #define GL_SRC1_ALPHA 0x8589 157 #define GL_SRC1_COLOR 0x88F9 158 #define GL_ONE_MINUS_SRC1_COLOR 0x88FA 159 #define GL_ONE_MINUS_SRC1_ALPHA 0x88FB 160 161 #define GL_FUNC_ADD 0x8006 162 #define GL_MIN 0x8007 163 #define GL_MAX 0x8008 164 165 #define GL_NEVER 0x0200 166 #define GL_LESS 0x0201 167 #define GL_EQUAL 0x0202 168 #define GL_LEQUAL 0x0203 169 #define GL_GREATER 0x0204 170 #define GL_NOTEQUAL 0x0205 171 #define GL_GEQUAL 0x0206 172 #define GL_ALWAYS 0x0207 173 #define GL_DEPTH_TEST 0x0B71 174 #define GL_DEPTH_WRITEMASK 0x0B72 175 176 #define GL_SCISSOR_TEST 0x0C11 177 178 #define GL_VENDOR 0x1F00 179 #define GL_RENDERER 0x1F01 180 #define GL_VERSION 0x1F02 181 #define GL_EXTENSIONS 0x1F03 182 #define GL_NUM_EXTENSIONS 0x821D 183 #define GL_MINOR_VERSION 0x821C 184 #define GL_MAJOR_VERSION 0x821B 185 #define GL_SHADING_LANGUAGE_VERSION 0x8B8C 186 187 #define GL_POINTS 0x0000 188 #define GL_LINES 0x0001 189 #define GL_LINE_LOOP 0x0002 190 #define GL_LINE_STRIP 0x0003 191 #define GL_TRIANGLES 0x0004 192 #define GL_TRIANGLE_STRIP 0x0005 193 #define GL_TRIANGLE_FAN 0x0006 194 #define GL_QUADS 0x0007 195 196 #define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367 197 198 #define GL_RGB_422_APPLE 0x8A1F 199 #define GL_UNSIGNED_SHORT_8_8_APPLE 0x85BA 200 #define GL_UNSIGNED_SHORT_8_8_REV_APPLE 0x85BB 201 #define GL_RGB_RAW_422_APPLE 0x8A51 202 203 #define GL_MULTIPLY_KHR 0x9294 204 #define GL_SCREEN_KHR 0x9295 205 #define GL_OVERLAY_KHR 0x9296 206 #define GL_DARKEN_KHR 0x9297 207 #define GL_LIGHTEN_KHR 0x9298 208 #define GL_COLORDODGE_KHR 0x9299 209 #define GL_COLORBURN_KHR 0x929A 210 #define GL_HARDLIGHT_KHR 0x929B 211 #define GL_SOFTLIGHT_KHR 0x929C 212 #define GL_DIFFERENCE_KHR 0x929E 213 #define GL_EXCLUSION_KHR 0x92A0 214 #define GL_HSL_HUE_KHR 0x92AD 215 #define GL_HSL_SATURATION_KHR 0x92AE 216 #define GL_HSL_COLOR_KHR 0x92AF 217 #define GL_HSL_LUMINOSITY_KHR 0x92B0 218 219 #define SWGL_BLEND_DROP_SHADOW 0xB001 220 #define SWGL_BLEND_SUBPIXEL_TEXT 0xB002