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 |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 #define GR_GL_GENERATE_MIPMAP_HINT 0x8192 | 295 #define GR_GL_GENERATE_MIPMAP_HINT 0x8192 |
296 | 296 |
297 /* DataType */ | 297 /* DataType */ |
298 #define GR_GL_BYTE 0x1400 | 298 #define GR_GL_BYTE 0x1400 |
299 #define GR_GL_UNSIGNED_BYTE 0x1401 | 299 #define GR_GL_UNSIGNED_BYTE 0x1401 |
300 #define GR_GL_SHORT 0x1402 | 300 #define GR_GL_SHORT 0x1402 |
301 #define GR_GL_UNSIGNED_SHORT 0x1403 | 301 #define GR_GL_UNSIGNED_SHORT 0x1403 |
302 #define GR_GL_INT 0x1404 | 302 #define GR_GL_INT 0x1404 |
303 #define GR_GL_UNSIGNED_INT 0x1405 | 303 #define GR_GL_UNSIGNED_INT 0x1405 |
304 #define GR_GL_FLOAT 0x1406 | 304 #define GR_GL_FLOAT 0x1406 |
| 305 #define GR_GL_HALF_FLOAT 0x140B |
305 #define GR_GL_FIXED 0x140C | 306 #define GR_GL_FIXED 0x140C |
| 307 #define GR_GL_HALF_FLOAT_OES 0x8D61 |
306 | 308 |
307 /* Lighting */ | 309 /* Lighting */ |
308 #define GR_GL_LIGHTING 0x0B50 | 310 #define GR_GL_LIGHTING 0x0B50 |
309 #define GR_GL_LIGHT0 0x4000 | 311 #define GR_GL_LIGHT0 0x4000 |
310 #define GR_GL_LIGHT1 0x4001 | 312 #define GR_GL_LIGHT1 0x4001 |
311 #define GR_GL_LIGHT2 0x4002 | 313 #define GR_GL_LIGHT2 0x4002 |
312 #define GR_GL_LIGHT3 0x4003 | 314 #define GR_GL_LIGHT3 0x4003 |
313 #define GR_GL_LIGHT4 0x4004 | 315 #define GR_GL_LIGHT4 0x4004 |
314 #define GR_GL_LIGHT5 0x4005 | 316 #define GR_GL_LIGHT5 0x4005 |
315 #define GR_GL_LIGHT6 0x4006 | 317 #define GR_GL_LIGHT6 0x4006 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 #define GR_GL_ALPHA 0x1906 | 374 #define GR_GL_ALPHA 0x1906 |
373 #define GR_GL_RGB 0x1907 | 375 #define GR_GL_RGB 0x1907 |
374 #define GR_GL_RGBA 0x1908 | 376 #define GR_GL_RGBA 0x1908 |
375 #define GR_GL_BGRA 0x80E1 | 377 #define GR_GL_BGRA 0x80E1 |
376 #define GR_GL_LUMINANCE 0x1909 | 378 #define GR_GL_LUMINANCE 0x1909 |
377 #define GR_GL_LUMINANCE_ALPHA 0x190A | 379 #define GR_GL_LUMINANCE_ALPHA 0x190A |
378 #define GR_GL_PALETTE8_RGBA8 0x8B96 | 380 #define GR_GL_PALETTE8_RGBA8 0x8B96 |
379 #define GR_GL_ALPHA8 0x803C | 381 #define GR_GL_ALPHA8 0x803C |
380 | 382 |
381 #define GR_GL_R8 0x8229 | 383 #define GR_GL_R8 0x8229 |
| 384 #define GR_GL_R16F 0x822D |
| 385 #define GR_GL_ALPHA16F 0x881C |
382 | 386 |
383 /* PixelType */ | 387 /* PixelType */ |
384 /* GL_UNSIGNED_BYTE */ | 388 /* GL_UNSIGNED_BYTE */ |
385 #define GR_GL_UNSIGNED_SHORT_4_4_4_4 0x8033 | 389 #define GR_GL_UNSIGNED_SHORT_4_4_4_4 0x8033 |
386 #define GR_GL_UNSIGNED_SHORT_5_5_5_1 0x8034 | 390 #define GR_GL_UNSIGNED_SHORT_5_5_5_1 0x8034 |
387 #define GR_GL_UNSIGNED_SHORT_5_6_5 0x8363 | 391 #define GR_GL_UNSIGNED_SHORT_5_6_5 0x8363 |
388 | 392 |
389 /* Shaders */ | 393 /* Shaders */ |
390 #define GR_GL_FRAGMENT_SHADER 0x8B30 | 394 #define GR_GL_FRAGMENT_SHADER 0x8B30 |
391 #define GR_GL_VERTEX_SHADER 0x8B31 | 395 #define GR_GL_VERTEX_SHADER 0x8B31 |
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
843 // NV_path_rendering extension to EXT_direct_state_access: | 847 // NV_path_rendering extension to EXT_direct_state_access: |
844 // [the matrix functions] must support the PATH_PROJECTION_NV and | 848 // [the matrix functions] must support the PATH_PROJECTION_NV and |
845 // PATH_MODELVIEW_NV tokens for matrixMode. | 849 // PATH_MODELVIEW_NV tokens for matrixMode. |
846 #define GR_GL_PATH_PROJECTION 0x1701 | 850 #define GR_GL_PATH_PROJECTION 0x1701 |
847 #define GR_GL_PATH_MODELVIEW 0x1700 | 851 #define GR_GL_PATH_MODELVIEW 0x1700 |
848 | 852 |
849 /* ARM specific define for MSAA support on framebuffer fetch */ | 853 /* ARM specific define for MSAA support on framebuffer fetch */ |
850 #define GR_GL_FETCH_PER_SAMPLE_ARM 0x8F65 | 854 #define GR_GL_FETCH_PER_SAMPLE_ARM 0x8F65 |
851 | 855 |
852 #endif | 856 #endif |
OLD | NEW |