Sat, 03 Jan 2015 20:18:00 +0100
Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.
michael@0 | 1 | /* |
michael@0 | 2 | * Copyright 2011 Google Inc. |
michael@0 | 3 | * |
michael@0 | 4 | * Use of this source code is governed by a BSD-style license that can be |
michael@0 | 5 | * found in the LICENSE file. |
michael@0 | 6 | */ |
michael@0 | 7 | |
michael@0 | 8 | |
michael@0 | 9 | |
michael@0 | 10 | #ifndef GrGLDefines_DEFINED |
michael@0 | 11 | #define GrGLDefines_DEFINED |
michael@0 | 12 | |
michael@0 | 13 | /* Profiles */ |
michael@0 | 14 | #define GR_GL_CONTEXT_PROFILE_MASK 0x9126 |
michael@0 | 15 | #define GR_GL_CONTEXT_CORE_PROFILE_BIT 0x00000001 |
michael@0 | 16 | #define GR_GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002 |
michael@0 | 17 | |
michael@0 | 18 | // The following constants consist of the intersection of GL constants |
michael@0 | 19 | // exported by GLES 1.0, GLES 2.0, and desktop GL required by the system. |
michael@0 | 20 | |
michael@0 | 21 | #define GR_GL_DEPTH_BUFFER_BIT 0x00000100 |
michael@0 | 22 | #define GR_GL_STENCIL_BUFFER_BIT 0x00000400 |
michael@0 | 23 | #define GR_GL_COLOR_BUFFER_BIT 0x00004000 |
michael@0 | 24 | |
michael@0 | 25 | /* Boolean */ |
michael@0 | 26 | #define GR_GL_FALSE 0 |
michael@0 | 27 | #define GR_GL_TRUE 1 |
michael@0 | 28 | |
michael@0 | 29 | /* BeginMode */ |
michael@0 | 30 | #define GR_GL_POINTS 0x0000 |
michael@0 | 31 | #define GR_GL_LINES 0x0001 |
michael@0 | 32 | #define GR_GL_LINE_LOOP 0x0002 |
michael@0 | 33 | #define GR_GL_LINE_STRIP 0x0003 |
michael@0 | 34 | #define GR_GL_TRIANGLES 0x0004 |
michael@0 | 35 | #define GR_GL_TRIANGLE_STRIP 0x0005 |
michael@0 | 36 | #define GR_GL_TRIANGLE_FAN 0x0006 |
michael@0 | 37 | |
michael@0 | 38 | /* AlphaFunction (not supported in ES20) */ |
michael@0 | 39 | /* GL_NEVER */ |
michael@0 | 40 | /* GL_LESS */ |
michael@0 | 41 | /* GL_EQUAL */ |
michael@0 | 42 | /* GL_LEQUAL */ |
michael@0 | 43 | /* GL_GREATER */ |
michael@0 | 44 | /* GL_NOTEQUAL */ |
michael@0 | 45 | /* GL_GEQUAL */ |
michael@0 | 46 | /* GL_ALWAYS */ |
michael@0 | 47 | |
michael@0 | 48 | /* BlendingFactorDest */ |
michael@0 | 49 | #define GR_GL_ZERO 0 |
michael@0 | 50 | #define GR_GL_ONE 1 |
michael@0 | 51 | #define GR_GL_SRC_COLOR 0x0300 |
michael@0 | 52 | #define GR_GL_ONE_MINUS_SRC_COLOR 0x0301 |
michael@0 | 53 | #define GR_GL_SRC_ALPHA 0x0302 |
michael@0 | 54 | #define GR_GL_ONE_MINUS_SRC_ALPHA 0x0303 |
michael@0 | 55 | #define GR_GL_DST_ALPHA 0x0304 |
michael@0 | 56 | #define GR_GL_ONE_MINUS_DST_ALPHA 0x0305 |
michael@0 | 57 | |
michael@0 | 58 | /* BlendingFactorSrc */ |
michael@0 | 59 | /* GL_ZERO */ |
michael@0 | 60 | /* GL_ONE */ |
michael@0 | 61 | #define GR_GL_DST_COLOR 0x0306 |
michael@0 | 62 | #define GR_GL_ONE_MINUS_DST_COLOR 0x0307 |
michael@0 | 63 | #define GR_GL_SRC_ALPHA_SATURATE 0x0308 |
michael@0 | 64 | /* GL_SRC_ALPHA */ |
michael@0 | 65 | /* GL_ONE_MINUS_SRC_ALPHA */ |
michael@0 | 66 | /* GL_DST_ALPHA */ |
michael@0 | 67 | /* GL_ONE_MINUS_DST_ALPHA */ |
michael@0 | 68 | |
michael@0 | 69 | /* ExtendedBlendFactors */ |
michael@0 | 70 | #define GR_GL_SRC1_COLOR 0x88F9 |
michael@0 | 71 | #define GR_GL_ONE_MINUS_SRC1_COLOR 0x88FA |
michael@0 | 72 | /* GL_SRC1_ALPHA */ |
michael@0 | 73 | #define GR_GL_ONE_MINUS_SRC1_ALPHA 0x88FB |
michael@0 | 74 | |
michael@0 | 75 | /* Separate Blend Functions */ |
michael@0 | 76 | #define GR_GL_BLEND_DST_RGB 0x80C8 |
michael@0 | 77 | #define GR_GL_BLEND_SRC_RGB 0x80C9 |
michael@0 | 78 | #define GR_GL_BLEND_DST_ALPHA 0x80CA |
michael@0 | 79 | #define GR_GL_BLEND_SRC_ALPHA 0x80CB |
michael@0 | 80 | #define GR_GL_CONSTANT_COLOR 0x8001 |
michael@0 | 81 | #define GR_GL_ONE_MINUS_CONSTANT_COLOR 0x8002 |
michael@0 | 82 | #define GR_GL_CONSTANT_ALPHA 0x8003 |
michael@0 | 83 | #define GR_GL_ONE_MINUS_CONSTANT_ALPHA 0x8004 |
michael@0 | 84 | #define GR_GL_BLEND_COLOR 0x8005 |
michael@0 | 85 | |
michael@0 | 86 | /* Buffer Objects */ |
michael@0 | 87 | #define GR_GL_ARRAY_BUFFER 0x8892 |
michael@0 | 88 | #define GR_GL_ELEMENT_ARRAY_BUFFER 0x8893 |
michael@0 | 89 | #define GR_GL_ARRAY_BUFFER_BINDING 0x8894 |
michael@0 | 90 | #define GR_GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895 |
michael@0 | 91 | |
michael@0 | 92 | #define GR_GL_STREAM_DRAW 0x88E0 |
michael@0 | 93 | #define GR_GL_STATIC_DRAW 0x88E4 |
michael@0 | 94 | #define GR_GL_DYNAMIC_DRAW 0x88E8 |
michael@0 | 95 | |
michael@0 | 96 | #define GR_GL_BUFFER_SIZE 0x8764 |
michael@0 | 97 | #define GR_GL_BUFFER_USAGE 0x8765 |
michael@0 | 98 | |
michael@0 | 99 | #define GR_GL_CURRENT_VERTEX_ATTRIB 0x8626 |
michael@0 | 100 | |
michael@0 | 101 | /* CullFaceMode */ |
michael@0 | 102 | #define GR_GL_FRONT 0x0404 |
michael@0 | 103 | #define GR_GL_BACK 0x0405 |
michael@0 | 104 | #define GR_GL_FRONT_AND_BACK 0x0408 |
michael@0 | 105 | |
michael@0 | 106 | /* DepthFunction */ |
michael@0 | 107 | /* GL_NEVER */ |
michael@0 | 108 | /* GL_LESS */ |
michael@0 | 109 | /* GL_EQUAL */ |
michael@0 | 110 | /* GL_LEQUAL */ |
michael@0 | 111 | /* GL_GREATER */ |
michael@0 | 112 | /* GL_NOTEQUAL */ |
michael@0 | 113 | /* GL_GEQUAL */ |
michael@0 | 114 | /* GL_ALWAYS */ |
michael@0 | 115 | |
michael@0 | 116 | /* EnableCap */ |
michael@0 | 117 | #define GR_GL_TEXTURE_2D 0x0DE1 |
michael@0 | 118 | #define GR_GL_CULL_FACE 0x0B44 |
michael@0 | 119 | #define GR_GL_BLEND 0x0BE2 |
michael@0 | 120 | #define GR_GL_DITHER 0x0BD0 |
michael@0 | 121 | #define GR_GL_STENCIL_TEST 0x0B90 |
michael@0 | 122 | #define GR_GL_DEPTH_TEST 0x0B71 |
michael@0 | 123 | #define GR_GL_SCISSOR_TEST 0x0C11 |
michael@0 | 124 | #define GR_GL_POLYGON_OFFSET_FILL 0x8037 |
michael@0 | 125 | #define GR_GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E |
michael@0 | 126 | #define GR_GL_SAMPLE_COVERAGE 0x80A0 |
michael@0 | 127 | #define GR_GL_POLYGON_OFFSET_FILL 0x8037 |
michael@0 | 128 | #define GR_GL_POLYGON_SMOOTH 0x0B41 |
michael@0 | 129 | #define GR_GL_POLYGON_STIPPLE 0x0B42 |
michael@0 | 130 | #define GR_GL_COLOR_LOGIC_OP 0x0BF2 |
michael@0 | 131 | #define GR_GL_COLOR_TABLE 0x80D0 |
michael@0 | 132 | #define GR_GL_INDEX_LOGIC_OP 0x0BF1 |
michael@0 | 133 | #define GR_GL_VERTEX_PROGRAM_POINT_SIZE 0x8642 |
michael@0 | 134 | #define GR_GL_LINE_STIPPLE 0x0B24 |
michael@0 | 135 | |
michael@0 | 136 | /* ErrorCode */ |
michael@0 | 137 | #define GR_GL_NO_ERROR 0 |
michael@0 | 138 | #define GR_GL_INVALID_ENUM 0x0500 |
michael@0 | 139 | #define GR_GL_INVALID_VALUE 0x0501 |
michael@0 | 140 | #define GR_GL_INVALID_OPERATION 0x0502 |
michael@0 | 141 | #define GR_GL_OUT_OF_MEMORY 0x0505 |
michael@0 | 142 | #define GR_GL_CONTEXT_LOST 0x300E // TODO(gman): What value? |
michael@0 | 143 | |
michael@0 | 144 | /* FrontFaceDirection */ |
michael@0 | 145 | #define GR_GL_CW 0x0900 |
michael@0 | 146 | #define GR_GL_CCW 0x0901 |
michael@0 | 147 | |
michael@0 | 148 | /* GetPName */ |
michael@0 | 149 | #define GR_GL_LINE_WIDTH 0x0B21 |
michael@0 | 150 | #define GR_GL_ALIASED_POINT_SIZE_RANGE 0x846D |
michael@0 | 151 | #define GR_GL_ALIASED_LINE_WIDTH_RANGE 0x846E |
michael@0 | 152 | #define GR_GL_CULL_FACE_MODE 0x0B45 |
michael@0 | 153 | #define GR_GL_FRONT_FACE 0x0B46 |
michael@0 | 154 | #define GR_GL_DEPTH_RANGE 0x0B70 |
michael@0 | 155 | #define GR_GL_DEPTH_WRITEMASK 0x0B72 |
michael@0 | 156 | #define GR_GL_DEPTH_CLEAR_VALUE 0x0B73 |
michael@0 | 157 | #define GR_GL_DEPTH_FUNC 0x0B74 |
michael@0 | 158 | #define GR_GL_STENCIL_CLEAR_VALUE 0x0B91 |
michael@0 | 159 | #define GR_GL_STENCIL_FUNC 0x0B92 |
michael@0 | 160 | #define GR_GL_STENCIL_FAIL 0x0B94 |
michael@0 | 161 | #define GR_GL_STENCIL_PASS_DEPTH_FAIL 0x0B95 |
michael@0 | 162 | #define GR_GL_STENCIL_PASS_DEPTH_PASS 0x0B96 |
michael@0 | 163 | #define GR_GL_STENCIL_REF 0x0B97 |
michael@0 | 164 | #define GR_GL_STENCIL_VALUE_MASK 0x0B93 |
michael@0 | 165 | #define GR_GL_STENCIL_WRITEMASK 0x0B98 |
michael@0 | 166 | #define GR_GL_STENCIL_BACK_FUNC 0x8800 |
michael@0 | 167 | #define GR_GL_STENCIL_BACK_FAIL 0x8801 |
michael@0 | 168 | #define GR_GL_STENCIL_BACK_PASS_DEPTH_FAIL 0x8802 |
michael@0 | 169 | #define GR_GL_STENCIL_BACK_PASS_DEPTH_PASS 0x8803 |
michael@0 | 170 | #define GR_GL_STENCIL_BACK_REF 0x8CA3 |
michael@0 | 171 | #define GR_GL_STENCIL_BACK_VALUE_MASK 0x8CA4 |
michael@0 | 172 | #define GR_GL_STENCIL_BACK_WRITEMASK 0x8CA5 |
michael@0 | 173 | #define GR_GL_VIEWPORT 0x0BA2 |
michael@0 | 174 | #define GR_GL_SCISSOR_BOX 0x0C10 |
michael@0 | 175 | /* GL_SCISSOR_TEST */ |
michael@0 | 176 | #define GR_GL_COLOR_CLEAR_VALUE 0x0C22 |
michael@0 | 177 | #define GR_GL_COLOR_WRITEMASK 0x0C23 |
michael@0 | 178 | #define GR_GL_UNPACK_ALIGNMENT 0x0CF5 |
michael@0 | 179 | #define GR_GL_UNPACK_FLIP_Y 0x9240 |
michael@0 | 180 | #define GR_GL_PACK_ALIGNMENT 0x0D05 |
michael@0 | 181 | #define GR_GL_PACK_REVERSE_ROW_ORDER 0x93A4 |
michael@0 | 182 | #define GR_GL_MAX_TEXTURE_SIZE 0x0D33 |
michael@0 | 183 | #define GR_GL_MAX_VIEWPORT_DIMS 0x0D3A |
michael@0 | 184 | #define GR_GL_SUBPIXEL_BITS 0x0D50 |
michael@0 | 185 | #define GR_GL_RED_BITS 0x0D52 |
michael@0 | 186 | #define GR_GL_GREEN_BITS 0x0D53 |
michael@0 | 187 | #define GR_GL_BLUE_BITS 0x0D54 |
michael@0 | 188 | #define GR_GL_ALPHA_BITS 0x0D55 |
michael@0 | 189 | #define GR_GL_DEPTH_BITS 0x0D56 |
michael@0 | 190 | #define GR_GL_STENCIL_BITS 0x0D57 |
michael@0 | 191 | #define GR_GL_POLYGON_OFFSET_UNITS 0x2A00 |
michael@0 | 192 | /* GL_POLYGON_OFFSET_FILL */ |
michael@0 | 193 | #define GR_GL_POLYGON_OFFSET_FACTOR 0x8038 |
michael@0 | 194 | #define GR_GL_TEXTURE_BINDING_2D 0x8069 |
michael@0 | 195 | #define GR_GL_SAMPLE_BUFFERS 0x80A8 |
michael@0 | 196 | #define GR_GL_SAMPLES 0x80A9 |
michael@0 | 197 | #define GR_GL_SAMPLE_COVERAGE_VALUE 0x80AA |
michael@0 | 198 | #define GR_GL_SAMPLE_COVERAGE_INVERT 0x80AB |
michael@0 | 199 | #define GR_GL_RENDERBUFFER_COVERAGE_SAMPLES 0x8CAB |
michael@0 | 200 | #define GR_GL_RENDERBUFFER_COLOR_SAMPLES 0x8E10 |
michael@0 | 201 | #define GR_GL_MAX_MULTISAMPLE_COVERAGE_MODES 0x8E11 |
michael@0 | 202 | #define GR_GL_MULTISAMPLE_COVERAGE_MODES 0x8E12 |
michael@0 | 203 | |
michael@0 | 204 | /* GetTextureParameter */ |
michael@0 | 205 | /* GL_TEXTURE_MAG_FILTER */ |
michael@0 | 206 | /* GL_TEXTURE_MIN_FILTER */ |
michael@0 | 207 | /* GL_TEXTURE_WRAP_S */ |
michael@0 | 208 | /* GL_TEXTURE_WRAP_T */ |
michael@0 | 209 | |
michael@0 | 210 | #define GR_GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2 |
michael@0 | 211 | #define GR_GL_COMPRESSED_TEXTURE_FORMATS 0x86A3 |
michael@0 | 212 | |
michael@0 | 213 | /* HintMode */ |
michael@0 | 214 | #define GR_GL_DONT_CARE 0x1100 |
michael@0 | 215 | #define GR_GL_FASTEST 0x1101 |
michael@0 | 216 | #define GR_GL_NICEST 0x1102 |
michael@0 | 217 | |
michael@0 | 218 | /* HintTarget */ |
michael@0 | 219 | #define GR_GL_GENERATE_MIPMAP_HINT 0x8192 |
michael@0 | 220 | |
michael@0 | 221 | /* DataType */ |
michael@0 | 222 | #define GR_GL_BYTE 0x1400 |
michael@0 | 223 | #define GR_GL_UNSIGNED_BYTE 0x1401 |
michael@0 | 224 | #define GR_GL_SHORT 0x1402 |
michael@0 | 225 | #define GR_GL_UNSIGNED_SHORT 0x1403 |
michael@0 | 226 | #define GR_GL_INT 0x1404 |
michael@0 | 227 | #define GR_GL_UNSIGNED_INT 0x1405 |
michael@0 | 228 | #define GR_GL_FLOAT 0x1406 |
michael@0 | 229 | #define GR_GL_FIXED 0x140C |
michael@0 | 230 | |
michael@0 | 231 | /* Lighting */ |
michael@0 | 232 | #define GR_GL_LIGHTING 0x0B50 |
michael@0 | 233 | #define GR_GL_LIGHT0 0x4000 |
michael@0 | 234 | #define GR_GL_LIGHT1 0x4001 |
michael@0 | 235 | #define GR_GL_LIGHT2 0x4002 |
michael@0 | 236 | #define GR_GL_LIGHT3 0x4003 |
michael@0 | 237 | #define GR_GL_LIGHT4 0x4004 |
michael@0 | 238 | #define GR_GL_LIGHT5 0x4005 |
michael@0 | 239 | #define GR_GL_LIGHT6 0x4006 |
michael@0 | 240 | #define GR_GL_LIGHT7 0x4007 |
michael@0 | 241 | #define GR_GL_SPOT_EXPONENT 0x1205 |
michael@0 | 242 | #define GR_GL_SPOT_CUTOFF 0x1206 |
michael@0 | 243 | #define GR_GL_CONSTANT_ATTENUATION 0x1207 |
michael@0 | 244 | #define GR_GL_LINEAR_ATTENUATION 0x1208 |
michael@0 | 245 | #define GR_GL_QUADRATIC_ATTENUATION 0x1209 |
michael@0 | 246 | #define GR_GL_AMBIENT 0x1200 |
michael@0 | 247 | #define GR_GL_DIFFUSE 0x1201 |
michael@0 | 248 | #define GR_GL_SPECULAR 0x1202 |
michael@0 | 249 | #define GR_GL_SHININESS 0x1601 |
michael@0 | 250 | #define GR_GL_EMISSION 0x1600 |
michael@0 | 251 | #define GR_GL_POSITION 0x1203 |
michael@0 | 252 | #define GR_GL_SPOT_DIRECTION 0x1204 |
michael@0 | 253 | #define GR_GL_AMBIENT_AND_DIFFUSE 0x1602 |
michael@0 | 254 | #define GR_GL_COLOR_INDEXES 0x1603 |
michael@0 | 255 | #define GR_GL_LIGHT_MODEL_TWO_SIDE 0x0B52 |
michael@0 | 256 | #define GR_GL_LIGHT_MODEL_LOCAL_VIEWER 0x0B51 |
michael@0 | 257 | #define GR_GL_LIGHT_MODEL_AMBIENT 0x0B53 |
michael@0 | 258 | #define GR_GL_FRONT_AND_BACK 0x0408 |
michael@0 | 259 | #define GR_GL_SHADE_MODEL 0x0B54 |
michael@0 | 260 | #define GR_GL_FLAT 0x1D00 |
michael@0 | 261 | #define GR_GL_SMOOTH 0x1D01 |
michael@0 | 262 | #define GR_GL_COLOR_MATERIAL 0x0B57 |
michael@0 | 263 | #define GR_GL_COLOR_MATERIAL_FACE 0x0B55 |
michael@0 | 264 | #define GR_GL_COLOR_MATERIAL_PARAMETER 0x0B56 |
michael@0 | 265 | #define GR_GL_NORMALIZE 0x0BA1 |
michael@0 | 266 | |
michael@0 | 267 | /* Matrix Mode */ |
michael@0 | 268 | #define GR_GL_MATRIX_MODE 0x0BA0 |
michael@0 | 269 | #define GR_GL_MODELVIEW 0x1700 |
michael@0 | 270 | #define GR_GL_PROJECTION 0x1701 |
michael@0 | 271 | #define GR_GL_TEXTURE 0x1702 |
michael@0 | 272 | |
michael@0 | 273 | /* multisample */ |
michael@0 | 274 | #define GR_GL_MULTISAMPLE 0x809D |
michael@0 | 275 | |
michael@0 | 276 | /* Points */ |
michael@0 | 277 | #define GR_GL_POINT_SMOOTH 0x0B10 |
michael@0 | 278 | #define GR_GL_POINT_SIZE 0x0B11 |
michael@0 | 279 | #define GR_GL_POINT_SIZE_GRANULARITY 0x0B13 |
michael@0 | 280 | #define GR_GL_POINT_SIZE_RANGE 0x0B12 |
michael@0 | 281 | |
michael@0 | 282 | /* Lines */ |
michael@0 | 283 | #define GR_GL_LINE_SMOOTH 0x0B20 |
michael@0 | 284 | #define GR_GL_LINE_STIPPLE 0x0B24 |
michael@0 | 285 | #define GR_GL_LINE_STIPPLE_PATTERN 0x0B25 |
michael@0 | 286 | #define GR_GL_LINE_STIPPLE_REPEAT 0x0B26 |
michael@0 | 287 | #define GR_GL_LINE_WIDTH 0x0B21 |
michael@0 | 288 | #define GR_GL_LINE_WIDTH_GRANULARITY 0x0B23 |
michael@0 | 289 | #define GR_GL_LINE_WIDTH_RANGE 0x0B22 |
michael@0 | 290 | |
michael@0 | 291 | /* PixelFormat */ |
michael@0 | 292 | #define GR_GL_DEPTH_COMPONENT 0x1902 |
michael@0 | 293 | #define GR_GL_RED 0x1903 |
michael@0 | 294 | #define GR_GL_GREEN 0x1904 |
michael@0 | 295 | #define GR_GL_BLUE 0x1905 |
michael@0 | 296 | #define GR_GL_ALPHA 0x1906 |
michael@0 | 297 | #define GR_GL_RGB 0x1907 |
michael@0 | 298 | #define GR_GL_RGBA 0x1908 |
michael@0 | 299 | #define GR_GL_BGRA 0x80E1 |
michael@0 | 300 | #define GR_GL_LUMINANCE 0x1909 |
michael@0 | 301 | #define GR_GL_LUMINANCE_ALPHA 0x190A |
michael@0 | 302 | #define GR_GL_PALETTE8_RGBA8 0x8B96 |
michael@0 | 303 | #define GR_GL_ALPHA8 0x803C |
michael@0 | 304 | |
michael@0 | 305 | #define GR_GL_R8 0x8229 |
michael@0 | 306 | |
michael@0 | 307 | /* PixelType */ |
michael@0 | 308 | /* GL_UNSIGNED_BYTE */ |
michael@0 | 309 | #define GR_GL_UNSIGNED_SHORT_4_4_4_4 0x8033 |
michael@0 | 310 | #define GR_GL_UNSIGNED_SHORT_5_5_5_1 0x8034 |
michael@0 | 311 | #define GR_GL_UNSIGNED_SHORT_5_6_5 0x8363 |
michael@0 | 312 | |
michael@0 | 313 | /* Shaders */ |
michael@0 | 314 | #define GR_GL_FRAGMENT_SHADER 0x8B30 |
michael@0 | 315 | #define GR_GL_VERTEX_SHADER 0x8B31 |
michael@0 | 316 | #define GR_GL_GEOMETRY_SHADER 0x8DD9 |
michael@0 | 317 | #define GR_GL_MAX_VERTEX_ATTRIBS 0x8869 |
michael@0 | 318 | #define GR_GL_MAX_VERTEX_UNIFORM_VECTORS 0x8DFB |
michael@0 | 319 | #define GR_GL_MAX_VARYING_VECTORS 0x8DFC |
michael@0 | 320 | #define GR_GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D |
michael@0 | 321 | #define GR_GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C |
michael@0 | 322 | #define GR_GL_MAX_TEXTURE_IMAGE_UNITS 0x8872 |
michael@0 | 323 | #define GR_GL_MAX_FRAGMENT_UNIFORM_VECTORS 0x8DFD |
michael@0 | 324 | #define GR_GL_SHADER_TYPE 0x8B4F |
michael@0 | 325 | #define GR_GL_DELETE_STATUS 0x8B80 |
michael@0 | 326 | #define GR_GL_LINK_STATUS 0x8B82 |
michael@0 | 327 | #define GR_GL_VALIDATE_STATUS 0x8B83 |
michael@0 | 328 | #define GR_GL_ATTACHED_SHADERS 0x8B85 |
michael@0 | 329 | #define GR_GL_ACTIVE_UNIFORMS 0x8B86 |
michael@0 | 330 | #define GR_GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87 |
michael@0 | 331 | #define GR_GL_ACTIVE_ATTRIBUTES 0x8B89 |
michael@0 | 332 | #define GR_GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A |
michael@0 | 333 | #define GR_GL_SHADING_LANGUAGE_VERSION 0x8B8C |
michael@0 | 334 | #define GR_GL_CURRENT_PROGRAM 0x8B8D |
michael@0 | 335 | #define GR_GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49 |
michael@0 | 336 | #define GR_GL_MAX_VERTEX_UNIFORM_COMPONENTS 0x8B4A |
michael@0 | 337 | |
michael@0 | 338 | /* StencilFunction */ |
michael@0 | 339 | #define GR_GL_NEVER 0x0200 |
michael@0 | 340 | #define GR_GL_LESS 0x0201 |
michael@0 | 341 | #define GR_GL_EQUAL 0x0202 |
michael@0 | 342 | #define GR_GL_LEQUAL 0x0203 |
michael@0 | 343 | #define GR_GL_GREATER 0x0204 |
michael@0 | 344 | #define GR_GL_NOTEQUAL 0x0205 |
michael@0 | 345 | #define GR_GL_GEQUAL 0x0206 |
michael@0 | 346 | #define GR_GL_ALWAYS 0x0207 |
michael@0 | 347 | |
michael@0 | 348 | /* StencilOp */ |
michael@0 | 349 | /* GL_ZERO */ |
michael@0 | 350 | #define GR_GL_KEEP 0x1E00 |
michael@0 | 351 | #define GR_GL_REPLACE 0x1E01 |
michael@0 | 352 | #define GR_GL_INCR 0x1E02 |
michael@0 | 353 | #define GR_GL_DECR 0x1E03 |
michael@0 | 354 | #define GR_GL_INVERT 0x150A |
michael@0 | 355 | #define GR_GL_INCR_WRAP 0x8507 |
michael@0 | 356 | #define GR_GL_DECR_WRAP 0x8508 |
michael@0 | 357 | |
michael@0 | 358 | /* StringName */ |
michael@0 | 359 | #define GR_GL_VENDOR 0x1F00 |
michael@0 | 360 | #define GR_GL_RENDERER 0x1F01 |
michael@0 | 361 | #define GR_GL_VERSION 0x1F02 |
michael@0 | 362 | #define GR_GL_EXTENSIONS 0x1F03 |
michael@0 | 363 | |
michael@0 | 364 | /* StringCounts */ |
michael@0 | 365 | #define GR_GL_NUM_EXTENSIONS 0x821D |
michael@0 | 366 | |
michael@0 | 367 | /* Pixel Mode / Transfer */ |
michael@0 | 368 | #define GR_GL_UNPACK_ROW_LENGTH 0x0CF2 |
michael@0 | 369 | #define GR_GL_PACK_ROW_LENGTH 0x0D02 |
michael@0 | 370 | |
michael@0 | 371 | |
michael@0 | 372 | /* TextureMagFilter */ |
michael@0 | 373 | #define GR_GL_NEAREST 0x2600 |
michael@0 | 374 | #define GR_GL_LINEAR 0x2601 |
michael@0 | 375 | |
michael@0 | 376 | /* TextureMinFilter */ |
michael@0 | 377 | /* GL_NEAREST */ |
michael@0 | 378 | /* GL_LINEAR */ |
michael@0 | 379 | #define GR_GL_NEAREST_MIPMAP_NEAREST 0x2700 |
michael@0 | 380 | #define GR_GL_LINEAR_MIPMAP_NEAREST 0x2701 |
michael@0 | 381 | #define GR_GL_NEAREST_MIPMAP_LINEAR 0x2702 |
michael@0 | 382 | #define GR_GL_LINEAR_MIPMAP_LINEAR 0x2703 |
michael@0 | 383 | |
michael@0 | 384 | /* TextureUsage */ |
michael@0 | 385 | #define GR_GL_FRAMEBUFFER_ATTACHMENT 0x93A3 |
michael@0 | 386 | |
michael@0 | 387 | /* TextureParameterName */ |
michael@0 | 388 | #define GR_GL_TEXTURE_MAG_FILTER 0x2800 |
michael@0 | 389 | #define GR_GL_TEXTURE_MIN_FILTER 0x2801 |
michael@0 | 390 | #define GR_GL_TEXTURE_WRAP_S 0x2802 |
michael@0 | 391 | #define GR_GL_TEXTURE_WRAP_T 0x2803 |
michael@0 | 392 | #define GR_GL_TEXTURE_USAGE 0x93A2 |
michael@0 | 393 | |
michael@0 | 394 | /* TextureTarget */ |
michael@0 | 395 | /* GL_TEXTURE_2D */ |
michael@0 | 396 | #define GR_GL_TEXTURE 0x1702 |
michael@0 | 397 | #define GR_GL_TEXTURE_CUBE_MAP 0x8513 |
michael@0 | 398 | #define GR_GL_TEXTURE_BINDING_CUBE_MAP 0x8514 |
michael@0 | 399 | #define GR_GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515 |
michael@0 | 400 | #define GR_GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x8516 |
michael@0 | 401 | #define GR_GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x8517 |
michael@0 | 402 | #define GR_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x8518 |
michael@0 | 403 | #define GR_GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519 |
michael@0 | 404 | #define GR_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A |
michael@0 | 405 | #define GR_GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C |
michael@0 | 406 | |
michael@0 | 407 | /* TextureUnit */ |
michael@0 | 408 | #define GR_GL_TEXTURE0 0x84C0 |
michael@0 | 409 | #define GR_GL_TEXTURE1 0x84C1 |
michael@0 | 410 | #define GR_GL_TEXTURE2 0x84C2 |
michael@0 | 411 | #define GR_GL_TEXTURE3 0x84C3 |
michael@0 | 412 | #define GR_GL_TEXTURE4 0x84C4 |
michael@0 | 413 | #define GR_GL_TEXTURE5 0x84C5 |
michael@0 | 414 | #define GR_GL_TEXTURE6 0x84C6 |
michael@0 | 415 | #define GR_GL_TEXTURE7 0x84C7 |
michael@0 | 416 | #define GR_GL_TEXTURE8 0x84C8 |
michael@0 | 417 | #define GR_GL_TEXTURE9 0x84C9 |
michael@0 | 418 | #define GR_GL_TEXTURE10 0x84CA |
michael@0 | 419 | #define GR_GL_TEXTURE11 0x84CB |
michael@0 | 420 | #define GR_GL_TEXTURE12 0x84CC |
michael@0 | 421 | #define GR_GL_TEXTURE13 0x84CD |
michael@0 | 422 | #define GR_GL_TEXTURE14 0x84CE |
michael@0 | 423 | #define GR_GL_TEXTURE15 0x84CF |
michael@0 | 424 | #define GR_GL_TEXTURE16 0x84D0 |
michael@0 | 425 | #define GR_GL_TEXTURE17 0x84D1 |
michael@0 | 426 | #define GR_GL_TEXTURE18 0x84D2 |
michael@0 | 427 | #define GR_GL_TEXTURE19 0x84D3 |
michael@0 | 428 | #define GR_GL_TEXTURE20 0x84D4 |
michael@0 | 429 | #define GR_GL_TEXTURE21 0x84D5 |
michael@0 | 430 | #define GR_GL_TEXTURE22 0x84D6 |
michael@0 | 431 | #define GR_GL_TEXTURE23 0x84D7 |
michael@0 | 432 | #define GR_GL_TEXTURE24 0x84D8 |
michael@0 | 433 | #define GR_GL_TEXTURE25 0x84D9 |
michael@0 | 434 | #define GR_GL_TEXTURE26 0x84DA |
michael@0 | 435 | #define GR_GL_TEXTURE27 0x84DB |
michael@0 | 436 | #define GR_GL_TEXTURE28 0x84DC |
michael@0 | 437 | #define GR_GL_TEXTURE29 0x84DD |
michael@0 | 438 | #define GR_GL_TEXTURE30 0x84DE |
michael@0 | 439 | #define GR_GL_TEXTURE31 0x84DF |
michael@0 | 440 | #define GR_GL_ACTIVE_TEXTURE 0x84E0 |
michael@0 | 441 | #define GR_GL_MAX_TEXTURE_UNITS 0x84E2 |
michael@0 | 442 | #define GR_GL_MAX_TEXTURE_COORDS 0x8871 |
michael@0 | 443 | |
michael@0 | 444 | /* TextureWrapMode */ |
michael@0 | 445 | #define GR_GL_REPEAT 0x2901 |
michael@0 | 446 | #define GR_GL_CLAMP_TO_EDGE 0x812F |
michael@0 | 447 | #define GR_GL_MIRRORED_REPEAT 0x8370 |
michael@0 | 448 | |
michael@0 | 449 | /* Texture Swizzle */ |
michael@0 | 450 | #define GR_GL_TEXTURE_SWIZZLE_R 0x8E42 |
michael@0 | 451 | #define GR_GL_TEXTURE_SWIZZLE_G 0x8E43 |
michael@0 | 452 | #define GR_GL_TEXTURE_SWIZZLE_B 0x8E44 |
michael@0 | 453 | #define GR_GL_TEXTURE_SWIZZLE_A 0x8E45 |
michael@0 | 454 | #define GR_GL_TEXTURE_SWIZZLE_RGBA 0x8E46 |
michael@0 | 455 | |
michael@0 | 456 | /* Texture mapping */ |
michael@0 | 457 | #define GR_GL_TEXTURE_ENV 0x2300 |
michael@0 | 458 | #define GR_GL_TEXTURE_ENV_MODE 0x2200 |
michael@0 | 459 | #define GR_GL_TEXTURE_1D 0x0DE0 |
michael@0 | 460 | /* GL_TEXTURE_2D */ |
michael@0 | 461 | /* GL_TEXTURE_WRAP_S */ |
michael@0 | 462 | /* GL_TEXTURE_WRAP_T */ |
michael@0 | 463 | /* GL_TEXTURE_MAG_FILTER */ |
michael@0 | 464 | /* GL_TEXTURE_MIN_FILTER */ |
michael@0 | 465 | #define GR_GL_TEXTURE_ENV_COLOR 0x2201 |
michael@0 | 466 | #define GR_GL_TEXTURE_GEN_S 0x0C60 |
michael@0 | 467 | #define GR_GL_TEXTURE_GEN_T 0x0C61 |
michael@0 | 468 | #define GR_GL_TEXTURE_GEN_R 0x0C62 |
michael@0 | 469 | #define GR_GL_TEXTURE_GEN_Q 0x0C63 |
michael@0 | 470 | #define GR_GL_TEXTURE_GEN_MODE 0x2500 |
michael@0 | 471 | #define GR_GL_TEXTURE_BORDER_COLOR 0x1004 |
michael@0 | 472 | #define GR_GL_TEXTURE_WIDTH 0x1000 |
michael@0 | 473 | #define GR_GL_TEXTURE_HEIGHT 0x1001 |
michael@0 | 474 | #define GR_GL_TEXTURE_BORDER 0x1005 |
michael@0 | 475 | #define GR_GL_TEXTURE_COMPONENTS 0x1003 |
michael@0 | 476 | #define GR_GL_TEXTURE_RED_SIZE 0x805C |
michael@0 | 477 | #define GR_GL_TEXTURE_GREEN_SIZE 0x805D |
michael@0 | 478 | #define GR_GL_TEXTURE_BLUE_SIZE 0x805E |
michael@0 | 479 | #define GR_GL_TEXTURE_ALPHA_SIZE 0x805F |
michael@0 | 480 | #define GR_GL_TEXTURE_LUMINANCE_SIZE 0x8060 |
michael@0 | 481 | #define GR_GL_TEXTURE_INTENSITY_SIZE 0x8061 |
michael@0 | 482 | #define GR_GL_TEXTURE_INTERNAL_FORMAT 0x1003 |
michael@0 | 483 | /* GL_NEAREST_MIPMAP_NEAREST */ |
michael@0 | 484 | /* GL_NEAREST_MIPMAP_LINEAR */ |
michael@0 | 485 | /* GL_LINEAR_MIPMAP_NEAREST */ |
michael@0 | 486 | /* GL_LINEAR_MIPMAP_LINEAR */ |
michael@0 | 487 | #define GR_GL_OBJECT_LINEAR 0x2401 |
michael@0 | 488 | #define GR_GL_OBJECT_PLANE 0x2501 |
michael@0 | 489 | #define GR_GL_EYE_LINEAR 0x2400 |
michael@0 | 490 | #define GR_GL_EYE_PLANE 0x2502 |
michael@0 | 491 | #define GR_GL_SPHERE_MAP 0x2402 |
michael@0 | 492 | #define GR_GL_DECAL 0x2101 |
michael@0 | 493 | #define GR_GL_MODULATE 0x2100 |
michael@0 | 494 | /* GL_NEAREST */ |
michael@0 | 495 | /* GL_REPEAT */ |
michael@0 | 496 | #define GR_GL_CLAMP 0x2900 |
michael@0 | 497 | #define GR_GL_S 0x2000 |
michael@0 | 498 | #define GR_GL_T 0x2001 |
michael@0 | 499 | #define GR_GL_R 0x2002 |
michael@0 | 500 | #define GR_GL_Q 0x2003 |
michael@0 | 501 | #define GR_GL_TEXTURE_GEN_R 0x0C62 |
michael@0 | 502 | #define GR_GL_TEXTURE_GEN_Q 0x0C63 |
michael@0 | 503 | |
michael@0 | 504 | /* texture_env_combine */ |
michael@0 | 505 | #define GR_GL_COMBINE 0x8570 |
michael@0 | 506 | #define GR_GL_COMBINE_RGB 0x8571 |
michael@0 | 507 | #define GR_GL_COMBINE_ALPHA 0x8572 |
michael@0 | 508 | #define GR_GL_SOURCE0_RGB 0x8580 |
michael@0 | 509 | #define GR_GL_SOURCE1_RGB 0x8581 |
michael@0 | 510 | #define GR_GL_SOURCE2_RGB 0x8582 |
michael@0 | 511 | #define GR_GL_SOURCE0_ALPHA 0x8588 |
michael@0 | 512 | #define GR_GL_SOURCE1_ALPHA 0x8589 |
michael@0 | 513 | #define GR_GL_SOURCE2_ALPHA 0x858A |
michael@0 | 514 | #define GR_GL_OPERAND0_RGB 0x8590 |
michael@0 | 515 | #define GR_GL_OPERAND1_RGB 0x8591 |
michael@0 | 516 | #define GR_GL_OPERAND2_RGB 0x8592 |
michael@0 | 517 | #define GR_GL_OPERAND0_ALPHA 0x8598 |
michael@0 | 518 | #define GR_GL_OPERAND1_ALPHA 0x8599 |
michael@0 | 519 | #define GR_GL_OPERAND2_ALPHA 0x859A |
michael@0 | 520 | #define GR_GL_RGB_SCALE 0x8573 |
michael@0 | 521 | #define GR_GL_ADD_SIGNED 0x8574 |
michael@0 | 522 | #define GR_GL_INTERPOLATE 0x8575 |
michael@0 | 523 | #define GR_GL_SUBTRACT 0x84E7 |
michael@0 | 524 | #define GR_GL_CONSTANT 0x8576 |
michael@0 | 525 | #define GR_GL_PRIMARY_COLOR 0x8577 |
michael@0 | 526 | #define GR_GL_PREVIOUS 0x8578 |
michael@0 | 527 | #define GR_GL_SRC0_RGB 0x8580 |
michael@0 | 528 | #define GR_GL_SRC1_RGB 0x8581 |
michael@0 | 529 | #define GR_GL_SRC2_RGB 0x8582 |
michael@0 | 530 | #define GR_GL_SRC0_ALPHA 0x8588 |
michael@0 | 531 | #define GR_GL_SRC1_ALPHA 0x8589 |
michael@0 | 532 | #define GR_GL_SRC2_ALPHA 0x858A |
michael@0 | 533 | |
michael@0 | 534 | /* Uniform Types */ |
michael@0 | 535 | #define GR_GL_FLOAT_VEC2 0x8B50 |
michael@0 | 536 | #define GR_GL_FLOAT_VEC3 0x8B51 |
michael@0 | 537 | #define GR_GL_FLOAT_VEC4 0x8B52 |
michael@0 | 538 | #define GR_GL_INT_VEC2 0x8B53 |
michael@0 | 539 | #define GR_GL_INT_VEC3 0x8B54 |
michael@0 | 540 | #define GR_GL_INT_VEC4 0x8B55 |
michael@0 | 541 | #define GR_GL_BOOL 0x8B56 |
michael@0 | 542 | #define GR_GL_BOOL_VEC2 0x8B57 |
michael@0 | 543 | #define GR_GL_BOOL_VEC3 0x8B58 |
michael@0 | 544 | #define GR_GL_BOOL_VEC4 0x8B59 |
michael@0 | 545 | #define GR_GL_FLOAT_MAT2 0x8B5A |
michael@0 | 546 | #define GR_GL_FLOAT_MAT3 0x8B5B |
michael@0 | 547 | #define GR_GL_FLOAT_MAT4 0x8B5C |
michael@0 | 548 | #define GR_GL_SAMPLER_2D 0x8B5E |
michael@0 | 549 | #define GR_GL_SAMPLER_CUBE 0x8B60 |
michael@0 | 550 | |
michael@0 | 551 | /* Vertex Arrays */ |
michael@0 | 552 | #define GR_GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622 |
michael@0 | 553 | #define GR_GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623 |
michael@0 | 554 | #define GR_GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624 |
michael@0 | 555 | #define GR_GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625 |
michael@0 | 556 | #define GR_GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A |
michael@0 | 557 | #define GR_GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645 |
michael@0 | 558 | #define GR_GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F |
michael@0 | 559 | #define GR_GL_VERTEX_ARRAY 0x8074 |
michael@0 | 560 | #define GR_GL_NORMAL_ARRAY 0x8075 |
michael@0 | 561 | #define GR_GL_COLOR_ARRAY 0x8076 |
michael@0 | 562 | #define GR_GL_SECONDARY_COLOR_ARRAY 0x845E |
michael@0 | 563 | #define GR_GL_INDEX_ARRAY 0x8077 |
michael@0 | 564 | #define GR_GL_TEXTURE_COORD_ARRAY 0x8078 |
michael@0 | 565 | #define GR_GL_EDGE_FLAG_ARRAY 0x8079 |
michael@0 | 566 | #define GR_GL_VERTEX_ARRAY_SIZE 0x807A |
michael@0 | 567 | #define GR_GL_VERTEX_ARRAY_TYPE 0x807B |
michael@0 | 568 | #define GR_GL_VERTEX_ARRAY_STRIDE 0x807C |
michael@0 | 569 | #define GR_GL_NORMAL_ARRAY_TYPE 0x807E |
michael@0 | 570 | #define GR_GL_NORMAL_ARRAY_STRIDE 0x807F |
michael@0 | 571 | #define GR_GL_COLOR_ARRAY_SIZE 0x8081 |
michael@0 | 572 | #define GR_GL_COLOR_ARRAY_TYPE 0x8082 |
michael@0 | 573 | #define GR_GL_COLOR_ARRAY_STRIDE 0x8083 |
michael@0 | 574 | #define GR_GL_INDEX_ARRAY_TYPE 0x8085 |
michael@0 | 575 | #define GR_GL_INDEX_ARRAY_STRIDE 0x8086 |
michael@0 | 576 | #define GR_GL_TEXTURE_COORD_ARRAY_SIZE 0x8088 |
michael@0 | 577 | #define GR_GL_TEXTURE_COORD_ARRAY_TYPE 0x8089 |
michael@0 | 578 | #define GR_GL_TEXTURE_COORD_ARRAY_STRIDE 0x808A |
michael@0 | 579 | #define GR_GL_EDGE_FLAG_ARRAY_STRIDE 0x808C |
michael@0 | 580 | #define GR_GL_VERTEX_ARRAY_POINTER 0x808E |
michael@0 | 581 | #define GR_GL_NORMAL_ARRAY_POINTER 0x808F |
michael@0 | 582 | #define GR_GL_COLOR_ARRAY_POINTER 0x8090 |
michael@0 | 583 | #define GR_GL_INDEX_ARRAY_POINTER 0x8091 |
michael@0 | 584 | #define GR_GL_TEXTURE_COORD_ARRAY_POINTER 0x8092 |
michael@0 | 585 | #define GR_GL_EDGE_FLAG_ARRAY_POINTER 0x8093 |
michael@0 | 586 | #define GR_GL_V2F 0x2A20 |
michael@0 | 587 | #define GR_GL_V3F 0x2A21 |
michael@0 | 588 | #define GR_GL_C4UB_V2F 0x2A22 |
michael@0 | 589 | #define GR_GL_C4UB_V3F 0x2A23 |
michael@0 | 590 | #define GR_GL_C3F_V3F 0x2A24 |
michael@0 | 591 | #define GR_GL_N3F_V3F 0x2A25 |
michael@0 | 592 | #define GR_GL_C4F_N3F_V3F 0x2A26 |
michael@0 | 593 | #define GR_GL_T2F_V3F 0x2A27 |
michael@0 | 594 | #define GR_GL_T4F_V4F 0x2A28 |
michael@0 | 595 | #define GR_GL_T2F_C4UB_V3F 0x2A29 |
michael@0 | 596 | #define GR_GL_T2F_C3F_V3F 0x2A2A |
michael@0 | 597 | #define GR_GL_T2F_N3F_V3F 0x2A2B |
michael@0 | 598 | #define GR_GL_T2F_C4F_N3F_V3F 0x2A2C |
michael@0 | 599 | #define GR_GL_T4F_C4F_N3F_V4F 0x2A2D |
michael@0 | 600 | |
michael@0 | 601 | /* Vertex Buffer Object */ |
michael@0 | 602 | #define GR_GL_WRITE_ONLY 0x88B9 |
michael@0 | 603 | #define GR_GL_BUFFER_MAPPED 0x88BC |
michael@0 | 604 | /* Read Format */ |
michael@0 | 605 | #define GR_GL_IMPLEMENTATION_COLOR_READ_TYPE 0x8B9A |
michael@0 | 606 | #define GR_GL_IMPLEMENTATION_COLOR_READ_FORMAT 0x8B9B |
michael@0 | 607 | |
michael@0 | 608 | /* Shader Source */ |
michael@0 | 609 | #define GR_GL_COMPILE_STATUS 0x8B81 |
michael@0 | 610 | #define GR_GL_INFO_LOG_LENGTH 0x8B84 |
michael@0 | 611 | #define GR_GL_SHADER_SOURCE_LENGTH 0x8B88 |
michael@0 | 612 | #define GR_GL_SHADER_COMPILER 0x8DFA |
michael@0 | 613 | |
michael@0 | 614 | /* Shader Binary */ |
michael@0 | 615 | #define GR_GL_SHADER_BINARY_FORMATS 0x8DF8 |
michael@0 | 616 | #define GR_GL_NUM_SHADER_BINARY_FORMATS 0x8DF9 |
michael@0 | 617 | |
michael@0 | 618 | /* Shader Precision-Specified Types */ |
michael@0 | 619 | #define GR_GL_LOW_FLOAT 0x8DF0 |
michael@0 | 620 | #define GR_GL_MEDIUM_FLOAT 0x8DF1 |
michael@0 | 621 | #define GR_GL_HIGH_FLOAT 0x8DF2 |
michael@0 | 622 | #define GR_GL_LOW_INT 0x8DF3 |
michael@0 | 623 | #define GR_GL_MEDIUM_INT 0x8DF4 |
michael@0 | 624 | #define GR_GL_HIGH_INT 0x8DF5 |
michael@0 | 625 | |
michael@0 | 626 | /* Queries */ |
michael@0 | 627 | #define GR_GL_QUERY_COUNTER_BITS 0x8864 |
michael@0 | 628 | #define GR_GL_CURRENT_QUERY 0x8865 |
michael@0 | 629 | #define GR_GL_QUERY_RESULT 0x8866 |
michael@0 | 630 | #define GR_GL_QUERY_RESULT_AVAILABLE 0x8867 |
michael@0 | 631 | #define GR_GL_SAMPLES_PASSED 0x8914 |
michael@0 | 632 | #define GR_GL_ANY_SAMPLES_PASSED 0x8C2F |
michael@0 | 633 | #define GR_GL_TIME_ELAPSED 0x88BF |
michael@0 | 634 | #define GR_GL_TIMESTAMP 0x8E28 |
michael@0 | 635 | #define GR_GL_PRIMITIVES_GENERATED 0x8C87 |
michael@0 | 636 | #define GR_GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN 0x8C88 |
michael@0 | 637 | |
michael@0 | 638 | |
michael@0 | 639 | /* Framebuffer Object. */ |
michael@0 | 640 | #define GR_GL_FRAMEBUFFER 0x8D40 |
michael@0 | 641 | #define GR_GL_READ_FRAMEBUFFER 0x8CA8 |
michael@0 | 642 | #define GR_GL_DRAW_FRAMEBUFFER 0x8CA9 |
michael@0 | 643 | |
michael@0 | 644 | #define GR_GL_RENDERBUFFER 0x8D41 |
michael@0 | 645 | |
michael@0 | 646 | #define GR_GL_RGBA4 0x8056 |
michael@0 | 647 | #define GR_GL_RGB5_A1 0x8057 |
michael@0 | 648 | #define GR_GL_RGB565 0x8D62 |
michael@0 | 649 | #define GR_GL_RGBA8 0x8058 |
michael@0 | 650 | #define GR_GL_RGB8 0x8051 |
michael@0 | 651 | #define GR_GL_BGRA8 0x93A1 |
michael@0 | 652 | #define GR_GL_SRGB 0x8C40 |
michael@0 | 653 | #define GR_GL_SRGB8 0x8C41 |
michael@0 | 654 | #define GR_GL_SRGB_ALPHA 0x8C42 |
michael@0 | 655 | #define GR_GL_SRGB8_ALPHA8 0x8C43 |
michael@0 | 656 | #define GR_GL_DEPTH_COMPONENT16 0x81A5 |
michael@0 | 657 | #define GR_GL_STENCIL_INDEX 0x1901 |
michael@0 | 658 | #define GR_GL_STENCIL_INDEX4 0x8D47 |
michael@0 | 659 | #define GR_GL_STENCIL_INDEX8 0x8D48 |
michael@0 | 660 | #define GR_GL_STENCIL_INDEX16 0x8D49 |
michael@0 | 661 | #define GR_GL_DEPTH_STENCIL 0x84F9 |
michael@0 | 662 | #define GR_GL_DEPTH24_STENCIL8 0x88F0 |
michael@0 | 663 | |
michael@0 | 664 | #define GR_GL_MAX_SAMPLES 0x8D57 |
michael@0 | 665 | // GL_IMG_multisampled_render_to_texture uses a different value for GL_MAX_SAMPLES |
michael@0 | 666 | #define GR_GL_MAX_SAMPLES_IMG 0x9135 |
michael@0 | 667 | |
michael@0 | 668 | #define GR_GL_RENDERBUFFER_WIDTH 0x8D42 |
michael@0 | 669 | #define GR_GL_RENDERBUFFER_HEIGHT 0x8D43 |
michael@0 | 670 | #define GR_GL_RENDERBUFFER_INTERNAL_FORMAT 0x8D44 |
michael@0 | 671 | #define GR_GL_RENDERBUFFER_RED_SIZE 0x8D50 |
michael@0 | 672 | #define GR_GL_RENDERBUFFER_GREEN_SIZE 0x8D51 |
michael@0 | 673 | #define GR_GL_RENDERBUFFER_BLUE_SIZE 0x8D52 |
michael@0 | 674 | #define GR_GL_RENDERBUFFER_ALPHA_SIZE 0x8D53 |
michael@0 | 675 | #define GR_GL_RENDERBUFFER_DEPTH_SIZE 0x8D54 |
michael@0 | 676 | #define GR_GL_RENDERBUFFER_STENCIL_SIZE 0x8D55 |
michael@0 | 677 | |
michael@0 | 678 | #define GR_GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE 0x8CD0 |
michael@0 | 679 | #define GR_GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8CD1 |
michael@0 | 680 | #define GR_GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8CD2 |
michael@0 | 681 | #define GR_GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3 |
michael@0 | 682 | #define GR_GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER 0x8CD4 |
michael@0 | 683 | #define GR_GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE 0x8212 |
michael@0 | 684 | #define GR_GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE 0x8213 |
michael@0 | 685 | #define GR_GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE 0x8214 |
michael@0 | 686 | #define GR_GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE 0x8215 |
michael@0 | 687 | #define GR_GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE 0x8216 |
michael@0 | 688 | #define GR_GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE 0x8217 |
michael@0 | 689 | |
michael@0 | 690 | #define GR_GL_COLOR_ATTACHMENT0 0x8CE0 |
michael@0 | 691 | #define GR_GL_DEPTH_ATTACHMENT 0x8D00 |
michael@0 | 692 | #define GR_GL_STENCIL_ATTACHMENT 0x8D20 |
michael@0 | 693 | |
michael@0 | 694 | #define GR_GL_NONE 0 |
michael@0 | 695 | |
michael@0 | 696 | #define GR_GL_FRAMEBUFFER_COMPLETE 0x8CD5 |
michael@0 | 697 | #define GR_GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6 |
michael@0 | 698 | #define GR_GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7 |
michael@0 | 699 | #define GR_GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS 0x8CD9 |
michael@0 | 700 | #define GR_GL_FRAMEBUFFER_UNSUPPORTED 0x8CDD |
michael@0 | 701 | |
michael@0 | 702 | #define GR_GL_FRAMEBUFFER_BINDING 0x8CA6 |
michael@0 | 703 | #define GR_GL_RENDERBUFFER_BINDING 0x8CA7 |
michael@0 | 704 | #define GR_GL_MAX_RENDERBUFFER_SIZE 0x84E8 |
michael@0 | 705 | |
michael@0 | 706 | #define GR_GL_INVALID_FRAMEBUFFER_OPERATION 0x0506 |
michael@0 | 707 | |
michael@0 | 708 | /* Path Rendering */ |
michael@0 | 709 | // commands |
michael@0 | 710 | #define GR_GL_CLOSE_PATH 0x00 |
michael@0 | 711 | #define GR_GL_MOVE_TO 0x02 |
michael@0 | 712 | #define GR_GL_RELATIVE_MOVE_TO 0x03 |
michael@0 | 713 | #define GR_GL_LINE_TO 0x04 |
michael@0 | 714 | #define GR_GL_RELATIVE_LINE_TO 0x05 |
michael@0 | 715 | #define GR_GL_HORIZONTAL_LINE_TO 0x06 |
michael@0 | 716 | #define GR_GL_RELATIVE_HORIZONTAL_LINE_TO 0x07 |
michael@0 | 717 | #define GR_GL_VERTICAL_LINE_TO 0x08 |
michael@0 | 718 | #define GR_GL_RELATIVE_VERTICAL_LINE_TO 0x09 |
michael@0 | 719 | #define GR_GL_QUADRATIC_CURVE_TO 0x0A |
michael@0 | 720 | #define GR_GL_RELATIVE_QUADRATIC_CURVE_TO 0x0B |
michael@0 | 721 | #define GR_GL_CUBIC_CURVE_TO 0x0C |
michael@0 | 722 | #define GR_GL_RELATIVE_CUBIC_CURVE_TO 0x0D |
michael@0 | 723 | #define GR_GL_SMOOTH_QUADRATIC_CURVE_TO 0x0E |
michael@0 | 724 | #define GR_GL_RELATIVE_SMOOTH_QUADRATIC_CURVE_TO 0x0F |
michael@0 | 725 | #define GR_GL_SMOOTH_CUBIC_CURVE_TO 0x10 |
michael@0 | 726 | #define GR_GL_RELATIVE_SMOOTH_CUBIC_CURVE_TO 0x11 |
michael@0 | 727 | #define GR_GL_SMALL_CCW_ARC_TO 0x12 |
michael@0 | 728 | #define GR_GL_RELATIVE_SMALL_CCW_ARC_TO 0x13 |
michael@0 | 729 | #define GR_GL_SMALL_CW_ARC_TO 0x14 |
michael@0 | 730 | #define GR_GL_RELATIVE_SMALL_CW_ARC_TO 0x15 |
michael@0 | 731 | #define GR_GL_LARGE_CCW_ARC_TO 0x16 |
michael@0 | 732 | #define GR_GL_RELATIVE_LARGE_CCW_ARC_TO 0x17 |
michael@0 | 733 | #define GR_GL_LARGE_CW_ARC_TO 0x18 |
michael@0 | 734 | #define GR_GL_RELATIVE_LARGE_CW_ARC_TO 0x19 |
michael@0 | 735 | #define GR_GL_CIRCULAR_CCW_ARC_TO 0xF8 |
michael@0 | 736 | #define GR_GL_CIRCULAR_CW_ARC_TO 0xFA |
michael@0 | 737 | #define GR_GL_CIRCULAR_TANGENT_ARC_TO 0xFC |
michael@0 | 738 | #define GR_GL_ARC_TO 0xFE |
michael@0 | 739 | #define GR_GL_RELATIVE_ARC_TO 0xFF |
michael@0 | 740 | |
michael@0 | 741 | // path string formats |
michael@0 | 742 | #define GR_GL_PATH_FORMAT_SVG 0x9070 |
michael@0 | 743 | #define GR_GL_PATH_FORMAT_PS 0x9071 |
michael@0 | 744 | |
michael@0 | 745 | // font targets |
michael@0 | 746 | #define GR_GL_STANDARD_FONT_NAME 0x9072 |
michael@0 | 747 | #define GR_GL_SYSTEM_FONT_NAME 0x9073 |
michael@0 | 748 | #define GR_GL_FILE_NAME 0x9074 |
michael@0 | 749 | |
michael@0 | 750 | // handle missing glyphs |
michael@0 | 751 | #define GR_GL_SKIP_MISSING_GLYPH 0x90A9 |
michael@0 | 752 | #define GR_GL_USE_MISSING_GLYPH 0x90AA |
michael@0 | 753 | |
michael@0 | 754 | // path parameters |
michael@0 | 755 | #define GR_GL_PATH_STROKE_WIDTH 0x9075 |
michael@0 | 756 | #define GR_GL_PATH_INITIAL_END_CAP 0x9077 |
michael@0 | 757 | #define GR_GL_PATH_TERMINAL_END_CAP 0x9078 |
michael@0 | 758 | #define GR_GL_PATH_JOIN_STYLE 0x9079 |
michael@0 | 759 | #define GR_GL_PATH_MITER_LIMIT 0x907A |
michael@0 | 760 | #define GR_GL_PATH_INITIAL_DASH_CAP 0x907C |
michael@0 | 761 | #define GR_GL_PATH_TERMINAL_DASH_CAP 0x907D |
michael@0 | 762 | #define GR_GL_PATH_DASH_OFFSET 0x907E |
michael@0 | 763 | #define GR_GL_PATH_CLIENT_LENGTH 0x907F |
michael@0 | 764 | #define GR_GL_PATH_DASH_OFFSET_RESET 0x90B4 |
michael@0 | 765 | #define GR_GL_PATH_FILL_MODE 0x9080 |
michael@0 | 766 | #define GR_GL_PATH_FILL_MASK 0x9081 |
michael@0 | 767 | #define GR_GL_PATH_FILL_COVER_MODE 0x9082 |
michael@0 | 768 | #define GR_GL_PATH_STROKE_COVER_MODE 0x9083 |
michael@0 | 769 | #define GR_GL_PATH_STROKE_MASK 0x9084 |
michael@0 | 770 | #define GR_GL_PATH_END_CAPS 0x9076 |
michael@0 | 771 | #define GR_GL_PATH_DASH_CAPS 0x907B |
michael@0 | 772 | #define GR_GL_PATH_COMMAND_COUNT 0x909D |
michael@0 | 773 | #define GR_GL_PATH_COORD_COUNT 0x909E |
michael@0 | 774 | #define GR_GL_PATH_DASH_ARRAY_COUNT 0x909F |
michael@0 | 775 | #define GR_GL_PATH_FILL_BOUNDING_BOX 0x90A1 |
michael@0 | 776 | #define GR_GL_PATH_STROKE_BOUNDING_BOX 0x90A2 |
michael@0 | 777 | |
michael@0 | 778 | // fill modes |
michael@0 | 779 | /* GL_INVERT */ |
michael@0 | 780 | #define GR_GL_COUNT_UP 0x9088 |
michael@0 | 781 | #define GR_GL_COUNT_DOWN 0x9089 |
michael@0 | 782 | /* GL_PATH_FILL_MODE_NV */ |
michael@0 | 783 | |
michael@0 | 784 | // path color gen |
michael@0 | 785 | /* GL_PRIMARY_COLOR */ |
michael@0 | 786 | #define GR_GL_SECONDARY_COLOR 0x852D |
michael@0 | 787 | |
michael@0 | 788 | // gen mode |
michael@0 | 789 | /* GL_NONE */ |
michael@0 | 790 | /* GL_EYE_LINEAR */ |
michael@0 | 791 | /* GL_OBJECT_LINEAR */ |
michael@0 | 792 | #define GR_GL_PATH_OBJECT_BOUNDING_BOX 0x908A |
michael@0 | 793 | |
michael@0 | 794 | // cover mode |
michael@0 | 795 | #define GR_GL_CONVEX_HULL 0x908B |
michael@0 | 796 | #define GR_GL_BOUNDING_BOX 0x908D |
michael@0 | 797 | #define GR_GL_BOUNDING_BOX_OF_BOUNDING_BOXES 0x909C |
michael@0 | 798 | /* GL_PATH_FILL_COVER_MODE_NV */ |
michael@0 | 799 | |
michael@0 | 800 | // transform type |
michael@0 | 801 | /* GL_NONE */ |
michael@0 | 802 | #define GR_GL_TRANSLATE_X 0x908E |
michael@0 | 803 | #define GR_GL_TRANSLATE_Y 0x908F |
michael@0 | 804 | #define GR_GL_TRANSLATE_2D 0x9090 |
michael@0 | 805 | #define GR_GL_TRANSLATE_3D 0x9091 |
michael@0 | 806 | #define GR_GL_AFFINE_2D 0x9092 |
michael@0 | 807 | #define GR_GL_AFFINE_3D 0x9094 |
michael@0 | 808 | #define GR_GL_TRANSPOSE_AFFINE_2D 0x9096 |
michael@0 | 809 | #define GR_GL_TRANSPOSE_AFFINE_3D 0x9098 |
michael@0 | 810 | |
michael@0 | 811 | // path string types |
michael@0 | 812 | #define GR_GL_UTF8 0x909A |
michael@0 | 813 | #define GR_GL_UTF16 0x909B |
michael@0 | 814 | |
michael@0 | 815 | #define GR_GL_PATH_COMPUTED_LENGTH 0x90A0 |
michael@0 | 816 | |
michael@0 | 817 | // cap/dash values |
michael@0 | 818 | /* GL_FLAT */ |
michael@0 | 819 | #define GR_GL_SQUARE 0x90A3 |
michael@0 | 820 | #define GR_GL_ROUND 0x90A4 |
michael@0 | 821 | #define GR_GL_TRIANGULAR 0x90A5 |
michael@0 | 822 | |
michael@0 | 823 | // join values |
michael@0 | 824 | /* GL_NONE */ |
michael@0 | 825 | /* GL_ROUND_NV */ |
michael@0 | 826 | #define GR_GL_BEVEL 0x90A6 |
michael@0 | 827 | #define GR_GL_MITER_REVERT 0x90A7 |
michael@0 | 828 | #define GR_GL_MITER_TRUNCATE 0x90A8 |
michael@0 | 829 | |
michael@0 | 830 | // path dash reset values |
michael@0 | 831 | #define GR_GL_MOVE_TO_RESETS 0x90B5 |
michael@0 | 832 | #define GR_GL_MOVE_TO_CONTINUES 0x90B6 |
michael@0 | 833 | |
michael@0 | 834 | // font styles |
michael@0 | 835 | /* GL_NONE */ |
michael@0 | 836 | #define GR_GL_BOLD_BIT 0x01 |
michael@0 | 837 | #define GR_GL_ITALIC_BIT 0x02 |
michael@0 | 838 | |
michael@0 | 839 | // pnames for glGet |
michael@0 | 840 | #define GR_GL_PATH_ERROR_POSITION 0x90AB |
michael@0 | 841 | #define GR_GL_PATH_FOG_GEN_MODE 0x90AC |
michael@0 | 842 | #define GR_GL_PATH_STENCIL_FUNC 0x90B7 |
michael@0 | 843 | #define GR_GL_PATH_STENCIL_REF 0x90B8 |
michael@0 | 844 | #define GR_GL_PATH_STENCIL_VALUE_MASK 0x90B9 |
michael@0 | 845 | #define GR_GL_PATH_STENCIL_DEPTH_OFFSET_FACTOR 0x90BD |
michael@0 | 846 | #define GR_GL_PATH_STENCIL_DEPTH_OFFSET_UNITS 0x90BE |
michael@0 | 847 | #define GR_GL_PATH_COVER_DEPTH_FUNC 0x90BF |
michael@0 | 848 | |
michael@0 | 849 | // per-glyph metrics bits in metric mask query |
michael@0 | 850 | #define GR_GL_GLYPH_WIDTH_BIT 0x01 |
michael@0 | 851 | #define GR_GL_GLYPH_HEIGHT_BIT 0x02 |
michael@0 | 852 | #define GR_GL_GLYPH_HORIZONTAL_BEARING_X_BIT 0x04 |
michael@0 | 853 | #define GR_GL_GLYPH_HORIZONTAL_BEARING_Y_BIT 0x08 |
michael@0 | 854 | #define GR_GL_GLYPH_HORIZONTAL_BEARING_ADVANCE_BIT 0x10 |
michael@0 | 855 | #define GR_GL_GLYPH_VERTICAL_BEARING_X_BIT 0x20 |
michael@0 | 856 | #define GR_GL_GLYPH_VERTICAL_BEARING_Y_BIT 0x40 |
michael@0 | 857 | #define GR_GL_GLYPH_VERTICAL_BEARING_ADVANCE_BIT 0x80 |
michael@0 | 858 | #define GR_GL_GLYPH_HAS_KERNING 0x100 |
michael@0 | 859 | |
michael@0 | 860 | // per-font face metrics in metric mask query |
michael@0 | 861 | #define GR_GL_FONT_X_MIN_BOUNDS 0x00010000 |
michael@0 | 862 | #define GR_GL_FONT_Y_MIN_BOUNDS 0x00020000 |
michael@0 | 863 | #define GR_GL_FONT_X_MAX_BOUNDS 0x00040000 |
michael@0 | 864 | #define GR_GL_FONT_Y_MAX_BOUNDS 0x00080000 |
michael@0 | 865 | #define GR_GL_FONT_UNITS_PER_EM 0x00100000 |
michael@0 | 866 | #define GR_GL_FONT_ASCENDER 0x00200000 |
michael@0 | 867 | #define GR_GL_FONT_DESCENDER 0x00400000 |
michael@0 | 868 | #define GR_GL_FONT_HEIGHT 0x00800000 |
michael@0 | 869 | #define GR_GL_FONT_MAX_ADVANCE_WIDTH 0x01000000 |
michael@0 | 870 | #define GR_GL_FONT_MAX_ADVANCE_HEIGHT 0x02000000 |
michael@0 | 871 | #define GR_GL_FONT_UNDERLINE_POSITION 0x04000000 |
michael@0 | 872 | #define GR_GL_FONT_UNDERLINE_THICKNESS 0x08000000 |
michael@0 | 873 | #define GR_GL_FONT_HAS_KERNING 0x10000000 |
michael@0 | 874 | |
michael@0 | 875 | // path list modes (glGetPathSpacing) |
michael@0 | 876 | #define GR_GL_ACCUM_ADJACENT_PAIRS 0x90AD |
michael@0 | 877 | #define GR_GL_ADJACENT_PAIRS 0x90AE |
michael@0 | 878 | #define GR_GL_FIRST_TO_REST 0x90AF |
michael@0 | 879 | |
michael@0 | 880 | //path gen modes |
michael@0 | 881 | #define GR_GL_PATH_GEN_MODE 0x90B0 |
michael@0 | 882 | #define GR_GL_PATH_GEN_COEFF 0x90B1 |
michael@0 | 883 | #define GR_GL_PATH_GEN_COLOR_FORMAT 0x90B2 |
michael@0 | 884 | #define GR_GL_PATH_GEN_COMPONENTS 0x90B3 |
michael@0 | 885 | |
michael@0 | 886 | #endif |