@shopify/react-native-skia 1.0.5 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/android/CMakeLists.txt +4 -8
- package/android/build.gradle +9 -2
- package/android/cpp/jni/JniPlatformContext.cpp +7 -7
- package/android/cpp/jni/JniSkiaManager.cpp +1 -1
- package/android/cpp/jni/include/JniSkiaBaseView.h +2 -2
- package/android/cpp/jni/include/JniSkiaDomView.h +4 -4
- package/android/cpp/jni/include/JniSkiaManager.h +4 -4
- package/android/cpp/jni/include/JniSkiaPictureView.h +4 -4
- package/android/cpp/rnskia-android/GrAHardwareBufferUtils.cpp +245 -0
- package/android/cpp/rnskia-android/GrAHardwareBufferUtils.h +33 -0
- package/android/cpp/rnskia-android/RNSkAndroidPlatformContext.h +3 -3
- package/android/cpp/rnskia-android/RNSkAndroidView.h +1 -1
- package/android/cpp/rnskia-android/RNSkOpenGLCanvasProvider.cpp +2 -2
- package/android/cpp/rnskia-android/SkiaOpenGLHelper.h +4 -4
- package/android/cpp/rnskia-android/SkiaOpenGLSurfaceFactory.cpp +32 -2
- package/android/cpp/rnskia-android/SkiaOpenGLSurfaceFactory.h +7 -4
- package/cpp/api/JsiSkAnimatedImage.h +1 -1
- package/cpp/api/JsiSkCanvas.h +8 -8
- package/cpp/api/JsiSkColor.h +1 -1
- package/cpp/api/JsiSkColorFilter.h +1 -1
- package/cpp/api/JsiSkColorFilterFactory.h +2 -2
- package/cpp/api/JsiSkContourMeasure.h +1 -1
- package/cpp/api/JsiSkContourMeasureIter.h +1 -1
- package/cpp/api/JsiSkData.h +2 -2
- package/cpp/api/JsiSkFont.h +2 -2
- package/cpp/api/JsiSkFontMgr.h +1 -1
- package/cpp/api/JsiSkFontMgrFactory.h +1 -1
- package/cpp/api/JsiSkFontStyle.h +2 -2
- package/cpp/api/JsiSkImage.h +2 -2
- package/cpp/api/JsiSkImageFactory.h +0 -1
- package/cpp/api/JsiSkImageFilter.h +1 -1
- package/cpp/api/JsiSkImageFilterFactory.h +1 -1
- package/cpp/api/JsiSkImageInfo.h +1 -1
- package/cpp/api/JsiSkMaskFilter.h +1 -1
- package/cpp/api/JsiSkMaskFilterFactory.h +1 -1
- package/cpp/api/JsiSkMatrix.h +1 -1
- package/cpp/api/JsiSkPaint.h +1 -1
- package/cpp/api/JsiSkParagraph.h +7 -7
- package/cpp/api/JsiSkParagraphBuilder.h +9 -9
- package/cpp/api/JsiSkParagraphBuilderFactory.h +4 -4
- package/cpp/api/JsiSkParagraphStyle.h +3 -3
- package/cpp/api/JsiSkPath.h +11 -11
- package/cpp/api/JsiSkPathEffect.h +1 -1
- package/cpp/api/JsiSkPathEffectFactory.h +4 -4
- package/cpp/api/JsiSkPathFactory.h +2 -2
- package/cpp/api/JsiSkPicture.h +1 -1
- package/cpp/api/JsiSkPictureFactory.h +2 -2
- package/cpp/api/JsiSkPictureRecorder.h +2 -2
- package/cpp/api/JsiSkPoint.h +1 -1
- package/cpp/api/JsiSkRRect.h +1 -1
- package/cpp/api/JsiSkRSXform.h +1 -1
- package/cpp/api/JsiSkRect.h +1 -1
- package/cpp/api/JsiSkRuntimeEffect.h +1 -1
- package/cpp/api/JsiSkRuntimeShaderBuilder.h +1 -1
- package/cpp/api/JsiSkSVGFactory.h +1 -1
- package/cpp/api/JsiSkShader.h +2 -2
- package/cpp/api/JsiSkShaderFactory.h +3 -3
- package/cpp/api/JsiSkStrutStyle.h +1 -1
- package/cpp/api/JsiSkSurface.h +1 -1
- package/cpp/api/JsiSkSurfaceFactory.h +1 -1
- package/cpp/api/JsiSkTextBlob.h +1 -1
- package/cpp/api/JsiSkTextBlobFactory.h +1 -1
- package/cpp/api/JsiSkTextStyle.h +2 -2
- package/cpp/api/JsiSkTypeface.h +3 -3
- package/cpp/api/JsiSkTypefaceFontProvider.h +2 -2
- package/cpp/api/JsiSkVertices.h +1 -1
- package/cpp/jsi/JsiHostObject.cpp +1 -1
- package/cpp/rnskia/RNSkDomView.cpp +1 -1
- package/cpp/rnskia/RNSkDomView.h +3 -3
- package/cpp/rnskia/RNSkJsiViewApi.h +48 -0
- package/cpp/rnskia/RNSkManager.cpp +5 -5
- package/cpp/rnskia/RNSkPictureView.h +3 -3
- package/cpp/rnskia/RNSkPlatformContext.h +5 -5
- package/cpp/rnskia/RNSkView.h +2 -2
- package/cpp/rnskia/dom/base/ConcatablePaint.h +6 -6
- package/cpp/rnskia/dom/base/Declaration.h +1 -1
- package/cpp/rnskia/dom/base/DeclarationContext.h +7 -7
- package/cpp/rnskia/dom/base/DrawingContext.h +3 -3
- package/cpp/rnskia/dom/nodes/JsiBlurMaskNode.h +2 -2
- package/cpp/rnskia/dom/nodes/JsiColorFilterNodes.h +1 -1
- package/cpp/rnskia/dom/nodes/JsiImageFilterNodes.h +1 -1
- package/cpp/rnskia/dom/nodes/JsiPathEffectNodes.h +1 -1
- package/cpp/rnskia/dom/nodes/JsiPathNode.h +1 -1
- package/cpp/rnskia/dom/nodes/JsiPointsNode.h +1 -1
- package/cpp/rnskia/dom/nodes/JsiShaderNodes.h +1 -1
- package/cpp/rnskia/dom/props/BlendModeProp.h +1 -1
- package/cpp/rnskia/dom/props/BoxShadowProps.h +1 -1
- package/cpp/rnskia/dom/props/CircleProp.h +1 -1
- package/cpp/rnskia/dom/props/ClipProp.h +2 -2
- package/cpp/rnskia/dom/props/PaintProps.h +1 -1
- package/cpp/rnskia/dom/props/PathProp.h +1 -1
- package/cpp/rnskia/dom/props/PointProp.h +1 -1
- package/cpp/rnskia/dom/props/PointsProp.h +1 -1
- package/cpp/rnskia/dom/props/RRectProp.h +2 -2
- package/cpp/rnskia/dom/props/RSXformProp.h +1 -1
- package/cpp/rnskia/dom/props/RadiusProp.h +1 -1
- package/cpp/rnskia/dom/props/RectProp.h +1 -1
- package/cpp/rnskia/dom/props/StrokeProps.h +1 -1
- package/cpp/rnskia/dom/props/TileModeProp.h +1 -1
- package/cpp/rnskia/dom/props/UniformsProp.h +1 -1
- package/cpp/rnskia/dom/props/VertexModeProp.h +1 -1
- package/cpp/rnskia/dom/props/VerticesProps.h +1 -1
- package/cpp/skia/src/gpu/ganesh/gl/GrGLDefines.h +1158 -0
- package/cpp/utils/RNSkTypedArray.h +1 -1
- package/ios/RNSkia-iOS/RNSkMetalCanvasProvider.mm +6 -6
- package/ios/RNSkia-iOS/RNSkiOSPlatformContext.mm +3 -3
- package/ios/RNSkia-iOS/SkiaDomView.mm +7 -7
- package/ios/RNSkia-iOS/SkiaDomViewManager.mm +7 -7
- package/ios/RNSkia-iOS/SkiaManager.h +1 -1
- package/ios/RNSkia-iOS/SkiaMetalSurfaceFactory.h +1 -1
- package/ios/RNSkia-iOS/SkiaMetalSurfaceFactory.mm +5 -5
- package/ios/RNSkia-iOS/SkiaPictureView.mm +7 -7
- package/ios/RNSkia-iOS/SkiaPictureViewManager.mm +4 -4
- package/ios/RNSkia-iOS/SkiaUIView.h +3 -3
- package/ios/RNSkia-iOS/SkiaUIView.mm +2 -2
- package/ios/RNSkia-iOS/ViewScreenshotService.h +1 -1
- package/ios/RNSkia-iOS/ViewScreenshotService.mm +1 -1
- package/lib/commonjs/headless/index.d.ts +1 -0
- package/lib/commonjs/headless/index.js +17 -0
- package/lib/commonjs/headless/index.js.map +1 -1
- package/lib/commonjs/mock/index.js +1 -0
- package/lib/commonjs/mock/index.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkSurfaceFactory.js +1 -1
- package/lib/commonjs/skia/web/JsiSkSurfaceFactory.js.map +1 -1
- package/lib/commonjs/views/SkiaDomView.d.ts +6 -0
- package/lib/commonjs/views/SkiaDomView.js +10 -0
- package/lib/commonjs/views/SkiaDomView.js.map +1 -1
- package/lib/commonjs/views/types.d.ts +1 -0
- package/lib/commonjs/views/types.js.map +1 -1
- package/lib/module/headless/index.d.ts +1 -0
- package/lib/module/headless/index.js +1 -0
- package/lib/module/headless/index.js.map +1 -1
- package/lib/module/mock/index.js +1 -0
- package/lib/module/mock/index.js.map +1 -1
- package/lib/module/skia/web/JsiSkSurfaceFactory.js +1 -1
- package/lib/module/skia/web/JsiSkSurfaceFactory.js.map +1 -1
- package/lib/module/views/SkiaDomView.d.ts +6 -0
- package/lib/module/views/SkiaDomView.js +10 -0
- package/lib/module/views/SkiaDomView.js.map +1 -1
- package/lib/module/views/types.d.ts +1 -0
- package/lib/module/views/types.js.map +1 -1
- package/lib/typescript/src/headless/index.d.ts +1 -0
- package/lib/typescript/src/views/SkiaDomView.d.ts +6 -0
- package/lib/typescript/src/views/types.d.ts +1 -0
- package/package.json +1 -1
- package/src/headless/index.ts +2 -0
- package/src/mock/index.ts +1 -0
- package/src/skia/web/JsiSkSurfaceFactory.ts +1 -1
- package/src/views/SkiaDomView.tsx +10 -0
- package/src/views/types.ts +1 -0
@@ -0,0 +1,1158 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright 2011 Google Inc.
|
3
|
+
*
|
4
|
+
* Use of this source code is governed by a BSD-style license that can be
|
5
|
+
* found in the LICENSE file.
|
6
|
+
*/
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
#ifndef GrGLDefines_DEFINED
|
11
|
+
#define GrGLDefines_DEFINED
|
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
|
+
|
18
|
+
// The following constants consist of the intersection of GL constants
|
19
|
+
// exported by GLES 1.0, GLES 2.0, and desktop GL required by the system.
|
20
|
+
|
21
|
+
#define GR_GL_DEPTH_BUFFER_BIT 0x00000100
|
22
|
+
#define GR_GL_STENCIL_BUFFER_BIT 0x00000400
|
23
|
+
#define GR_GL_COLOR_BUFFER_BIT 0x00004000
|
24
|
+
|
25
|
+
/* Boolean */
|
26
|
+
#define GR_GL_FALSE 0
|
27
|
+
#define GR_GL_TRUE 1
|
28
|
+
|
29
|
+
/* BeginMode */
|
30
|
+
#define GR_GL_POINTS 0x0000
|
31
|
+
#define GR_GL_LINES 0x0001
|
32
|
+
#define GR_GL_LINE_LOOP 0x0002
|
33
|
+
#define GR_GL_LINE_STRIP 0x0003
|
34
|
+
#define GR_GL_TRIANGLES 0x0004
|
35
|
+
#define GR_GL_TRIANGLE_STRIP 0x0005
|
36
|
+
#define GR_GL_TRIANGLE_FAN 0x0006
|
37
|
+
#define GR_GL_PATCHES 0x000E
|
38
|
+
|
39
|
+
/* AlphaFunction (not supported in ES20) */
|
40
|
+
/* GL_NEVER */
|
41
|
+
/* GL_LESS */
|
42
|
+
/* GL_EQUAL */
|
43
|
+
/* GL_LEQUAL */
|
44
|
+
/* GL_GREATER */
|
45
|
+
/* GL_NOTEQUAL */
|
46
|
+
/* GL_GEQUAL */
|
47
|
+
/* GL_ALWAYS */
|
48
|
+
|
49
|
+
/* Basic OpenGL blend equations */
|
50
|
+
#define GR_GL_FUNC_ADD 0x8006
|
51
|
+
#define GR_GL_FUNC_SUBTRACT 0x800A
|
52
|
+
#define GR_GL_FUNC_REVERSE_SUBTRACT 0x800B
|
53
|
+
|
54
|
+
/* GL_KHR_blend_equation_advanced */
|
55
|
+
#define GR_GL_SCREEN 0x9295
|
56
|
+
#define GR_GL_OVERLAY 0x9296
|
57
|
+
#define GR_GL_DARKEN 0x9297
|
58
|
+
#define GR_GL_LIGHTEN 0x9298
|
59
|
+
#define GR_GL_COLORDODGE 0x9299
|
60
|
+
#define GR_GL_COLORBURN 0x929A
|
61
|
+
#define GR_GL_HARDLIGHT 0x929B
|
62
|
+
#define GR_GL_SOFTLIGHT 0x929C
|
63
|
+
#define GR_GL_DIFFERENCE 0x929E
|
64
|
+
#define GR_GL_EXCLUSION 0x92A0
|
65
|
+
#define GR_GL_MULTIPLY 0x9294
|
66
|
+
#define GR_GL_HSL_HUE 0x92AD
|
67
|
+
#define GR_GL_HSL_SATURATION 0x92AE
|
68
|
+
#define GR_GL_HSL_COLOR 0x92AF
|
69
|
+
#define GR_GL_HSL_LUMINOSITY 0x92B0
|
70
|
+
|
71
|
+
/* BlendingFactorDest */
|
72
|
+
#define GR_GL_ZERO 0
|
73
|
+
#define GR_GL_ONE 1
|
74
|
+
#define GR_GL_SRC_COLOR 0x0300
|
75
|
+
#define GR_GL_ONE_MINUS_SRC_COLOR 0x0301
|
76
|
+
#define GR_GL_SRC_ALPHA 0x0302
|
77
|
+
#define GR_GL_ONE_MINUS_SRC_ALPHA 0x0303
|
78
|
+
#define GR_GL_DST_ALPHA 0x0304
|
79
|
+
#define GR_GL_ONE_MINUS_DST_ALPHA 0x0305
|
80
|
+
|
81
|
+
/* BlendingFactorSrc */
|
82
|
+
/* GL_ZERO */
|
83
|
+
/* GL_ONE */
|
84
|
+
#define GR_GL_DST_COLOR 0x0306
|
85
|
+
#define GR_GL_ONE_MINUS_DST_COLOR 0x0307
|
86
|
+
#define GR_GL_SRC_ALPHA_SATURATE 0x0308
|
87
|
+
/* GL_SRC_ALPHA */
|
88
|
+
/* GL_ONE_MINUS_SRC_ALPHA */
|
89
|
+
/* GL_DST_ALPHA */
|
90
|
+
/* GL_ONE_MINUS_DST_ALPHA */
|
91
|
+
|
92
|
+
/* ExtendedBlendFactors */
|
93
|
+
#define GR_GL_SRC1_COLOR 0x88F9
|
94
|
+
#define GR_GL_ONE_MINUS_SRC1_COLOR 0x88FA
|
95
|
+
/* GL_SRC1_ALPHA */
|
96
|
+
#define GR_GL_ONE_MINUS_SRC1_ALPHA 0x88FB
|
97
|
+
|
98
|
+
/* Separate Blend Functions */
|
99
|
+
#define GR_GL_BLEND_DST_RGB 0x80C8
|
100
|
+
#define GR_GL_BLEND_SRC_RGB 0x80C9
|
101
|
+
#define GR_GL_BLEND_DST_ALPHA 0x80CA
|
102
|
+
#define GR_GL_BLEND_SRC_ALPHA 0x80CB
|
103
|
+
#define GR_GL_CONSTANT_COLOR 0x8001
|
104
|
+
#define GR_GL_ONE_MINUS_CONSTANT_COLOR 0x8002
|
105
|
+
#define GR_GL_CONSTANT_ALPHA 0x8003
|
106
|
+
#define GR_GL_ONE_MINUS_CONSTANT_ALPHA 0x8004
|
107
|
+
#define GR_GL_BLEND_COLOR 0x8005
|
108
|
+
|
109
|
+
/* Buffer Objects */
|
110
|
+
#define GR_GL_ARRAY_BUFFER 0x8892
|
111
|
+
#define GR_GL_ELEMENT_ARRAY_BUFFER 0x8893
|
112
|
+
#define GR_GL_DRAW_INDIRECT_BUFFER 0x8F3F
|
113
|
+
#define GR_GL_TEXTURE_BUFFER 0x8C2A
|
114
|
+
#define GR_GL_ARRAY_BUFFER_BINDING 0x8894
|
115
|
+
#define GR_GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895
|
116
|
+
#define GR_GL_DRAW_INDIRECT_BUFFER_BINDING 0x8F43
|
117
|
+
#define GR_GL_PIXEL_PACK_BUFFER 0x88EB
|
118
|
+
#define GR_GL_PIXEL_UNPACK_BUFFER 0x88EC
|
119
|
+
|
120
|
+
#define GR_GL_PIXEL_UNPACK_TRANSFER_BUFFER_CHROMIUM 0x78EC
|
121
|
+
#define GR_GL_PIXEL_PACK_TRANSFER_BUFFER_CHROMIUM 0x78ED
|
122
|
+
|
123
|
+
#define GR_GL_STREAM_DRAW 0x88E0
|
124
|
+
#define GR_GL_STREAM_READ 0x88E1
|
125
|
+
#define GR_GL_STATIC_DRAW 0x88E4
|
126
|
+
#define GR_GL_STATIC_READ 0x88E5
|
127
|
+
#define GR_GL_DYNAMIC_DRAW 0x88E8
|
128
|
+
#define GR_GL_DYNAMIC_READ 0x88E9
|
129
|
+
|
130
|
+
#define GR_GL_BUFFER_SIZE 0x8764
|
131
|
+
#define GR_GL_BUFFER_USAGE 0x8765
|
132
|
+
|
133
|
+
#define GR_GL_CURRENT_VERTEX_ATTRIB 0x8626
|
134
|
+
|
135
|
+
/* CullFaceMode */
|
136
|
+
#define GR_GL_FRONT 0x0404
|
137
|
+
#define GR_GL_BACK 0x0405
|
138
|
+
#define GR_GL_FRONT_AND_BACK 0x0408
|
139
|
+
|
140
|
+
/* DepthFunction */
|
141
|
+
/* GL_NEVER */
|
142
|
+
/* GL_LESS */
|
143
|
+
/* GL_EQUAL */
|
144
|
+
/* GL_LEQUAL */
|
145
|
+
/* GL_GREATER */
|
146
|
+
/* GL_NOTEQUAL */
|
147
|
+
/* GL_GEQUAL */
|
148
|
+
/* GL_ALWAYS */
|
149
|
+
|
150
|
+
/* EnableCap */
|
151
|
+
#define GR_GL_TEXTURE_NONE 0x0000
|
152
|
+
#define GR_GL_TEXTURE_2D 0x0DE1
|
153
|
+
#define GR_GL_CULL_FACE 0x0B44
|
154
|
+
#define GR_GL_BLEND 0x0BE2
|
155
|
+
#define GR_GL_DITHER 0x0BD0
|
156
|
+
#define GR_GL_STENCIL_TEST 0x0B90
|
157
|
+
#define GR_GL_DEPTH_TEST 0x0B71
|
158
|
+
#define GR_GL_SCISSOR_TEST 0x0C11
|
159
|
+
#define GR_GL_POLYGON_OFFSET_FILL 0x8037
|
160
|
+
#define GR_GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E
|
161
|
+
#define GR_GL_SAMPLE_COVERAGE 0x80A0
|
162
|
+
#define GR_GL_POLYGON_OFFSET_FILL 0x8037
|
163
|
+
#define GR_GL_POLYGON_SMOOTH 0x0B41
|
164
|
+
#define GR_GL_POLYGON_STIPPLE 0x0B42
|
165
|
+
#define GR_GL_COLOR_LOGIC_OP 0x0BF2
|
166
|
+
#define GR_GL_COLOR_TABLE 0x80D0
|
167
|
+
#define GR_GL_INDEX_LOGIC_OP 0x0BF1
|
168
|
+
#define GR_GL_VERTEX_PROGRAM_POINT_SIZE 0x8642
|
169
|
+
#define GR_GL_LINE_STIPPLE 0x0B24
|
170
|
+
#define GR_GL_FRAMEBUFFER_SRGB 0x8DB9
|
171
|
+
#define GR_GL_SHADER_PIXEL_LOCAL_STORAGE 0x8F64
|
172
|
+
#define GR_GL_SAMPLE_SHADING 0x8C36
|
173
|
+
|
174
|
+
/* ErrorCode */
|
175
|
+
#define GR_GL_NO_ERROR 0
|
176
|
+
#define GR_GL_INVALID_ENUM 0x0500
|
177
|
+
#define GR_GL_INVALID_VALUE 0x0501
|
178
|
+
#define GR_GL_INVALID_OPERATION 0x0502
|
179
|
+
#define GR_GL_OUT_OF_MEMORY 0x0505
|
180
|
+
#define GR_GL_CONTEXT_LOST 0x300E // TODO(gman): What value?
|
181
|
+
|
182
|
+
/* FrontFaceDirection */
|
183
|
+
#define GR_GL_CW 0x0900
|
184
|
+
#define GR_GL_CCW 0x0901
|
185
|
+
|
186
|
+
/* GetPName */
|
187
|
+
#define GR_GL_LINE_WIDTH 0x0B21
|
188
|
+
#define GR_GL_ALIASED_POINT_SIZE_RANGE 0x846D
|
189
|
+
#define GR_GL_ALIASED_LINE_WIDTH_RANGE 0x846E
|
190
|
+
#define GR_GL_CULL_FACE_MODE 0x0B45
|
191
|
+
#define GR_GL_FRONT_FACE 0x0B46
|
192
|
+
#define GR_GL_DEPTH_RANGE 0x0B70
|
193
|
+
#define GR_GL_DEPTH_WRITEMASK 0x0B72
|
194
|
+
#define GR_GL_DEPTH_CLEAR_VALUE 0x0B73
|
195
|
+
#define GR_GL_DEPTH_FUNC 0x0B74
|
196
|
+
#define GR_GL_STENCIL_CLEAR_VALUE 0x0B91
|
197
|
+
#define GR_GL_STENCIL_FUNC 0x0B92
|
198
|
+
#define GR_GL_STENCIL_FAIL 0x0B94
|
199
|
+
#define GR_GL_STENCIL_PASS_DEPTH_FAIL 0x0B95
|
200
|
+
#define GR_GL_STENCIL_PASS_DEPTH_PASS 0x0B96
|
201
|
+
#define GR_GL_STENCIL_REF 0x0B97
|
202
|
+
#define GR_GL_STENCIL_VALUE_MASK 0x0B93
|
203
|
+
#define GR_GL_STENCIL_WRITEMASK 0x0B98
|
204
|
+
#define GR_GL_STENCIL_BACK_FUNC 0x8800
|
205
|
+
#define GR_GL_STENCIL_BACK_FAIL 0x8801
|
206
|
+
#define GR_GL_STENCIL_BACK_PASS_DEPTH_FAIL 0x8802
|
207
|
+
#define GR_GL_STENCIL_BACK_PASS_DEPTH_PASS 0x8803
|
208
|
+
#define GR_GL_STENCIL_BACK_REF 0x8CA3
|
209
|
+
#define GR_GL_STENCIL_BACK_VALUE_MASK 0x8CA4
|
210
|
+
#define GR_GL_STENCIL_BACK_WRITEMASK 0x8CA5
|
211
|
+
#define GR_GL_VIEWPORT 0x0BA2
|
212
|
+
#define GR_GL_SCISSOR_BOX 0x0C10
|
213
|
+
/* GL_SCISSOR_TEST */
|
214
|
+
#define GR_GL_COLOR_CLEAR_VALUE 0x0C22
|
215
|
+
#define GR_GL_COLOR_WRITEMASK 0x0C23
|
216
|
+
#define GR_GL_UNPACK_ALIGNMENT 0x0CF5
|
217
|
+
#define GR_GL_PACK_ALIGNMENT 0x0D05
|
218
|
+
#define GR_GL_PACK_REVERSE_ROW_ORDER 0x93A4
|
219
|
+
#define GR_GL_MAX_TEXTURE_SIZE 0x0D33
|
220
|
+
#define GR_GL_TEXTURE_MIN_LOD 0x813A
|
221
|
+
#define GR_GL_TEXTURE_MAX_LOD 0x813B
|
222
|
+
#define GR_GL_TEXTURE_BASE_LEVEL 0x813C
|
223
|
+
#define GR_GL_TEXTURE_MAX_LEVEL 0x813D
|
224
|
+
#define GR_GL_MAX_VIEWPORT_DIMS 0x0D3A
|
225
|
+
#define GR_GL_SUBPIXEL_BITS 0x0D50
|
226
|
+
#define GR_GL_RED_BITS 0x0D52
|
227
|
+
#define GR_GL_GREEN_BITS 0x0D53
|
228
|
+
#define GR_GL_BLUE_BITS 0x0D54
|
229
|
+
#define GR_GL_ALPHA_BITS 0x0D55
|
230
|
+
#define GR_GL_DEPTH_BITS 0x0D56
|
231
|
+
#define GR_GL_STENCIL_BITS 0x0D57
|
232
|
+
#define GR_GL_POLYGON_OFFSET_UNITS 0x2A00
|
233
|
+
/* GL_POLYGON_OFFSET_FILL */
|
234
|
+
#define GR_GL_POLYGON_OFFSET_FACTOR 0x8038
|
235
|
+
#define GR_GL_TEXTURE_BINDING_2D 0x8069
|
236
|
+
#define GR_GL_SAMPLE_BUFFERS 0x80A8
|
237
|
+
#define GR_GL_SAMPLES 0x80A9
|
238
|
+
#define GR_GL_SAMPLE_COVERAGE_VALUE 0x80AA
|
239
|
+
#define GR_GL_SAMPLE_COVERAGE_INVERT 0x80AB
|
240
|
+
#define GR_GL_RENDERBUFFER_COVERAGE_SAMPLES 0x8CAB
|
241
|
+
#define GR_GL_RENDERBUFFER_COLOR_SAMPLES 0x8E10
|
242
|
+
#define GR_GL_MAX_MULTISAMPLE_COVERAGE_MODES 0x8E11
|
243
|
+
#define GR_GL_MULTISAMPLE_COVERAGE_MODES 0x8E12
|
244
|
+
#define GR_GL_MAX_TEXTURE_BUFFER_SIZE 0x8C2B
|
245
|
+
|
246
|
+
#define GR_GL_CONTEXT_FLAGS 0x821E
|
247
|
+
#define GR_GL_CONTEXT_FLAG_PROTECTED_CONTENT_BIT_EXT 0x00000010
|
248
|
+
#define GR_GL_TEXTURE_PROTECTED_EXT 0x8BFA
|
249
|
+
|
250
|
+
/* GetTextureParameter */
|
251
|
+
/* GL_TEXTURE_MAG_FILTER */
|
252
|
+
/* GL_TEXTURE_MIN_FILTER */
|
253
|
+
/* GL_TEXTURE_WRAP_S */
|
254
|
+
/* GL_TEXTURE_WRAP_T */
|
255
|
+
|
256
|
+
#define GR_GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
|
257
|
+
#define GR_GL_COMPRESSED_TEXTURE_FORMATS 0x86A3
|
258
|
+
|
259
|
+
/* Compressed Texture Formats */
|
260
|
+
#define GR_GL_COMPRESSED_RGB_S3TC_DXT1_EXT 0x83F0
|
261
|
+
#define GR_GL_COMPRESSED_RGBA_S3TC_DXT1_EXT 0x83F1
|
262
|
+
#define GR_GL_COMPRESSED_RGBA_S3TC_DXT3_EXT 0x83F2
|
263
|
+
#define GR_GL_COMPRESSED_RGBA_S3TC_DXT5_EXT 0x83F3
|
264
|
+
|
265
|
+
#define GR_GL_COMPRESSED_SRGB_S3TC_DXT1_EXT 0x8C4C
|
266
|
+
#define GR_GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT 0x8C4D
|
267
|
+
#define GR_GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT 0x8C4E
|
268
|
+
#define GR_GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT 0x8C4F
|
269
|
+
|
270
|
+
#define GR_GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG 0x8C00
|
271
|
+
#define GR_GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG 0x8C01
|
272
|
+
#define GR_GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG 0x8C02
|
273
|
+
#define GR_GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG 0x8C03
|
274
|
+
|
275
|
+
#define GR_GL_COMPRESSED_RGBA_PVRTC_2BPPV2_IMG 0x9137
|
276
|
+
#define GR_GL_COMPRESSED_RGBA_PVRTC_4BPPV2_IMG 0x9138
|
277
|
+
|
278
|
+
#define GR_GL_COMPRESSED_ETC1_RGB8 0x8D64
|
279
|
+
|
280
|
+
#define GR_GL_COMPRESSED_R11_EAC 0x9270
|
281
|
+
#define GR_GL_COMPRESSED_SIGNED_R11_EAC 0x9271
|
282
|
+
#define GR_GL_COMPRESSED_RG11_EAC 0x9272
|
283
|
+
#define GR_GL_COMPRESSED_SIGNED_RG11_EAC 0x9273
|
284
|
+
|
285
|
+
#define GR_GL_COMPRESSED_RGB8_ETC2 0x9274
|
286
|
+
#define GR_GL_COMPRESSED_SRGB8_ETC2 0x9275
|
287
|
+
#define GR_GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1 0x9276
|
288
|
+
#define GR_GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1 0x9277
|
289
|
+
#define GR_GL_COMPRESSED_RGBA8_ETC2_EAC 0x9278
|
290
|
+
#define GR_GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC 0x9279
|
291
|
+
|
292
|
+
#define GR_GL_COMPRESSED_LUMINANCE_LATC1 0x8C70
|
293
|
+
#define GR_GL_COMPRESSED_SIGNED_LUMINANCE_LATC1 0x8C71
|
294
|
+
#define GR_GL_COMPRESSED_LUMINANCE_ALPHA_LATC2 0x8C72
|
295
|
+
#define GR_GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2 0x8C73
|
296
|
+
|
297
|
+
#define GR_GL_COMPRESSED_RED_RGTC1 0x8DBB
|
298
|
+
#define GR_GL_COMPRESSED_SIGNED_RED_RGTC1 0x8DBC
|
299
|
+
#define GR_GL_COMPRESSED_RED_GREEN_RGTC2 0x8DBD
|
300
|
+
#define GR_GL_COMPRESSED_SIGNED_RED_GREEN_RGTC2 0x8DBE
|
301
|
+
|
302
|
+
#define GR_GL_COMPRESSED_3DC_X 0x87F9
|
303
|
+
#define GR_GL_COMPRESSED_3DC_XY 0x87FA
|
304
|
+
|
305
|
+
#define GR_GL_COMPRESSED_RGBA_BPTC_UNORM 0x8E8C
|
306
|
+
#define GR_GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM 0x8E8D
|
307
|
+
#define GR_GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT 0x8E8E
|
308
|
+
#define GR_GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT 0x8E8F
|
309
|
+
|
310
|
+
#define GR_GL_COMPRESSED_RGBA_ASTC_4x4 0x93B0
|
311
|
+
#define GR_GL_COMPRESSED_RGBA_ASTC_5x4 0x93B1
|
312
|
+
#define GR_GL_COMPRESSED_RGBA_ASTC_5x5 0x93B2
|
313
|
+
#define GR_GL_COMPRESSED_RGBA_ASTC_6x5 0x93B3
|
314
|
+
#define GR_GL_COMPRESSED_RGBA_ASTC_6x6 0x93B4
|
315
|
+
#define GR_GL_COMPRESSED_RGBA_ASTC_8x5 0x93B5
|
316
|
+
#define GR_GL_COMPRESSED_RGBA_ASTC_8x6 0x93B6
|
317
|
+
#define GR_GL_COMPRESSED_RGBA_ASTC_8x8 0x93B7
|
318
|
+
#define GR_GL_COMPRESSED_RGBA_ASTC_10x5 0x93B8
|
319
|
+
#define GR_GL_COMPRESSED_RGBA_ASTC_10x6 0x93B9
|
320
|
+
#define GR_GL_COMPRESSED_RGBA_ASTC_10x8 0x93BA
|
321
|
+
#define GR_GL_COMPRESSED_RGBA_ASTC_10x10 0x93BB
|
322
|
+
#define GR_GL_COMPRESSED_RGBA_ASTC_12x10 0x93BC
|
323
|
+
#define GR_GL_COMPRESSED_RGBA_ASTC_12x12 0x93BD
|
324
|
+
|
325
|
+
#define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4 0x93D0
|
326
|
+
#define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4 0x93D1
|
327
|
+
#define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5 0x93D2
|
328
|
+
#define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5 0x93D3
|
329
|
+
#define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6 0x93D4
|
330
|
+
#define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5 0x93D5
|
331
|
+
#define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6 0x93D6
|
332
|
+
#define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8 0x93D7
|
333
|
+
#define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5 0x93D8
|
334
|
+
#define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6 0x93D9
|
335
|
+
#define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8 0x93DA
|
336
|
+
#define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10 0x93DB
|
337
|
+
#define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10 0x93DC
|
338
|
+
#define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12 0x93DD
|
339
|
+
|
340
|
+
/* HintMode */
|
341
|
+
#define GR_GL_DONT_CARE 0x1100
|
342
|
+
#define GR_GL_FASTEST 0x1101
|
343
|
+
#define GR_GL_NICEST 0x1102
|
344
|
+
|
345
|
+
/* HintTarget */
|
346
|
+
#define GR_GL_GENERATE_MIPMAP_HINT 0x8192
|
347
|
+
|
348
|
+
/* DataType */
|
349
|
+
#define GR_GL_BYTE 0x1400
|
350
|
+
#define GR_GL_UNSIGNED_BYTE 0x1401
|
351
|
+
#define GR_GL_SHORT 0x1402
|
352
|
+
#define GR_GL_UNSIGNED_SHORT 0x1403
|
353
|
+
#define GR_GL_INT 0x1404
|
354
|
+
#define GR_GL_UNSIGNED_INT 0x1405
|
355
|
+
#define GR_GL_FLOAT 0x1406
|
356
|
+
#define GR_GL_HALF_FLOAT 0x140B
|
357
|
+
#define GR_GL_FIXED 0x140C
|
358
|
+
#define GR_GL_HALF_FLOAT_OES 0x8D61
|
359
|
+
|
360
|
+
/* Lighting */
|
361
|
+
#define GR_GL_LIGHTING 0x0B50
|
362
|
+
#define GR_GL_LIGHT0 0x4000
|
363
|
+
#define GR_GL_LIGHT1 0x4001
|
364
|
+
#define GR_GL_LIGHT2 0x4002
|
365
|
+
#define GR_GL_LIGHT3 0x4003
|
366
|
+
#define GR_GL_LIGHT4 0x4004
|
367
|
+
#define GR_GL_LIGHT5 0x4005
|
368
|
+
#define GR_GL_LIGHT6 0x4006
|
369
|
+
#define GR_GL_LIGHT7 0x4007
|
370
|
+
#define GR_GL_SPOT_EXPONENT 0x1205
|
371
|
+
#define GR_GL_SPOT_CUTOFF 0x1206
|
372
|
+
#define GR_GL_CONSTANT_ATTENUATION 0x1207
|
373
|
+
#define GR_GL_LINEAR_ATTENUATION 0x1208
|
374
|
+
#define GR_GL_QUADRATIC_ATTENUATION 0x1209
|
375
|
+
#define GR_GL_AMBIENT 0x1200
|
376
|
+
#define GR_GL_DIFFUSE 0x1201
|
377
|
+
#define GR_GL_SPECULAR 0x1202
|
378
|
+
#define GR_GL_SHININESS 0x1601
|
379
|
+
#define GR_GL_EMISSION 0x1600
|
380
|
+
#define GR_GL_POSITION 0x1203
|
381
|
+
#define GR_GL_SPOT_DIRECTION 0x1204
|
382
|
+
#define GR_GL_AMBIENT_AND_DIFFUSE 0x1602
|
383
|
+
#define GR_GL_COLOR_INDEXES 0x1603
|
384
|
+
#define GR_GL_LIGHT_MODEL_TWO_SIDE 0x0B52
|
385
|
+
#define GR_GL_LIGHT_MODEL_LOCAL_VIEWER 0x0B51
|
386
|
+
#define GR_GL_LIGHT_MODEL_AMBIENT 0x0B53
|
387
|
+
#define GR_GL_FRONT_AND_BACK 0x0408
|
388
|
+
#define GR_GL_SHADE_MODEL 0x0B54
|
389
|
+
#define GR_GL_FLAT 0x1D00
|
390
|
+
#define GR_GL_SMOOTH 0x1D01
|
391
|
+
#define GR_GL_COLOR_MATERIAL 0x0B57
|
392
|
+
#define GR_GL_COLOR_MATERIAL_FACE 0x0B55
|
393
|
+
#define GR_GL_COLOR_MATERIAL_PARAMETER 0x0B56
|
394
|
+
#define GR_GL_NORMALIZE 0x0BA1
|
395
|
+
|
396
|
+
/* Matrix Mode */
|
397
|
+
#define GR_GL_MATRIX_MODE 0x0BA0
|
398
|
+
#define GR_GL_MODELVIEW 0x1700
|
399
|
+
#define GR_GL_PROJECTION 0x1701
|
400
|
+
#define GR_GL_TEXTURE 0x1702
|
401
|
+
|
402
|
+
/* multisample */
|
403
|
+
#define GR_GL_MULTISAMPLE 0x809D
|
404
|
+
#define GR_GL_SAMPLE_POSITION 0x8E50
|
405
|
+
|
406
|
+
/* Points */
|
407
|
+
#define GR_GL_POINT_SMOOTH 0x0B10
|
408
|
+
#define GR_GL_POINT_SIZE 0x0B11
|
409
|
+
#define GR_GL_POINT_SIZE_GRANULARITY 0x0B13
|
410
|
+
#define GR_GL_POINT_SIZE_RANGE 0x0B12
|
411
|
+
|
412
|
+
/* Lines */
|
413
|
+
#define GR_GL_LINE_SMOOTH 0x0B20
|
414
|
+
#define GR_GL_LINE_STIPPLE 0x0B24
|
415
|
+
#define GR_GL_LINE_STIPPLE_PATTERN 0x0B25
|
416
|
+
#define GR_GL_LINE_STIPPLE_REPEAT 0x0B26
|
417
|
+
#define GR_GL_LINE_WIDTH 0x0B21
|
418
|
+
#define GR_GL_LINE_WIDTH_GRANULARITY 0x0B23
|
419
|
+
#define GR_GL_LINE_WIDTH_RANGE 0x0B22
|
420
|
+
|
421
|
+
/* PolygonMode */
|
422
|
+
#define GR_GL_POINT 0x1B00
|
423
|
+
#define GR_GL_LINE 0x1B01
|
424
|
+
#define GR_GL_FILL 0x1B02
|
425
|
+
|
426
|
+
/* Unsized formats */
|
427
|
+
#define GR_GL_STENCIL_INDEX 0x1901
|
428
|
+
#define GR_GL_DEPTH_COMPONENT 0x1902
|
429
|
+
#define GR_GL_DEPTH_STENCIL 0x84F9
|
430
|
+
#define GR_GL_RED 0x1903
|
431
|
+
#define GR_GL_RED_INTEGER 0x8D94
|
432
|
+
#define GR_GL_GREEN 0x1904
|
433
|
+
#define GR_GL_BLUE 0x1905
|
434
|
+
#define GR_GL_ALPHA 0x1906
|
435
|
+
#define GR_GL_LUMINANCE 0x1909
|
436
|
+
#define GR_GL_LUMINANCE_ALPHA 0x190A
|
437
|
+
#define GR_GL_RG_INTEGER 0x8228
|
438
|
+
#define GR_GL_RGB 0x1907
|
439
|
+
#define GR_GL_RGB_INTEGER 0x8D98
|
440
|
+
#define GR_GL_SRGB 0x8C40
|
441
|
+
#define GR_GL_RGBA 0x1908
|
442
|
+
#define GR_GL_RG 0x8227
|
443
|
+
#define GR_GL_SRGB_ALPHA 0x8C42
|
444
|
+
#define GR_GL_RGBA_INTEGER 0x8D99
|
445
|
+
#define GR_GL_BGRA 0x80E1
|
446
|
+
|
447
|
+
/* Stencil index sized formats */
|
448
|
+
#define GR_GL_STENCIL_INDEX4 0x8D47
|
449
|
+
#define GR_GL_STENCIL_INDEX8 0x8D48
|
450
|
+
#define GR_GL_STENCIL_INDEX16 0x8D49
|
451
|
+
|
452
|
+
/* Depth component sized formats */
|
453
|
+
#define GR_GL_DEPTH_COMPONENT16 0x81A5
|
454
|
+
|
455
|
+
/* Depth stencil sized formats */
|
456
|
+
#define GR_GL_DEPTH24_STENCIL8 0x88F0
|
457
|
+
|
458
|
+
/* Red sized formats */
|
459
|
+
#define GR_GL_R8 0x8229
|
460
|
+
#define GR_GL_R16 0x822A
|
461
|
+
#define GR_GL_R16F 0x822D
|
462
|
+
#define GR_GL_R32F 0x822E
|
463
|
+
|
464
|
+
/* Red integer sized formats */
|
465
|
+
#define GR_GL_R8I 0x8231
|
466
|
+
#define GR_GL_R8UI 0x8232
|
467
|
+
#define GR_GL_R16I 0x8233
|
468
|
+
#define GR_GL_R16UI 0x8234
|
469
|
+
#define GR_GL_R32I 0x8235
|
470
|
+
#define GR_GL_R32UI 0x8236
|
471
|
+
|
472
|
+
/* Luminance sized formats */
|
473
|
+
#define GR_GL_LUMINANCE8 0x8040
|
474
|
+
#define GR_GL_LUMINANCE8_ALPHA8 0x8045
|
475
|
+
#define GR_GL_LUMINANCE16F 0x881E
|
476
|
+
|
477
|
+
/* Alpha sized formats */
|
478
|
+
#define GR_GL_ALPHA8 0x803C
|
479
|
+
#define GR_GL_ALPHA16 0x803E
|
480
|
+
#define GR_GL_ALPHA16F 0x881C
|
481
|
+
#define GR_GL_ALPHA32F 0x8816
|
482
|
+
|
483
|
+
/* Alpha integer sized formats */
|
484
|
+
#define GR_GL_ALPHA8I 0x8D90
|
485
|
+
#define GR_GL_ALPHA8UI 0x8D7E
|
486
|
+
#define GR_GL_ALPHA16I 0x8D8A
|
487
|
+
#define GR_GL_ALPHA16UI 0x8D78
|
488
|
+
#define GR_GL_ALPHA32I 0x8D84
|
489
|
+
#define GR_GL_ALPHA32UI 0x8D72
|
490
|
+
|
491
|
+
/* RG sized formats */
|
492
|
+
#define GR_GL_RG8 0x822B
|
493
|
+
#define GR_GL_RG16 0x822C
|
494
|
+
#define GR_GL_R16F 0x822D
|
495
|
+
#define GR_GL_R32F 0x822E
|
496
|
+
#define GR_GL_RG16F 0x822F
|
497
|
+
|
498
|
+
/* RG sized integer formats */
|
499
|
+
#define GR_GL_RG8I 0x8237
|
500
|
+
#define GR_GL_RG8UI 0x8238
|
501
|
+
#define GR_GL_RG16I 0x8239
|
502
|
+
#define GR_GL_RG16UI 0x823A
|
503
|
+
#define GR_GL_RG32I 0x823B
|
504
|
+
#define GR_GL_RG32UI 0x823C
|
505
|
+
|
506
|
+
/* RGB sized formats */
|
507
|
+
#define GR_GL_RGB5 0x8050
|
508
|
+
#define GR_GL_RGB565 0x8D62
|
509
|
+
#define GR_GL_RGB8 0x8051
|
510
|
+
#define GR_GL_SRGB8 0x8C41
|
511
|
+
#define GR_GL_RGBX8 0x96BA
|
512
|
+
|
513
|
+
/* RGB integer sized formats */
|
514
|
+
#define GR_GL_RGB8I 0x8D8F
|
515
|
+
#define GR_GL_RGB8UI 0x8D7D
|
516
|
+
#define GR_GL_RGB16I 0x8D89
|
517
|
+
#define GR_GL_RGB16UI 0x8D77
|
518
|
+
#define GR_GL_RGB32I 0x8D83
|
519
|
+
#define GR_GL_RGB32UI 0x8D71
|
520
|
+
|
521
|
+
/* RGBA sized formats */
|
522
|
+
#define GR_GL_RGBA4 0x8056
|
523
|
+
#define GR_GL_RGB5_A1 0x8057
|
524
|
+
#define GR_GL_RGBA8 0x8058
|
525
|
+
#define GR_GL_RGB10_A2 0x8059
|
526
|
+
#define GR_GL_SRGB8_ALPHA8 0x8C43
|
527
|
+
#define GR_GL_RGBA16F 0x881A
|
528
|
+
#define GR_GL_RGBA32F 0x8814
|
529
|
+
#define GR_GL_RG32F 0x8230
|
530
|
+
#define GR_GL_RGBA16 0x805B
|
531
|
+
|
532
|
+
/* RGBA integer sized formats */
|
533
|
+
#define GR_GL_RGBA8I 0x8D8E
|
534
|
+
#define GR_GL_RGBA8UI 0x8D7C
|
535
|
+
#define GR_GL_RGBA16I 0x8D88
|
536
|
+
#define GR_GL_RGBA16UI 0x8D76
|
537
|
+
#define GR_GL_RGBA32I 0x8D82
|
538
|
+
#define GR_GL_RGBA32UI 0x8D70
|
539
|
+
|
540
|
+
/* BGRA sized formats */
|
541
|
+
#define GR_GL_BGRA8 0x93A1
|
542
|
+
|
543
|
+
/* PixelType */
|
544
|
+
/* GL_UNSIGNED_BYTE */
|
545
|
+
#define GR_GL_UNSIGNED_SHORT_4_4_4_4 0x8033
|
546
|
+
#define GR_GL_UNSIGNED_SHORT_5_5_5_1 0x8034
|
547
|
+
#define GR_GL_UNSIGNED_SHORT_5_6_5 0x8363
|
548
|
+
#define GR_GL_UNSIGNED_INT_2_10_10_10_REV 0x8368
|
549
|
+
|
550
|
+
/* Shaders */
|
551
|
+
#define GR_GL_FRAGMENT_SHADER 0x8B30
|
552
|
+
#define GR_GL_VERTEX_SHADER 0x8B31
|
553
|
+
#define GR_GL_TESS_CONTROL_SHADER 0x8E88
|
554
|
+
#define GR_GL_TESS_EVALUATION_SHADER 0x8E87
|
555
|
+
#define GR_GL_MAX_VERTEX_ATTRIBS 0x8869
|
556
|
+
#define GR_GL_MAX_VERTEX_UNIFORM_VECTORS 0x8DFB
|
557
|
+
#define GR_GL_MAX_VARYING_VECTORS 0x8DFC
|
558
|
+
#define GR_GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D
|
559
|
+
#define GR_GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C
|
560
|
+
#define GR_GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS 0x8C29
|
561
|
+
#define GR_GL_MAX_TEXTURE_IMAGE_UNITS 0x8872
|
562
|
+
#define GR_GL_MAX_FRAGMENT_UNIFORM_VECTORS 0x8DFD
|
563
|
+
#define GR_GL_SHADER_TYPE 0x8B4F
|
564
|
+
#define GR_GL_DELETE_STATUS 0x8B80
|
565
|
+
#define GR_GL_LINK_STATUS 0x8B82
|
566
|
+
#define GR_GL_VALIDATE_STATUS 0x8B83
|
567
|
+
#define GR_GL_ATTACHED_SHADERS 0x8B85
|
568
|
+
#define GR_GL_ACTIVE_UNIFORMS 0x8B86
|
569
|
+
#define GR_GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87
|
570
|
+
#define GR_GL_ACTIVE_ATTRIBUTES 0x8B89
|
571
|
+
#define GR_GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A
|
572
|
+
#define GR_GL_SHADING_LANGUAGE_VERSION 0x8B8C
|
573
|
+
#define GR_GL_CURRENT_PROGRAM 0x8B8D
|
574
|
+
#define GR_GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49
|
575
|
+
#define GR_GL_MAX_VERTEX_UNIFORM_COMPONENTS 0x8B4A
|
576
|
+
#define GR_GL_MAX_SHADER_PIXEL_LOCAL_STORAGE_FAST_SIZE 0x8F63
|
577
|
+
#define GR_GL_SHADER_BINARY_FORMATS 0x8DF8
|
578
|
+
|
579
|
+
/* StencilFunction */
|
580
|
+
#define GR_GL_NEVER 0x0200
|
581
|
+
#define GR_GL_LESS 0x0201
|
582
|
+
#define GR_GL_EQUAL 0x0202
|
583
|
+
#define GR_GL_LEQUAL 0x0203
|
584
|
+
#define GR_GL_GREATER 0x0204
|
585
|
+
#define GR_GL_NOTEQUAL 0x0205
|
586
|
+
#define GR_GL_GEQUAL 0x0206
|
587
|
+
#define GR_GL_ALWAYS 0x0207
|
588
|
+
|
589
|
+
/* StencilOp */
|
590
|
+
/* GL_ZERO */
|
591
|
+
#define GR_GL_KEEP 0x1E00
|
592
|
+
#define GR_GL_REPLACE 0x1E01
|
593
|
+
#define GR_GL_INCR 0x1E02
|
594
|
+
#define GR_GL_DECR 0x1E03
|
595
|
+
#define GR_GL_INVERT 0x150A
|
596
|
+
#define GR_GL_INCR_WRAP 0x8507
|
597
|
+
#define GR_GL_DECR_WRAP 0x8508
|
598
|
+
|
599
|
+
/* StringName */
|
600
|
+
#define GR_GL_VENDOR 0x1F00
|
601
|
+
#define GR_GL_RENDERER 0x1F01
|
602
|
+
#define GR_GL_VERSION 0x1F02
|
603
|
+
#define GR_GL_EXTENSIONS 0x1F03
|
604
|
+
|
605
|
+
/* StringCounts */
|
606
|
+
#define GR_GL_NUM_EXTENSIONS 0x821D
|
607
|
+
|
608
|
+
/* Pixel Mode / Transfer */
|
609
|
+
#define GR_GL_UNPACK_ROW_LENGTH 0x0CF2
|
610
|
+
#define GR_GL_PACK_ROW_LENGTH 0x0D02
|
611
|
+
|
612
|
+
|
613
|
+
/* TextureMagFilter */
|
614
|
+
#define GR_GL_NEAREST 0x2600
|
615
|
+
#define GR_GL_LINEAR 0x2601
|
616
|
+
|
617
|
+
/* TextureMinFilter */
|
618
|
+
/* GL_NEAREST */
|
619
|
+
/* GL_LINEAR */
|
620
|
+
#define GR_GL_NEAREST_MIPMAP_NEAREST 0x2700
|
621
|
+
#define GR_GL_LINEAR_MIPMAP_NEAREST 0x2701
|
622
|
+
#define GR_GL_NEAREST_MIPMAP_LINEAR 0x2702
|
623
|
+
#define GR_GL_LINEAR_MIPMAP_LINEAR 0x2703
|
624
|
+
|
625
|
+
/* TextureUsage */
|
626
|
+
#define GR_GL_FRAMEBUFFER_ATTACHMENT 0x93A3
|
627
|
+
|
628
|
+
/* TextureParameterName */
|
629
|
+
#define GR_GL_TEXTURE_MAG_FILTER 0x2800
|
630
|
+
#define GR_GL_TEXTURE_MIN_FILTER 0x2801
|
631
|
+
#define GR_GL_TEXTURE_WRAP_S 0x2802
|
632
|
+
#define GR_GL_TEXTURE_WRAP_T 0x2803
|
633
|
+
#define GR_GL_TEXTURE_USAGE 0x93A2
|
634
|
+
#define GR_GL_TEXTURE_MAX_ANISOTROPY 0x84FE
|
635
|
+
#define GR_GL_MAX_TEXTURE_MAX_ANISOTROPY 0x84FF
|
636
|
+
|
637
|
+
/* TextureTarget */
|
638
|
+
/* GL_TEXTURE_2D */
|
639
|
+
#define GR_GL_TEXTURE 0x1702
|
640
|
+
#define GR_GL_TEXTURE_CUBE_MAP 0x8513
|
641
|
+
#define GR_GL_TEXTURE_BINDING_CUBE_MAP 0x8514
|
642
|
+
#define GR_GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515
|
643
|
+
#define GR_GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x8516
|
644
|
+
#define GR_GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x8517
|
645
|
+
#define GR_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x8518
|
646
|
+
#define GR_GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519
|
647
|
+
#define GR_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A
|
648
|
+
#define GR_GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C
|
649
|
+
|
650
|
+
/* TextureUnit */
|
651
|
+
#define GR_GL_TEXTURE0 0x84C0
|
652
|
+
#define GR_GL_TEXTURE1 0x84C1
|
653
|
+
#define GR_GL_TEXTURE2 0x84C2
|
654
|
+
#define GR_GL_TEXTURE3 0x84C3
|
655
|
+
#define GR_GL_TEXTURE4 0x84C4
|
656
|
+
#define GR_GL_TEXTURE5 0x84C5
|
657
|
+
#define GR_GL_TEXTURE6 0x84C6
|
658
|
+
#define GR_GL_TEXTURE7 0x84C7
|
659
|
+
#define GR_GL_TEXTURE8 0x84C8
|
660
|
+
#define GR_GL_TEXTURE9 0x84C9
|
661
|
+
#define GR_GL_TEXTURE10 0x84CA
|
662
|
+
#define GR_GL_TEXTURE11 0x84CB
|
663
|
+
#define GR_GL_TEXTURE12 0x84CC
|
664
|
+
#define GR_GL_TEXTURE13 0x84CD
|
665
|
+
#define GR_GL_TEXTURE14 0x84CE
|
666
|
+
#define GR_GL_TEXTURE15 0x84CF
|
667
|
+
#define GR_GL_TEXTURE16 0x84D0
|
668
|
+
#define GR_GL_TEXTURE17 0x84D1
|
669
|
+
#define GR_GL_TEXTURE18 0x84D2
|
670
|
+
#define GR_GL_TEXTURE19 0x84D3
|
671
|
+
#define GR_GL_TEXTURE20 0x84D4
|
672
|
+
#define GR_GL_TEXTURE21 0x84D5
|
673
|
+
#define GR_GL_TEXTURE22 0x84D6
|
674
|
+
#define GR_GL_TEXTURE23 0x84D7
|
675
|
+
#define GR_GL_TEXTURE24 0x84D8
|
676
|
+
#define GR_GL_TEXTURE25 0x84D9
|
677
|
+
#define GR_GL_TEXTURE26 0x84DA
|
678
|
+
#define GR_GL_TEXTURE27 0x84DB
|
679
|
+
#define GR_GL_TEXTURE28 0x84DC
|
680
|
+
#define GR_GL_TEXTURE29 0x84DD
|
681
|
+
#define GR_GL_TEXTURE30 0x84DE
|
682
|
+
#define GR_GL_TEXTURE31 0x84DF
|
683
|
+
#define GR_GL_ACTIVE_TEXTURE 0x84E0
|
684
|
+
#define GR_GL_MAX_TEXTURE_UNITS 0x84E2
|
685
|
+
#define GR_GL_MAX_TEXTURE_COORDS 0x8871
|
686
|
+
|
687
|
+
/* TextureWrapMode */
|
688
|
+
#define GR_GL_REPEAT 0x2901
|
689
|
+
#define GR_GL_CLAMP_TO_EDGE 0x812F
|
690
|
+
#define GR_GL_MIRRORED_REPEAT 0x8370
|
691
|
+
#define GR_GL_CLAMP_TO_BORDER 0x812D
|
692
|
+
|
693
|
+
/* Texture Swizzle */
|
694
|
+
#define GR_GL_TEXTURE_SWIZZLE_R 0x8E42
|
695
|
+
#define GR_GL_TEXTURE_SWIZZLE_G 0x8E43
|
696
|
+
#define GR_GL_TEXTURE_SWIZZLE_B 0x8E44
|
697
|
+
#define GR_GL_TEXTURE_SWIZZLE_A 0x8E45
|
698
|
+
#define GR_GL_TEXTURE_SWIZZLE_RGBA 0x8E46
|
699
|
+
|
700
|
+
/* Texture mapping */
|
701
|
+
#define GR_GL_TEXTURE_ENV 0x2300
|
702
|
+
#define GR_GL_TEXTURE_ENV_MODE 0x2200
|
703
|
+
#define GR_GL_TEXTURE_1D 0x0DE0
|
704
|
+
/* GL_TEXTURE_2D */
|
705
|
+
/* GL_TEXTURE_WRAP_S */
|
706
|
+
/* GL_TEXTURE_WRAP_T */
|
707
|
+
/* GL_TEXTURE_MAG_FILTER */
|
708
|
+
/* GL_TEXTURE_MIN_FILTER */
|
709
|
+
#define GR_GL_TEXTURE_ENV_COLOR 0x2201
|
710
|
+
#define GR_GL_TEXTURE_GEN_S 0x0C60
|
711
|
+
#define GR_GL_TEXTURE_GEN_T 0x0C61
|
712
|
+
#define GR_GL_TEXTURE_GEN_R 0x0C62
|
713
|
+
#define GR_GL_TEXTURE_GEN_Q 0x0C63
|
714
|
+
#define GR_GL_TEXTURE_GEN_MODE 0x2500
|
715
|
+
#define GR_GL_TEXTURE_BORDER_COLOR 0x1004
|
716
|
+
#define GR_GL_TEXTURE_WIDTH 0x1000
|
717
|
+
#define GR_GL_TEXTURE_HEIGHT 0x1001
|
718
|
+
#define GR_GL_TEXTURE_BORDER 0x1005
|
719
|
+
#define GR_GL_TEXTURE_COMPONENTS 0x1003
|
720
|
+
#define GR_GL_TEXTURE_RED_SIZE 0x805C
|
721
|
+
#define GR_GL_TEXTURE_GREEN_SIZE 0x805D
|
722
|
+
#define GR_GL_TEXTURE_BLUE_SIZE 0x805E
|
723
|
+
#define GR_GL_TEXTURE_ALPHA_SIZE 0x805F
|
724
|
+
#define GR_GL_TEXTURE_LUMINANCE_SIZE 0x8060
|
725
|
+
#define GR_GL_TEXTURE_INTENSITY_SIZE 0x8061
|
726
|
+
#define GR_GL_TEXTURE_INTERNAL_FORMAT 0x1003
|
727
|
+
/* GL_NEAREST_MIPMAP_NEAREST */
|
728
|
+
/* GL_NEAREST_MIPMAP_LINEAR */
|
729
|
+
/* GL_LINEAR_MIPMAP_NEAREST */
|
730
|
+
/* GL_LINEAR_MIPMAP_LINEAR */
|
731
|
+
#define GR_GL_OBJECT_LINEAR 0x2401
|
732
|
+
#define GR_GL_OBJECT_PLANE 0x2501
|
733
|
+
#define GR_GL_EYE_LINEAR 0x2400
|
734
|
+
#define GR_GL_EYE_PLANE 0x2502
|
735
|
+
#define GR_GL_SPHERE_MAP 0x2402
|
736
|
+
#define GR_GL_DECAL 0x2101
|
737
|
+
#define GR_GL_MODULATE 0x2100
|
738
|
+
/* GL_NEAREST */
|
739
|
+
/* GL_REPEAT */
|
740
|
+
#define GR_GL_CLAMP 0x2900
|
741
|
+
#define GR_GL_S 0x2000
|
742
|
+
#define GR_GL_T 0x2001
|
743
|
+
#define GR_GL_R 0x2002
|
744
|
+
#define GR_GL_Q 0x2003
|
745
|
+
#define GR_GL_TEXTURE_GEN_R 0x0C62
|
746
|
+
#define GR_GL_TEXTURE_GEN_Q 0x0C63
|
747
|
+
|
748
|
+
/* texture_env_combine */
|
749
|
+
#define GR_GL_COMBINE 0x8570
|
750
|
+
#define GR_GL_COMBINE_RGB 0x8571
|
751
|
+
#define GR_GL_COMBINE_ALPHA 0x8572
|
752
|
+
#define GR_GL_SOURCE0_RGB 0x8580
|
753
|
+
#define GR_GL_SOURCE1_RGB 0x8581
|
754
|
+
#define GR_GL_SOURCE2_RGB 0x8582
|
755
|
+
#define GR_GL_SOURCE0_ALPHA 0x8588
|
756
|
+
#define GR_GL_SOURCE1_ALPHA 0x8589
|
757
|
+
#define GR_GL_SOURCE2_ALPHA 0x858A
|
758
|
+
#define GR_GL_OPERAND0_RGB 0x8590
|
759
|
+
#define GR_GL_OPERAND1_RGB 0x8591
|
760
|
+
#define GR_GL_OPERAND2_RGB 0x8592
|
761
|
+
#define GR_GL_OPERAND0_ALPHA 0x8598
|
762
|
+
#define GR_GL_OPERAND1_ALPHA 0x8599
|
763
|
+
#define GR_GL_OPERAND2_ALPHA 0x859A
|
764
|
+
#define GR_GL_RGB_SCALE 0x8573
|
765
|
+
#define GR_GL_ADD_SIGNED 0x8574
|
766
|
+
#define GR_GL_INTERPOLATE 0x8575
|
767
|
+
#define GR_GL_SUBTRACT 0x84E7
|
768
|
+
#define GR_GL_CONSTANT 0x8576
|
769
|
+
#define GR_GL_PRIMARY_COLOR 0x8577
|
770
|
+
#define GR_GL_PREVIOUS 0x8578
|
771
|
+
#define GR_GL_SRC0_RGB 0x8580
|
772
|
+
#define GR_GL_SRC1_RGB 0x8581
|
773
|
+
#define GR_GL_SRC2_RGB 0x8582
|
774
|
+
#define GR_GL_SRC0_ALPHA 0x8588
|
775
|
+
#define GR_GL_SRC1_ALPHA 0x8589
|
776
|
+
#define GR_GL_SRC2_ALPHA 0x858A
|
777
|
+
|
778
|
+
/* Uniform Types */
|
779
|
+
#define GR_GL_FLOAT_VEC2 0x8B50
|
780
|
+
#define GR_GL_FLOAT_VEC3 0x8B51
|
781
|
+
#define GR_GL_FLOAT_VEC4 0x8B52
|
782
|
+
#define GR_GL_INT_VEC2 0x8B53
|
783
|
+
#define GR_GL_INT_VEC3 0x8B54
|
784
|
+
#define GR_GL_INT_VEC4 0x8B55
|
785
|
+
#define GR_GL_BOOL 0x8B56
|
786
|
+
#define GR_GL_BOOL_VEC2 0x8B57
|
787
|
+
#define GR_GL_BOOL_VEC3 0x8B58
|
788
|
+
#define GR_GL_BOOL_VEC4 0x8B59
|
789
|
+
#define GR_GL_FLOAT_MAT2 0x8B5A
|
790
|
+
#define GR_GL_FLOAT_MAT3 0x8B5B
|
791
|
+
#define GR_GL_FLOAT_MAT4 0x8B5C
|
792
|
+
#define GR_GL_SAMPLER_2D 0x8B5E
|
793
|
+
#define GR_GL_SAMPLER_CUBE 0x8B60
|
794
|
+
|
795
|
+
/* Vertex Arrays */
|
796
|
+
#define GR_GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622
|
797
|
+
#define GR_GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623
|
798
|
+
#define GR_GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624
|
799
|
+
#define GR_GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625
|
800
|
+
#define GR_GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A
|
801
|
+
#define GR_GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645
|
802
|
+
#define GR_GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F
|
803
|
+
#define GR_GL_VERTEX_ARRAY 0x8074
|
804
|
+
#define GR_GL_NORMAL_ARRAY 0x8075
|
805
|
+
#define GR_GL_COLOR_ARRAY 0x8076
|
806
|
+
#define GR_GL_SECONDARY_COLOR_ARRAY 0x845E
|
807
|
+
#define GR_GL_INDEX_ARRAY 0x8077
|
808
|
+
#define GR_GL_TEXTURE_COORD_ARRAY 0x8078
|
809
|
+
#define GR_GL_EDGE_FLAG_ARRAY 0x8079
|
810
|
+
#define GR_GL_VERTEX_ARRAY_SIZE 0x807A
|
811
|
+
#define GR_GL_VERTEX_ARRAY_TYPE 0x807B
|
812
|
+
#define GR_GL_VERTEX_ARRAY_STRIDE 0x807C
|
813
|
+
#define GR_GL_NORMAL_ARRAY_TYPE 0x807E
|
814
|
+
#define GR_GL_NORMAL_ARRAY_STRIDE 0x807F
|
815
|
+
#define GR_GL_COLOR_ARRAY_SIZE 0x8081
|
816
|
+
#define GR_GL_COLOR_ARRAY_TYPE 0x8082
|
817
|
+
#define GR_GL_COLOR_ARRAY_STRIDE 0x8083
|
818
|
+
#define GR_GL_INDEX_ARRAY_TYPE 0x8085
|
819
|
+
#define GR_GL_INDEX_ARRAY_STRIDE 0x8086
|
820
|
+
#define GR_GL_TEXTURE_COORD_ARRAY_SIZE 0x8088
|
821
|
+
#define GR_GL_TEXTURE_COORD_ARRAY_TYPE 0x8089
|
822
|
+
#define GR_GL_TEXTURE_COORD_ARRAY_STRIDE 0x808A
|
823
|
+
#define GR_GL_EDGE_FLAG_ARRAY_STRIDE 0x808C
|
824
|
+
#define GR_GL_VERTEX_ARRAY_POINTER 0x808E
|
825
|
+
#define GR_GL_NORMAL_ARRAY_POINTER 0x808F
|
826
|
+
#define GR_GL_COLOR_ARRAY_POINTER 0x8090
|
827
|
+
#define GR_GL_INDEX_ARRAY_POINTER 0x8091
|
828
|
+
#define GR_GL_TEXTURE_COORD_ARRAY_POINTER 0x8092
|
829
|
+
#define GR_GL_EDGE_FLAG_ARRAY_POINTER 0x8093
|
830
|
+
#define GR_GL_V2F 0x2A20
|
831
|
+
#define GR_GL_V3F 0x2A21
|
832
|
+
#define GR_GL_C4UB_V2F 0x2A22
|
833
|
+
#define GR_GL_C4UB_V3F 0x2A23
|
834
|
+
#define GR_GL_C3F_V3F 0x2A24
|
835
|
+
#define GR_GL_N3F_V3F 0x2A25
|
836
|
+
#define GR_GL_C4F_N3F_V3F 0x2A26
|
837
|
+
#define GR_GL_T2F_V3F 0x2A27
|
838
|
+
#define GR_GL_T4F_V4F 0x2A28
|
839
|
+
#define GR_GL_T2F_C4UB_V3F 0x2A29
|
840
|
+
#define GR_GL_T2F_C3F_V3F 0x2A2A
|
841
|
+
#define GR_GL_T2F_N3F_V3F 0x2A2B
|
842
|
+
#define GR_GL_T2F_C4F_N3F_V3F 0x2A2C
|
843
|
+
#define GR_GL_T4F_C4F_N3F_V4F 0x2A2D
|
844
|
+
#define GR_GL_PRIMITIVE_RESTART_FIXED_INDEX 0x8D69
|
845
|
+
|
846
|
+
/* Buffer Object */
|
847
|
+
#define GR_GL_READ_ONLY 0x88B8
|
848
|
+
#define GR_GL_WRITE_ONLY 0x88B9
|
849
|
+
#define GR_GL_READ_WRITE 0x88BA
|
850
|
+
#define GR_GL_BUFFER_MAPPED 0x88BC
|
851
|
+
|
852
|
+
#define GR_GL_MAP_READ_BIT 0x0001
|
853
|
+
#define GR_GL_MAP_WRITE_BIT 0x0002
|
854
|
+
#define GR_GL_MAP_INVALIDATE_RANGE_BIT 0x0004
|
855
|
+
#define GR_GL_MAP_INVALIDATE_BUFFER_BIT 0x0008
|
856
|
+
#define GR_GL_MAP_FLUSH_EXPLICIT_BIT 0x0010
|
857
|
+
#define GR_GL_MAP_UNSYNCHRONIZED_BIT 0x0020
|
858
|
+
|
859
|
+
/* Read Format */
|
860
|
+
#define GR_GL_IMPLEMENTATION_COLOR_READ_TYPE 0x8B9A
|
861
|
+
#define GR_GL_IMPLEMENTATION_COLOR_READ_FORMAT 0x8B9B
|
862
|
+
|
863
|
+
/* Shader Source */
|
864
|
+
#define GR_GL_COMPILE_STATUS 0x8B81
|
865
|
+
#define GR_GL_INFO_LOG_LENGTH 0x8B84
|
866
|
+
#define GR_GL_SHADER_SOURCE_LENGTH 0x8B88
|
867
|
+
#define GR_GL_SHADER_COMPILER 0x8DFA
|
868
|
+
|
869
|
+
/* Shader Binary */
|
870
|
+
#define GR_GL_SHADER_BINARY_FORMATS 0x8DF8
|
871
|
+
#define GR_GL_NUM_SHADER_BINARY_FORMATS 0x8DF9
|
872
|
+
|
873
|
+
/* Program Binary */
|
874
|
+
#define GR_GL_NUM_PROGRAM_BINARY_FORMATS 0x87FE
|
875
|
+
#define GR_GL_PROGRAM_BINARY_FORMATS 0x87FF
|
876
|
+
|
877
|
+
/* Shader Precision-Specified Types */
|
878
|
+
#define GR_GL_LOW_FLOAT 0x8DF0
|
879
|
+
#define GR_GL_MEDIUM_FLOAT 0x8DF1
|
880
|
+
#define GR_GL_HIGH_FLOAT 0x8DF2
|
881
|
+
#define GR_GL_LOW_INT 0x8DF3
|
882
|
+
#define GR_GL_MEDIUM_INT 0x8DF4
|
883
|
+
#define GR_GL_HIGH_INT 0x8DF5
|
884
|
+
|
885
|
+
/* Queries */
|
886
|
+
#define GR_GL_QUERY_COUNTER_BITS 0x8864
|
887
|
+
#define GR_GL_CURRENT_QUERY 0x8865
|
888
|
+
#define GR_GL_QUERY_RESULT 0x8866
|
889
|
+
#define GR_GL_QUERY_RESULT_AVAILABLE 0x8867
|
890
|
+
#define GR_GL_SAMPLES_PASSED 0x8914
|
891
|
+
#define GR_GL_ANY_SAMPLES_PASSED 0x8C2F
|
892
|
+
#define GR_GL_TIME_ELAPSED 0x88BF
|
893
|
+
#define GR_GL_TIMESTAMP 0x8E28
|
894
|
+
#define GR_GL_PRIMITIVES_GENERATED 0x8C87
|
895
|
+
#define GR_GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN 0x8C88
|
896
|
+
|
897
|
+
|
898
|
+
/* Framebuffer Object. */
|
899
|
+
#define GR_GL_FRAMEBUFFER 0x8D40
|
900
|
+
#define GR_GL_READ_FRAMEBUFFER 0x8CA8
|
901
|
+
#define GR_GL_DRAW_FRAMEBUFFER 0x8CA9
|
902
|
+
|
903
|
+
#define GR_GL_RENDERBUFFER 0x8D41
|
904
|
+
|
905
|
+
#define GR_GL_MAX_SAMPLES 0x8D57
|
906
|
+
// GL_IMG_multisampled_render_to_texture uses a different value for GL_MAX_SAMPLES
|
907
|
+
#define GR_GL_MAX_SAMPLES_IMG 0x9135
|
908
|
+
|
909
|
+
#define GR_GL_RENDERBUFFER_WIDTH 0x8D42
|
910
|
+
#define GR_GL_RENDERBUFFER_HEIGHT 0x8D43
|
911
|
+
#define GR_GL_RENDERBUFFER_INTERNAL_FORMAT 0x8D44
|
912
|
+
#define GR_GL_RENDERBUFFER_RED_SIZE 0x8D50
|
913
|
+
#define GR_GL_RENDERBUFFER_GREEN_SIZE 0x8D51
|
914
|
+
#define GR_GL_RENDERBUFFER_BLUE_SIZE 0x8D52
|
915
|
+
#define GR_GL_RENDERBUFFER_ALPHA_SIZE 0x8D53
|
916
|
+
#define GR_GL_RENDERBUFFER_DEPTH_SIZE 0x8D54
|
917
|
+
#define GR_GL_RENDERBUFFER_STENCIL_SIZE 0x8D55
|
918
|
+
|
919
|
+
#define GR_GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE 0x8CD0
|
920
|
+
#define GR_GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8CD1
|
921
|
+
#define GR_GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8CD2
|
922
|
+
#define GR_GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3
|
923
|
+
#define GR_GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER 0x8CD4
|
924
|
+
#define GR_GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING 0x8210
|
925
|
+
#define GR_GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE 0x8211
|
926
|
+
#define GR_GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE 0x8212
|
927
|
+
#define GR_GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE 0x8213
|
928
|
+
#define GR_GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE 0x8214
|
929
|
+
#define GR_GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE 0x8215
|
930
|
+
#define GR_GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE 0x8216
|
931
|
+
#define GR_GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE 0x8217
|
932
|
+
|
933
|
+
#define GR_GL_COLOR_ATTACHMENT0 0x8CE0
|
934
|
+
#define GR_GL_DEPTH_ATTACHMENT 0x8D00
|
935
|
+
#define GR_GL_STENCIL_ATTACHMENT 0x8D20
|
936
|
+
|
937
|
+
// GL_EXT_discard_framebuffer
|
938
|
+
#define GR_GL_COLOR 0x1800
|
939
|
+
#define GR_GL_DEPTH 0x1801
|
940
|
+
#define GR_GL_STENCIL 0x1802
|
941
|
+
|
942
|
+
#define GR_GL_NONE 0
|
943
|
+
#define GR_GL_FRAMEBUFFER_DEFAULT 0x8218
|
944
|
+
|
945
|
+
#define GR_GL_FRAMEBUFFER_COMPLETE 0x8CD5
|
946
|
+
#define GR_GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6
|
947
|
+
#define GR_GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7
|
948
|
+
#define GR_GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS 0x8CD9
|
949
|
+
#define GR_GL_FRAMEBUFFER_UNSUPPORTED 0x8CDD
|
950
|
+
|
951
|
+
#define GR_GL_FRAMEBUFFER_BINDING 0x8CA6
|
952
|
+
#define GR_GL_RENDERBUFFER_BINDING 0x8CA7
|
953
|
+
#define GR_GL_MAX_RENDERBUFFER_SIZE 0x84E8
|
954
|
+
|
955
|
+
#define GR_GL_INVALID_FRAMEBUFFER_OPERATION 0x0506
|
956
|
+
|
957
|
+
/* Path Rendering */
|
958
|
+
// commands
|
959
|
+
#define GR_GL_CLOSE_PATH 0x00
|
960
|
+
#define GR_GL_MOVE_TO 0x02
|
961
|
+
#define GR_GL_LINE_TO 0x04
|
962
|
+
#define GR_GL_QUADRATIC_CURVE_TO 0x0A
|
963
|
+
#define GR_GL_CUBIC_CURVE_TO 0x0C
|
964
|
+
#define GR_GL_CONIC_CURVE_TO 0x1A
|
965
|
+
|
966
|
+
// path parameters
|
967
|
+
#define GR_GL_PATH_STROKE_WIDTH 0x9075
|
968
|
+
#define GR_GL_PATH_END_CAPS 0x9076
|
969
|
+
#define GR_GL_PATH_JOIN_STYLE 0x9079
|
970
|
+
#define GR_GL_PATH_MITER_LIMIT 0x907A
|
971
|
+
#define GR_GL_PATH_STROKE_BOUND 0x9086
|
972
|
+
|
973
|
+
// fill modes
|
974
|
+
#define GR_GL_COUNT_UP 0x9088
|
975
|
+
|
976
|
+
// cover mode
|
977
|
+
#define GR_GL_BOUNDING_BOX 0x908D
|
978
|
+
#define GR_GL_BOUNDING_BOX_OF_BOUNDING_BOXES 0x909C
|
979
|
+
|
980
|
+
// transform type
|
981
|
+
#define GR_GL_TRANSLATE_X 0x908E
|
982
|
+
#define GR_GL_TRANSLATE_Y 0x908F
|
983
|
+
#define GR_GL_TRANSLATE_2D 0x9090
|
984
|
+
#define GR_GL_TRANSPOSE_AFFINE_2D 0x9096
|
985
|
+
|
986
|
+
// cap/dash values
|
987
|
+
#define GR_GL_SQUARE 0x90A3
|
988
|
+
#define GR_GL_ROUND 0x90A4
|
989
|
+
|
990
|
+
// join values
|
991
|
+
#define GR_GL_BEVEL 0x90A6
|
992
|
+
#define GR_GL_MITER_REVERT 0x90A7
|
993
|
+
|
994
|
+
// glyph loading values
|
995
|
+
#define GR_GL_STANDARD_FONT_FORMAT 0x936C
|
996
|
+
#define GR_GL_FONT_GLYPHS_AVAILABLE 0x9368
|
997
|
+
|
998
|
+
// NV_path_rendering extension to ARB_program_interface_query:
|
999
|
+
// .. corresponds to the set of active input variables used by the fragment
|
1000
|
+
// shader stage of <program> (if a fragment stage exists).
|
1001
|
+
#define GR_GL_FRAGMENT_INPUT 0x936D
|
1002
|
+
|
1003
|
+
// NV_path_rendering extension to EXT_direct_state_access:
|
1004
|
+
// [the matrix functions] must support the PATH_PROJECTION_NV and
|
1005
|
+
// PATH_MODELVIEW_NV tokens for matrixMode.
|
1006
|
+
#define GR_GL_PATH_PROJECTION 0x1701
|
1007
|
+
#define GR_GL_PATH_MODELVIEW 0x1700
|
1008
|
+
|
1009
|
+
/* ARM specific define for MSAA support on framebuffer fetch */
|
1010
|
+
#define GR_GL_FETCH_PER_SAMPLE 0x8F65
|
1011
|
+
|
1012
|
+
/* GL_KHR_debug */
|
1013
|
+
#define GR_GL_DEBUG_OUTPUT 0x92E0
|
1014
|
+
#define GR_GL_DEBUG_OUTPUT_SYNCHRONOUS 0x8242
|
1015
|
+
#define GR_GL_CONTEXT_FLAG_DEBUG_BIT 0x00000002
|
1016
|
+
#define GR_GL_MAX_DEBUG_MESSAGE_LENGTH 0x9143
|
1017
|
+
#define GR_GL_MAX_DEBUG_LOGGED_MESSAGES 0x9144
|
1018
|
+
#define GR_GL_DEBUG_LOGGED_MESSAGES 0x9145
|
1019
|
+
#define GR_GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH 0x8243
|
1020
|
+
#define GR_GL_MAX_DEBUG_GROUP_STACK_DEPTH 0x826C
|
1021
|
+
#define GR_GL_DEBUG_GROUP_STACK_DEPTH 0x826D
|
1022
|
+
#define GR_GL_MAX_LABEL_LENGTH 0x82E8
|
1023
|
+
#define GR_GL_DEBUG_SOURCE_API 0x8246
|
1024
|
+
#define GR_GL_DEBUG_SOURCE_WINDOW_SYSTEM 0x8247
|
1025
|
+
#define GR_GL_DEBUG_SOURCE_SHADER_COMPILER 0x8248
|
1026
|
+
#define GR_GL_DEBUG_SOURCE_THIRD_PARTY 0x8249
|
1027
|
+
#define GR_GL_DEBUG_SOURCE_APPLICATION 0x824A
|
1028
|
+
#define GR_GL_DEBUG_SOURCE_OTHER 0x824B
|
1029
|
+
#define GR_GL_DEBUG_TYPE_ERROR 0x824C
|
1030
|
+
#define GR_GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR 0x824D
|
1031
|
+
#define GR_GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR 0x824E
|
1032
|
+
#define GR_GL_DEBUG_TYPE_PORTABILITY 0x824F
|
1033
|
+
#define GR_GL_DEBUG_TYPE_PERFORMANCE 0x8250
|
1034
|
+
#define GR_GL_DEBUG_TYPE_OTHER 0x8251
|
1035
|
+
#define GR_GL_DEBUG_TYPE_MARKER 0x8268
|
1036
|
+
#define GR_GL_DEBUG_TYPE_PUSH_GROUP 0x8269
|
1037
|
+
#define GR_GL_DEBUG_TYPE_POP_GROUP 0x826A
|
1038
|
+
#define GR_GL_DEBUG_SEVERITY_HIGH 0x9146
|
1039
|
+
#define GR_GL_DEBUG_SEVERITY_MEDIUM 0x9147
|
1040
|
+
#define GR_GL_DEBUG_SEVERITY_LOW 0x9148
|
1041
|
+
#define GR_GL_DEBUG_SEVERITY_NOTIFICATION 0x826B
|
1042
|
+
#define GR_GL_STACK_UNDERFLOW 0x0504
|
1043
|
+
#define GR_GL_STACK_OVERFLOW 0x0503
|
1044
|
+
#define GR_GL_BUFFER 0x82E0
|
1045
|
+
#define GR_GL_SHADER 0x82E1
|
1046
|
+
#define GR_GL_PROGRAM 0x82E2
|
1047
|
+
#define GR_GL_QUERY 0x82E3
|
1048
|
+
#define GR_GL_PROGRAM_PIPELINE 0x82E4
|
1049
|
+
#define GR_GL_SAMPLER 0x82E6
|
1050
|
+
|
1051
|
+
/* GL_OES_EGL_image_external */
|
1052
|
+
#define GR_GL_TEXTURE_EXTERNAL 0x8D65
|
1053
|
+
#define GR_GL_TEXTURE_BINDING_EXTERNAL 0x8D67
|
1054
|
+
|
1055
|
+
/* GL_ARB_texture_rectangle or GL_ANGLE_texture_rectangle */
|
1056
|
+
#define GR_GL_TEXTURE_RECTANGLE 0x84F5
|
1057
|
+
#define GR_GL_TEXTURE_BINDING_RECTANGLE 0x84F6
|
1058
|
+
|
1059
|
+
/* GL_EXT_window_rectangles */
|
1060
|
+
#define GR_GL_MAX_WINDOW_RECTANGLES 0x8f14
|
1061
|
+
#define GR_GL_INCLUSIVE 0x8f10
|
1062
|
+
#define GR_GL_EXCLUSIVE 0x8f11
|
1063
|
+
|
1064
|
+
/** GL_QCOM_tiled_rendering */
|
1065
|
+
#define GR_GL_COLOR_BUFFER_BIT0 0x00000001
|
1066
|
+
#define GR_GL_COLOR_BUFFER_BIT1 0x00000002
|
1067
|
+
#define GR_GL_COLOR_BUFFER_BIT2 0x00000004
|
1068
|
+
#define GR_GL_COLOR_BUFFER_BIT3 0x00000008
|
1069
|
+
#define GR_GL_COLOR_BUFFER_BIT4 0x00000010
|
1070
|
+
#define GR_GL_COLOR_BUFFER_BIT5 0x00000020
|
1071
|
+
#define GR_GL_COLOR_BUFFER_BIT6 0x00000040
|
1072
|
+
#define GR_GL_COLOR_BUFFER_BIT7 0x00000080
|
1073
|
+
#define GR_GL_DEPTH_BUFFER_BIT0 0x00000100
|
1074
|
+
#define GR_GL_DEPTH_BUFFER_BIT1 0x00000200
|
1075
|
+
#define GR_GL_DEPTH_BUFFER_BIT2 0x00000400
|
1076
|
+
#define GR_GL_DEPTH_BUFFER_BIT3 0x00000800
|
1077
|
+
#define GR_GL_DEPTH_BUFFER_BIT4 0x00001000
|
1078
|
+
#define GR_GL_DEPTH_BUFFER_BIT5 0x00002000
|
1079
|
+
#define GR_GL_DEPTH_BUFFER_BIT6 0x00004000
|
1080
|
+
#define GR_GL_DEPTH_BUFFER_BIT7 0x00008000
|
1081
|
+
#define GR_GL_STENCIL_BUFFER_BIT0 0x00010000
|
1082
|
+
#define GR_GL_STENCIL_BUFFER_BIT1 0x00020000
|
1083
|
+
#define GR_GL_STENCIL_BUFFER_BIT2 0x00040000
|
1084
|
+
#define GR_GL_STENCIL_BUFFER_BIT3 0x00080000
|
1085
|
+
#define GR_GL_STENCIL_BUFFER_BIT4 0x00100000
|
1086
|
+
#define GR_GL_STENCIL_BUFFER_BIT5 0x00200000
|
1087
|
+
#define GR_GL_STENCIL_BUFFER_BIT6 0x00400000
|
1088
|
+
#define GR_GL_STENCIL_BUFFER_BIT7 0x00800000
|
1089
|
+
#define GR_GL_MULTISAMPLE_BUFFER_BIT0 0x01000000
|
1090
|
+
#define GR_GL_MULTISAMPLE_BUFFER_BIT1 0x02000000
|
1091
|
+
#define GR_GL_MULTISAMPLE_BUFFER_BIT2 0x04000000
|
1092
|
+
#define GR_GL_MULTISAMPLE_BUFFER_BIT3 0x08000000
|
1093
|
+
#define GR_GL_MULTISAMPLE_BUFFER_BIT4 0x10000000
|
1094
|
+
#define GR_GL_MULTISAMPLE_BUFFER_BIT5 0x20000000
|
1095
|
+
#define GR_GL_MULTISAMPLE_BUFFER_BIT6 0x40000000
|
1096
|
+
#define GR_GL_MULTISAMPLE_BUFFER_BIT7 0x80000000
|
1097
|
+
|
1098
|
+
/* GL_ARB_sync */
|
1099
|
+
#define GR_GL_SYNC_GPU_COMMANDS_COMPLETE 0x9117
|
1100
|
+
#define GR_GL_ALREADY_SIGNALED 0x911A
|
1101
|
+
#define GR_GL_TIMEOUT_EXPIRED 0x911B
|
1102
|
+
#define GR_GL_CONDITION_SATISFIED 0x911C
|
1103
|
+
#define GR_GL_WAIT_FAILED 0x911D
|
1104
|
+
#define GR_GL_SYNC_FLUSH_COMMANDS_BIT 0x00000001
|
1105
|
+
#define GR_GL_TIMEOUT_IGNORED 0xFFFFFFFFFFFFFFFFull
|
1106
|
+
|
1107
|
+
/* GL_EXT_geometry_shader */
|
1108
|
+
#define GR_GL_LINES_ADJACENCY 0x000A
|
1109
|
+
|
1110
|
+
#define GR_GL_PATCH_VERTICES 0x8E72
|
1111
|
+
|
1112
|
+
/* GL_ARB_internalformat_query */
|
1113
|
+
#define GR_GL_NUM_SAMPLE_COUNTS 0x9380
|
1114
|
+
|
1115
|
+
/* EGL Defines */
|
1116
|
+
#define GR_EGL_NO_DISPLAY ((GrEGLDisplay)nullptr)
|
1117
|
+
#define GR_EGL_EXTENSIONS 0x3055
|
1118
|
+
#define GR_EGL_GL_TEXTURE_2D 0x30B1
|
1119
|
+
#define GR_EGL_GL_TEXTURE_LEVEL 0x30BC
|
1120
|
+
#define GR_EGL_IMAGE_PRESERVED 0x30D2
|
1121
|
+
#define GR_EGL_FALSE 0x0
|
1122
|
+
#define GR_EGL_TRUE 0x1
|
1123
|
+
#define GR_EGL_NONE 0x3038
|
1124
|
+
#define GR_EGL_NO_IMAGE ((GrEGLImage)nullptr)
|
1125
|
+
|
1126
|
+
/* Programs */
|
1127
|
+
#define GR_GL_PROGRAM_BINARY_RETRIEVABLE_HINT 0x8257
|
1128
|
+
#define GL_PROGRAM_BINARY_LENGTH 0x8741
|
1129
|
+
|
1130
|
+
/* GL_NV_conservative_raster */
|
1131
|
+
#define GR_GL_CONSERVATIVE_RASTERIZATION 0x9346
|
1132
|
+
|
1133
|
+
/* Barriers */
|
1134
|
+
#define GR_GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT 0x0001
|
1135
|
+
#define GR_GL_ELEMENT_ARRAY_BARRIER_BIT 0x0002
|
1136
|
+
#define GR_GL_UNIFORM_BARRIER_BIT 0x0004
|
1137
|
+
#define GR_GL_TEXTURE_FETCH_BARRIER_BIT 0x0008
|
1138
|
+
#define GR_GL_SHADER_IMAGE_ACCESS_BARRIER_BIT 0x0020
|
1139
|
+
#define GR_GL_COMMAND_BARRIER_BIT 0x0040
|
1140
|
+
#define GR_GL_PIXEL_BUFFER_BARRIER_BIT 0x0080
|
1141
|
+
#define GR_GL_TEXTURE_UPDATE_BARRIER_BIT 0x0100
|
1142
|
+
#define GR_GL_BUFFER_UPDATE_BARRIER_BIT 0x0200
|
1143
|
+
#define GR_GL_FRAMEBUFFER_BARRIER_BIT 0x0400
|
1144
|
+
#define GR_GL_TRANSFORM_FEEDBACK_BARRIER_BIT 0x0800
|
1145
|
+
#define GR_GL_ATOMIC_COUNTER_BARRIER_BIT 0x1000
|
1146
|
+
#define GR_GL_ALL_BARRIER_BITS 0xffffffff
|
1147
|
+
|
1148
|
+
/** GL_NV_fence_sync */
|
1149
|
+
#define GR_GL_ALL_COMPLETED 0x84F2
|
1150
|
+
|
1151
|
+
/* Tessellation */
|
1152
|
+
#define GR_GL_MAX_TESS_GEN_LEVEL_OES 0x8E7E
|
1153
|
+
|
1154
|
+
/** WEBGL_debug_renderer_info */
|
1155
|
+
#define GR_UNMASKED_VENDOR_WEBGL 0x9245
|
1156
|
+
#define GR_UNMASKED_RENDERER_WEBGL 0x9246
|
1157
|
+
|
1158
|
+
#endif
|