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 |
(...skipping 17 matching lines...) Expand all Loading... |
28 typedef int64_t GrGLint64; | 28 typedef int64_t GrGLint64; |
29 typedef unsigned char GrGLubyte; | 29 typedef unsigned char GrGLubyte; |
30 typedef unsigned short GrGLushort; | 30 typedef unsigned short GrGLushort; |
31 typedef unsigned int GrGLuint; | 31 typedef unsigned int GrGLuint; |
32 typedef uint64_t GrGLuint64; | 32 typedef uint64_t GrGLuint64; |
33 typedef float GrGLfloat; | 33 typedef float GrGLfloat; |
34 typedef float GrGLclampf; | 34 typedef float GrGLclampf; |
35 typedef double GrGLdouble; | 35 typedef double GrGLdouble; |
36 typedef double GrGLclampd; | 36 typedef double GrGLclampd; |
37 typedef void GrGLvoid; | 37 typedef void GrGLvoid; |
38 typedef long GrGLintptr; | 38 #ifndef SK_IGNORE_64BIT_OPENGL_CHANGES |
39 typedef long GrGLsizeiptr; | 39 #ifdef _WIN64 |
| 40 typedef signed long long int GrGLintptr; |
| 41 typedef signed long long int GrGLsizeiptr; |
| 42 #else |
| 43 typedef signed long int GrGLintptr; |
| 44 typedef signed long int GrGLsizeiptr; |
| 45 #endif |
| 46 #else |
| 47 typedef signed long int GrGLintptr; |
| 48 typedef signed long int GrGLsizeiptr; |
| 49 #endif |
40 | 50 |
41 /////////////////////////////////////////////////////////////////////////////// | 51 /////////////////////////////////////////////////////////////////////////////// |
42 | 52 |
43 extern "C" { | 53 extern "C" { |
44 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLActiveTextureProc)(GrGLenum textu
re); | 54 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLActiveTextureProc)(GrGLenum textu
re); |
45 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLAttachShaderProc)(GrGLuint progra
m, GrGLuint shader); | 55 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLAttachShaderProc)(GrGLuint progra
m, GrGLuint shader); |
46 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBeginQueryProc)(GrGLenum target,
GrGLuint id); | 56 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBeginQueryProc)(GrGLenum target,
GrGLuint id); |
47 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBindAttribLocationProc)(GrGLuint
program, GrGLuint index, const char* name); | 57 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBindAttribLocationProc)(GrGLuint
program, GrGLuint index, const char* name); |
48 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBindBufferProc)(GrGLenum target,
GrGLuint buffer); | 58 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBindBufferProc)(GrGLenum target,
GrGLuint buffer); |
49 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBindFramebufferProc)(GrGLenum tar
get, GrGLuint framebuffer); | 59 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLBindFramebufferProc)(GrGLenum tar
get, GrGLuint framebuffer); |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetPathColorGenfvProc)(GrGLenum c
olor, GrGLenum pname, GrGLfloat *value); | 240 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetPathColorGenfvProc)(GrGLenum c
olor, GrGLenum pname, GrGLfloat *value); |
231 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetPathTexGenivProc)(GrGLenum tex
CoordSet, GrGLenum pname, GrGLint *value); | 241 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetPathTexGenivProc)(GrGLenum tex
CoordSet, GrGLenum pname, GrGLint *value); |
232 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetPathTexGenfvProc)(GrGLenum tex
CoordSet, GrGLenum pname, GrGLfloat *value); | 242 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLGetPathTexGenfvProc)(GrGLenum tex
CoordSet, GrGLenum pname, GrGLfloat *value); |
233 typedef GrGLboolean (GR_GL_FUNCTION_TYPE* GrGLIsPointInFillPathProc)(GrGLuin
t path, GrGLuint mask, GrGLfloat x, GrGLfloat y); | 243 typedef GrGLboolean (GR_GL_FUNCTION_TYPE* GrGLIsPointInFillPathProc)(GrGLuin
t path, GrGLuint mask, GrGLfloat x, GrGLfloat y); |
234 typedef GrGLboolean (GR_GL_FUNCTION_TYPE* GrGLIsPointInStrokePathProc)(GrGLu
int path, GrGLfloat x, GrGLfloat y); | 244 typedef GrGLboolean (GR_GL_FUNCTION_TYPE* GrGLIsPointInStrokePathProc)(GrGLu
int path, GrGLfloat x, GrGLfloat y); |
235 typedef GrGLfloat (GR_GL_FUNCTION_TYPE* GrGLGetPathLengthProc)(GrGLuint path
, GrGLsizei startSegment, GrGLsizei numSegments); | 245 typedef GrGLfloat (GR_GL_FUNCTION_TYPE* GrGLGetPathLengthProc)(GrGLuint path
, GrGLsizei startSegment, GrGLsizei numSegments); |
236 typedef GrGLboolean (GR_GL_FUNCTION_TYPE* GrGLPointAlongPathProc)(GrGLuint p
ath, GrGLsizei startSegment, GrGLsizei numSegments, GrGLfloat distance, GrGLfloa
t *x, GrGLfloat *y, GrGLfloat *tangentX, GrGLfloat *tangentY); | 246 typedef GrGLboolean (GR_GL_FUNCTION_TYPE* GrGLPointAlongPathProc)(GrGLuint p
ath, GrGLsizei startSegment, GrGLsizei numSegments, GrGLfloat distance, GrGLfloa
t *x, GrGLfloat *y, GrGLfloat *tangentX, GrGLfloat *tangentY); |
237 } // extern "C" | 247 } // extern "C" |
238 | 248 |
239 #endif | 249 #endif |
OLD | NEW |