OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 | 8 |
9 | 9 |
10 #ifndef GrGLDefines_DEFINED | 10 #ifndef GrGLDefines_DEFINED |
11 #define GrGLDefines_DEFINED | 11 #define GrGLDefines_DEFINED |
12 | 12 |
| 13 /* Profiles */ |
| 14 #define GR_GL_CONTEXT_PROFILE_MASK 0x9126 |
| 15 #define GR_GL_CONTEXT_CORE_PROFILE_BIT 0x00000001 |
| 16 #define GR_GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002 |
| 17 |
13 // The following constants consist of the intersection of GL constants | 18 // The following constants consist of the intersection of GL constants |
14 // exported by GLES 1.0, GLES 2.0, and desktop GL required by the system. | 19 // exported by GLES 1.0, GLES 2.0, and desktop GL required by the system. |
15 | 20 |
16 #define GR_GL_DEPTH_BUFFER_BIT 0x00000100 | 21 #define GR_GL_DEPTH_BUFFER_BIT 0x00000100 |
17 #define GR_GL_STENCIL_BUFFER_BIT 0x00000400 | 22 #define GR_GL_STENCIL_BUFFER_BIT 0x00000400 |
18 #define GR_GL_COLOR_BUFFER_BIT 0x00004000 | 23 #define GR_GL_COLOR_BUFFER_BIT 0x00004000 |
19 | 24 |
20 /* Boolean */ | 25 /* Boolean */ |
21 #define GR_GL_FALSE 0 | 26 #define GR_GL_FALSE 0 |
22 #define GR_GL_TRUE 1 | 27 #define GR_GL_TRUE 1 |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 #define GR_GL_INVERT 0x150A | 354 #define GR_GL_INVERT 0x150A |
350 #define GR_GL_INCR_WRAP 0x8507 | 355 #define GR_GL_INCR_WRAP 0x8507 |
351 #define GR_GL_DECR_WRAP 0x8508 | 356 #define GR_GL_DECR_WRAP 0x8508 |
352 | 357 |
353 /* StringName */ | 358 /* StringName */ |
354 #define GR_GL_VENDOR 0x1F00 | 359 #define GR_GL_VENDOR 0x1F00 |
355 #define GR_GL_RENDERER 0x1F01 | 360 #define GR_GL_RENDERER 0x1F01 |
356 #define GR_GL_VERSION 0x1F02 | 361 #define GR_GL_VERSION 0x1F02 |
357 #define GR_GL_EXTENSIONS 0x1F03 | 362 #define GR_GL_EXTENSIONS 0x1F03 |
358 | 363 |
| 364 /* StringCounts */ |
| 365 #define GR_GL_NUM_EXTENSIONS 0x821D |
| 366 |
359 /* Pixel Mode / Transfer */ | 367 /* Pixel Mode / Transfer */ |
360 #define GR_GL_UNPACK_ROW_LENGTH 0x0CF2 | 368 #define GR_GL_UNPACK_ROW_LENGTH 0x0CF2 |
361 #define GR_GL_PACK_ROW_LENGTH 0x0D02 | 369 #define GR_GL_PACK_ROW_LENGTH 0x0D02 |
362 | 370 |
363 | 371 |
364 /* TextureMagFilter */ | 372 /* TextureMagFilter */ |
365 #define GR_GL_NEAREST 0x2600 | 373 #define GR_GL_NEAREST 0x2600 |
366 #define GR_GL_LINEAR 0x2601 | 374 #define GR_GL_LINEAR 0x2601 |
367 | 375 |
368 /* TextureMinFilter */ | 376 /* TextureMinFilter */ |
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
863 #define GR_GL_ADJACENT_PAIRS 0x90AE | 871 #define GR_GL_ADJACENT_PAIRS 0x90AE |
864 #define GR_GL_FIRST_TO_REST 0x90AF | 872 #define GR_GL_FIRST_TO_REST 0x90AF |
865 | 873 |
866 //path gen modes | 874 //path gen modes |
867 #define GR_GL_PATH_GEN_MODE 0x90B0 | 875 #define GR_GL_PATH_GEN_MODE 0x90B0 |
868 #define GR_GL_PATH_GEN_COEFF 0x90B1 | 876 #define GR_GL_PATH_GEN_COEFF 0x90B1 |
869 #define GR_GL_PATH_GEN_COLOR_FORMAT 0x90B2 | 877 #define GR_GL_PATH_GEN_COLOR_FORMAT 0x90B2 |
870 #define GR_GL_PATH_GEN_COMPONENTS 0x90B3 | 878 #define GR_GL_PATH_GEN_COMPONENTS 0x90B3 |
871 | 879 |
872 #endif | 880 #endif |
OLD | NEW |