OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #ifndef GrGLFunctions_DEFINED | 9 #ifndef GrGLFunctions_DEFINED |
10 #define GrGLFunctions_DEFINED | 10 #define GrGLFunctions_DEFINED |
11 | 11 |
12 #include "GrGLConfig.h" | 12 #include "GrGLConfig.h" |
13 | 13 |
14 //////////////////////////////////////////////////////////////////////////////// | 14 //////////////////////////////////////////////////////////////////////////////// |
15 | 15 |
16 /** | 16 /** |
17 * Classifies GL contexts by which standard they implement (currently as Desktop | 17 * Classifies GL contexts by which standard they implement (currently as Desktop |
18 * vs. ES). | 18 * vs. ES). |
19 */ | 19 */ |
20 enum GrGLStandard { | 20 enum GrGLStandard { |
21 kNone_GrGLStandard, | 21 kNone_GrGLStandard, |
22 kGL_GrGLStandard, | 22 kGL_GrGLStandard, |
23 kGLES_GrGLStandard, | 23 kGLES_GrGLStandard, |
24 }; | 24 }; |
25 static const int kGrGLStandardCnt = 3; | |
26 | 25 |
27 /////////////////////////////////////////////////////////////////////////////// | 26 /////////////////////////////////////////////////////////////////////////////// |
28 | 27 |
29 /** | 28 /** |
30 * Declares typedefs for all the GL functions used in GrGLInterface | 29 * Declares typedefs for all the GL functions used in GrGLInterface |
31 */ | 30 */ |
32 | 31 |
33 typedef unsigned int GrGLenum; | 32 typedef unsigned int GrGLenum; |
34 typedef unsigned char GrGLboolean; | 33 typedef unsigned char GrGLboolean; |
35 typedef unsigned int GrGLbitfield; | 34 typedef unsigned int GrGLbitfield; |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilThenCoverFillPathProc)(GrG
Luint path, GrGLenum fillMode, GrGLuint mask, GrGLenum coverMode); | 253 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilThenCoverFillPathProc)(GrG
Luint path, GrGLenum fillMode, GrGLuint mask, GrGLenum coverMode); |
255 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilThenCoverStrokePathProc)(G
rGLuint path, GrGLint reference, GrGLuint mask, GrGLenum coverMode); | 254 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilThenCoverStrokePathProc)(G
rGLuint path, GrGLint reference, GrGLuint mask, GrGLenum coverMode); |
256 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilThenCoverFillPathInstanced
Proc)(GrGLsizei numPaths, GrGLenum pathNameType, const GrGLvoid *paths, GrGLuint
pathBase, GrGLenum fillMode, GrGLuint mask, GrGLenum coverMode, GrGLenum transf
ormType, const GrGLfloat *transformValues); | 255 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilThenCoverFillPathInstanced
Proc)(GrGLsizei numPaths, GrGLenum pathNameType, const GrGLvoid *paths, GrGLuint
pathBase, GrGLenum fillMode, GrGLuint mask, GrGLenum coverMode, GrGLenum transf
ormType, const GrGLfloat *transformValues); |
257 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilThenCoverStrokePathInstanc
edProc)(GrGLsizei numPaths, GrGLenum pathNameType, const GrGLvoid *paths, GrGLui
nt pathBase, GrGLint reference, GrGLuint mask, GrGLenum coverMode, GrGLenum tran
sformType, const GrGLfloat *transformValues); | 256 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLStencilThenCoverStrokePathInstanc
edProc)(GrGLsizei numPaths, GrGLenum pathNameType, const GrGLvoid *paths, GrGLui
nt pathBase, GrGLint reference, GrGLuint mask, GrGLenum coverMode, GrGLenum tran
sformType, const GrGLfloat *transformValues); |
258 // NV_path_rendering v1.3 | 257 // NV_path_rendering v1.3 |
259 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLProgramPathFragmentInputGenProc)(
GrGLuint program, GrGLint location, GrGLenum genMode, GrGLint components,const G
rGLfloat *coeffs); | 258 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLProgramPathFragmentInputGenProc)(
GrGLuint program, GrGLint location, GrGLenum genMode, GrGLint components,const G
rGLfloat *coeffs); |
260 typedef GrGLenum (GR_GL_FUNCTION_TYPE* GrGLPathMemoryGlyphIndexArrayProc)(Gr
GLuint firstPathName, GrGLenum fontTarget, GrGLsizeiptr fontSize, const GrGLvoid
*fontData, GrGLsizei faceIndex, GrGLuint firstGlyphIndex, GrGLsizei numGlyphs,
GrGLuint pathParameterTemplate, GrGLfloat emScale); | 259 typedef GrGLenum (GR_GL_FUNCTION_TYPE* GrGLPathMemoryGlyphIndexArrayProc)(Gr
GLuint firstPathName, GrGLenum fontTarget, GrGLsizeiptr fontSize, const GrGLvoid
*fontData, GrGLsizei faceIndex, GrGLuint firstGlyphIndex, GrGLsizei numGlyphs,
GrGLuint pathParameterTemplate, GrGLfloat emScale); |
261 } // extern "C" | 260 } // extern "C" |
262 | 261 |
263 #endif | 262 #endif |
OLD | NEW |