@gtkx/gl 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,366 @@
1
+ /**
2
+ * GENERATED FILE — do not edit.
3
+ *
4
+ * Emitted by the `@gtkx/codegen` Khronos generator from the vendored
5
+ * `registry/gl.xml` (gl 4.6 core profile). Regenerate with
6
+ * `pnpm --filter @gtkx/codegen codegen:gl`.
7
+ */
8
+
9
+ import type { Handle } from "@gtkx/native";
10
+
11
+ /** An opaque `GLsync` fence handle. */
12
+ export type GLsync = Handle;
13
+
14
+ /** An opaque native pointer handle (e.g. a `glMapBufferRange` mapping). */
15
+ export type GLpointer = Handle;
16
+
17
+ /** The C `GLenum` scalar. */
18
+ export type GLenum = number;
19
+
20
+ /** The C `GLbitfield` scalar. */
21
+ export type GLbitfield = number;
22
+
23
+ /** The C `GLuint` scalar. */
24
+ export type GLuint = number;
25
+
26
+ /** The C `GLint` scalar. */
27
+ export type GLint = number;
28
+
29
+ /** The C `GLsizei` scalar. */
30
+ export type GLsizei = number;
31
+
32
+ /** The C `GLbyte` scalar. */
33
+ export type GLbyte = number;
34
+
35
+ /** The C `GLubyte` scalar. */
36
+ export type GLubyte = number;
37
+
38
+ /** The C `GLshort` scalar. */
39
+ export type GLshort = number;
40
+
41
+ /** The C `GLushort` scalar. */
42
+ export type GLushort = number;
43
+
44
+ /** The C `GLfixed` scalar. */
45
+ export type GLfixed = number;
46
+
47
+ /** The C `GLclampx` scalar. */
48
+ export type GLclampx = number;
49
+
50
+ /** The C `GLfloat` scalar. */
51
+ export type GLfloat = number;
52
+
53
+ /** The C `GLclampf` scalar. */
54
+ export type GLclampf = number;
55
+
56
+ /** The C `GLdouble` scalar. */
57
+ export type GLdouble = number;
58
+
59
+ /** The C `GLclampd` scalar. */
60
+ export type GLclampd = number;
61
+
62
+ /** The C `GLint64` scalar. */
63
+ export type GLint64 = number;
64
+
65
+ /** The C `GLuint64` scalar. */
66
+ export type GLuint64 = number;
67
+
68
+ /** The C `GLintptr` scalar. */
69
+ export type GLintptr = number;
70
+
71
+ /** The C `GLsizeiptr` scalar. */
72
+ export type GLsizeiptr = number;
73
+
74
+ /** Registry enum group `AttributeType`; open and documentation-only, any `GLenum` value is accepted. */
75
+ export type AttributeType = GLenum;
76
+
77
+ /** Registry enum group `BindTransformFeedbackTarget`; open and documentation-only, any `GLenum` value is accepted. */
78
+ export type BindTransformFeedbackTarget = GLenum;
79
+
80
+ /** Registry enum group `BlendEquationModeEXT`; open and documentation-only, any `GLenum` value is accepted. */
81
+ export type BlendEquationModeEXT = GLenum;
82
+
83
+ /** Registry enum group `BlendingFactor`; open and documentation-only, any `GLenum` value is accepted. */
84
+ export type BlendingFactor = GLenum;
85
+
86
+ /** Registry enum group `BlitFramebufferFilter`; open and documentation-only, any `GLenum` value is accepted. */
87
+ export type BlitFramebufferFilter = GLenum;
88
+
89
+ /** Registry enum group `Buffer`; open and documentation-only, any `GLenum` value is accepted. */
90
+ export type Buffer = GLenum;
91
+
92
+ /** Registry enum group `BufferAccessARB`; open and documentation-only, any `GLenum` value is accepted. */
93
+ export type BufferAccessARB = GLenum;
94
+
95
+ /** Registry enum group `BufferPNameARB`; open and documentation-only, any `GLenum` value is accepted. */
96
+ export type BufferPNameARB = GLenum;
97
+
98
+ /** Registry enum group `BufferStorageMask`; open and documentation-only, any `GLbitfield` value is accepted. */
99
+ export type BufferStorageMask = GLbitfield;
100
+
101
+ /** Registry enum group `BufferStorageTarget`; open and documentation-only, any `GLenum` value is accepted. */
102
+ export type BufferStorageTarget = GLenum;
103
+
104
+ /** Registry enum group `BufferTargetARB`; open and documentation-only, any `GLenum` value is accepted. */
105
+ export type BufferTargetARB = GLenum;
106
+
107
+ /** Registry enum group `BufferUsageARB`; open and documentation-only, any `GLenum` value is accepted. */
108
+ export type BufferUsageARB = GLenum;
109
+
110
+ /** Registry enum group `ClampColorModeARB`; open and documentation-only, any `GLenum` value is accepted. */
111
+ export type ClampColorModeARB = GLenum;
112
+
113
+ /** Registry enum group `ClampColorTargetARB`; open and documentation-only, any `GLenum` value is accepted. */
114
+ export type ClampColorTargetARB = GLenum;
115
+
116
+ /** Registry enum group `ClearBufferMask`; open and documentation-only, any `GLbitfield` value is accepted. */
117
+ export type ClearBufferMask = GLbitfield;
118
+
119
+ /** Registry enum group `ClipControlDepth`; open and documentation-only, any `GLenum` value is accepted. */
120
+ export type ClipControlDepth = GLenum;
121
+
122
+ /** Registry enum group `ClipControlOrigin`; open and documentation-only, any `GLenum` value is accepted. */
123
+ export type ClipControlOrigin = GLenum;
124
+
125
+ /** Registry enum group `ColorBuffer`; open and documentation-only, any `GLenum` value is accepted. */
126
+ export type ColorBuffer = GLenum;
127
+
128
+ /** Registry enum group `ConditionalRenderMode`; open and documentation-only, any `GLenum` value is accepted. */
129
+ export type ConditionalRenderMode = GLenum;
130
+
131
+ /** Registry enum group `CopyBufferSubDataTarget`; open and documentation-only, any `GLenum` value is accepted. */
132
+ export type CopyBufferSubDataTarget = GLenum;
133
+
134
+ /** Registry enum group `CopyImageSubDataTarget`; open and documentation-only, any `GLenum` value is accepted. */
135
+ export type CopyImageSubDataTarget = GLenum;
136
+
137
+ /** Registry enum group `DebugSeverity`; open and documentation-only, any `GLenum` value is accepted. */
138
+ export type DebugSeverity = GLenum;
139
+
140
+ /** Registry enum group `DebugSource`; open and documentation-only, any `GLenum` value is accepted. */
141
+ export type DebugSource = GLenum;
142
+
143
+ /** Registry enum group `DebugType`; open and documentation-only, any `GLenum` value is accepted. */
144
+ export type DebugType = GLenum;
145
+
146
+ /** Registry enum group `DepthFunction`; open and documentation-only, any `GLenum` value is accepted. */
147
+ export type DepthFunction = GLenum;
148
+
149
+ /** Registry enum group `DrawBufferMode`; open and documentation-only, any `GLenum` value is accepted. */
150
+ export type DrawBufferMode = GLenum;
151
+
152
+ /** Registry enum group `DrawElementsType`; open and documentation-only, any `GLenum` value is accepted. */
153
+ export type DrawElementsType = GLenum;
154
+
155
+ /** Registry enum group `EnableCap`; open and documentation-only, any `GLenum` value is accepted. */
156
+ export type EnableCap = GLenum;
157
+
158
+ /** Registry enum group `ErrorCode`; open and documentation-only, any `GLenum` value is accepted. */
159
+ export type ErrorCode = GLenum;
160
+
161
+ /** Registry enum group `FramebufferAttachment`; open and documentation-only, any `GLenum` value is accepted. */
162
+ export type FramebufferAttachment = GLenum;
163
+
164
+ /** Registry enum group `FramebufferAttachmentParameterName`; open and documentation-only, any `GLenum` value is accepted. */
165
+ export type FramebufferAttachmentParameterName = GLenum;
166
+
167
+ /** Registry enum group `FramebufferParameterName`; open and documentation-only, any `GLenum` value is accepted. */
168
+ export type FramebufferParameterName = GLenum;
169
+
170
+ /** Registry enum group `FramebufferStatus`; open and documentation-only, any `GLenum` value is accepted. */
171
+ export type FramebufferStatus = GLenum;
172
+
173
+ /** Registry enum group `FramebufferTarget`; open and documentation-only, any `GLenum` value is accepted. */
174
+ export type FramebufferTarget = GLenum;
175
+
176
+ /** Registry enum group `FrontFaceDirection`; open and documentation-only, any `GLenum` value is accepted. */
177
+ export type FrontFaceDirection = GLenum;
178
+
179
+ /** Registry enum group `GetFramebufferParameter`; open and documentation-only, any `GLenum` value is accepted. */
180
+ export type GetFramebufferParameter = GLenum;
181
+
182
+ /** Registry enum group `GetTextureParameter`; open and documentation-only, any `GLenum` value is accepted. */
183
+ export type GetTextureParameter = GLenum;
184
+
185
+ /** Registry enum group `GraphicsResetStatus`; open and documentation-only, any `GLenum` value is accepted. */
186
+ export type GraphicsResetStatus = GLenum;
187
+
188
+ /** Registry enum group `HintMode`; open and documentation-only, any `GLenum` value is accepted. */
189
+ export type HintMode = GLenum;
190
+
191
+ /** Registry enum group `HintTarget`; open and documentation-only, any `GLenum` value is accepted. */
192
+ export type HintTarget = GLenum;
193
+
194
+ /** Registry enum group `InternalFormat`; open and documentation-only, any `GLenum` value is accepted. */
195
+ export type InternalFormat = GLenum;
196
+
197
+ /** Registry enum group `InternalFormatPName`; open and documentation-only, any `GLenum` value is accepted. */
198
+ export type InternalFormatPName = GLenum;
199
+
200
+ /** Registry enum group `InvalidateFramebufferAttachment`; open and documentation-only, any `GLenum` value is accepted. */
201
+ export type InvalidateFramebufferAttachment = GLenum;
202
+
203
+ /** Registry enum group `LogicOp`; open and documentation-only, any `GLenum` value is accepted. */
204
+ export type LogicOp = GLenum;
205
+
206
+ /** Registry enum group `MapBufferAccessMask`; open and documentation-only, any `GLbitfield` value is accepted. */
207
+ export type MapBufferAccessMask = GLbitfield;
208
+
209
+ /** Registry enum group `MemoryBarrierMask`; open and documentation-only, any `GLbitfield` value is accepted. */
210
+ export type MemoryBarrierMask = GLbitfield;
211
+
212
+ /** Registry enum group `ObjectIdentifier`; open and documentation-only, any `GLenum` value is accepted. */
213
+ export type ObjectIdentifier = GLenum;
214
+
215
+ /** Registry enum group `PatchParameterName`; open and documentation-only, any `GLenum` value is accepted. */
216
+ export type PatchParameterName = GLenum;
217
+
218
+ /** Registry enum group `PipelineParameterName`; open and documentation-only, any `GLenum` value is accepted. */
219
+ export type PipelineParameterName = GLenum;
220
+
221
+ /** Registry enum group `PixelFormat`; open and documentation-only, any `GLenum` value is accepted. */
222
+ export type PixelFormat = GLenum;
223
+
224
+ /** Registry enum group `PixelStoreParameter`; open and documentation-only, any `GLenum` value is accepted. */
225
+ export type PixelStoreParameter = GLenum;
226
+
227
+ /** Registry enum group `PixelType`; open and documentation-only, any `GLenum` value is accepted. */
228
+ export type PixelType = GLenum;
229
+
230
+ /** Registry enum group `PointParameterNameARB`; open and documentation-only, any `GLenum` value is accepted. */
231
+ export type PointParameterNameARB = GLenum;
232
+
233
+ /** Registry enum group `PolygonMode`; open and documentation-only, any `GLenum` value is accepted. */
234
+ export type PolygonMode = GLenum;
235
+
236
+ /** Registry enum group `PrecisionType`; open and documentation-only, any `GLenum` value is accepted. */
237
+ export type PrecisionType = GLenum;
238
+
239
+ /** Registry enum group `PrimitiveType`; open and documentation-only, any `GLenum` value is accepted. */
240
+ export type PrimitiveType = GLenum;
241
+
242
+ /** Registry enum group `ProgramInterface`; open and documentation-only, any `GLenum` value is accepted. */
243
+ export type ProgramInterface = GLenum;
244
+
245
+ /** Registry enum group `ProgramParameterPName`; open and documentation-only, any `GLenum` value is accepted. */
246
+ export type ProgramParameterPName = GLenum;
247
+
248
+ /** Registry enum group `ProgramPropertyARB`; open and documentation-only, any `GLenum` value is accepted. */
249
+ export type ProgramPropertyARB = GLenum;
250
+
251
+ /** Registry enum group `ProgramResourceProperty`; open and documentation-only, any `GLenum` value is accepted. */
252
+ export type ProgramResourceProperty = GLenum;
253
+
254
+ /** Registry enum group `ProgramStagePName`; open and documentation-only, any `GLenum` value is accepted. */
255
+ export type ProgramStagePName = GLenum;
256
+
257
+ /** Registry enum group `QueryCounterTarget`; open and documentation-only, any `GLenum` value is accepted. */
258
+ export type QueryCounterTarget = GLenum;
259
+
260
+ /** Registry enum group `QueryObjectParameterName`; open and documentation-only, any `GLenum` value is accepted. */
261
+ export type QueryObjectParameterName = GLenum;
262
+
263
+ /** Registry enum group `QueryParameterName`; open and documentation-only, any `GLenum` value is accepted. */
264
+ export type QueryParameterName = GLenum;
265
+
266
+ /** Registry enum group `QueryTarget`; open and documentation-only, any `GLenum` value is accepted. */
267
+ export type QueryTarget = GLenum;
268
+
269
+ /** Registry enum group `ReadBufferMode`; open and documentation-only, any `GLenum` value is accepted. */
270
+ export type ReadBufferMode = GLenum;
271
+
272
+ /** Registry enum group `RenderbufferParameterName`; open and documentation-only, any `GLenum` value is accepted. */
273
+ export type RenderbufferParameterName = GLenum;
274
+
275
+ /** Registry enum group `RenderbufferTarget`; open and documentation-only, any `GLenum` value is accepted. */
276
+ export type RenderbufferTarget = GLenum;
277
+
278
+ /** Registry enum group `SamplerParameterF`; open and documentation-only, any `GLenum` value is accepted. */
279
+ export type SamplerParameterF = GLenum;
280
+
281
+ /** Registry enum group `SamplerParameterI`; open and documentation-only, any `GLenum` value is accepted. */
282
+ export type SamplerParameterI = GLenum;
283
+
284
+ /** Registry enum group `ShaderBinaryFormat`; open and documentation-only, any `GLenum` value is accepted. */
285
+ export type ShaderBinaryFormat = GLenum;
286
+
287
+ /** Registry enum group `ShaderParameterName`; open and documentation-only, any `GLenum` value is accepted. */
288
+ export type ShaderParameterName = GLenum;
289
+
290
+ /** Registry enum group `ShaderType`; open and documentation-only, any `GLenum` value is accepted. */
291
+ export type ShaderType = GLenum;
292
+
293
+ /** Registry enum group `SizedInternalFormat`; open and documentation-only, any `GLenum` value is accepted. */
294
+ export type SizedInternalFormat = GLenum;
295
+
296
+ /** Registry enum group `StencilFunction`; open and documentation-only, any `GLenum` value is accepted. */
297
+ export type StencilFunction = GLenum;
298
+
299
+ /** Registry enum group `StencilOp`; open and documentation-only, any `GLenum` value is accepted. */
300
+ export type StencilOp = GLenum;
301
+
302
+ /** Registry enum group `StringName`; open and documentation-only, any `GLenum` value is accepted. */
303
+ export type StringName = GLenum;
304
+
305
+ /** Registry enum group `SyncBehaviorFlags`; open and documentation-only, any `GLbitfield` value is accepted. */
306
+ export type SyncBehaviorFlags = GLbitfield;
307
+
308
+ /** Registry enum group `SyncCondition`; open and documentation-only, any `GLenum` value is accepted. */
309
+ export type SyncCondition = GLenum;
310
+
311
+ /** Registry enum group `SyncObjectMask`; open and documentation-only, any `GLbitfield` value is accepted. */
312
+ export type SyncObjectMask = GLbitfield;
313
+
314
+ /** Registry enum group `SyncParameterName`; open and documentation-only, any `GLenum` value is accepted. */
315
+ export type SyncParameterName = GLenum;
316
+
317
+ /** Registry enum group `SyncStatus`; open and documentation-only, any `GLenum` value is accepted. */
318
+ export type SyncStatus = GLenum;
319
+
320
+ /** Registry enum group `TextureParameterName`; open and documentation-only, any `GLenum` value is accepted. */
321
+ export type TextureParameterName = GLenum;
322
+
323
+ /** Registry enum group `TextureTarget`; open and documentation-only, any `GLenum` value is accepted. */
324
+ export type TextureTarget = GLenum;
325
+
326
+ /** Registry enum group `TextureUnit`; open and documentation-only, any `GLenum` value is accepted. */
327
+ export type TextureUnit = GLenum;
328
+
329
+ /** Registry enum group `TransformFeedbackBufferMode`; open and documentation-only, any `GLenum` value is accepted. */
330
+ export type TransformFeedbackBufferMode = GLenum;
331
+
332
+ /** Registry enum group `TransformFeedbackPName`; open and documentation-only, any `GLenum` value is accepted. */
333
+ export type TransformFeedbackPName = GLenum;
334
+
335
+ /** Registry enum group `TriangleFace`; open and documentation-only, any `GLenum` value is accepted. */
336
+ export type TriangleFace = GLenum;
337
+
338
+ /** Registry enum group `UniformType`; open and documentation-only, any `GLenum` value is accepted. */
339
+ export type UniformType = GLenum;
340
+
341
+ /** Registry enum group `UseProgramStageMask`; open and documentation-only, any `GLbitfield` value is accepted. */
342
+ export type UseProgramStageMask = GLbitfield;
343
+
344
+ /** Registry enum group `VertexArrayPName`; open and documentation-only, any `GLenum` value is accepted. */
345
+ export type VertexArrayPName = GLenum;
346
+
347
+ /** Registry enum group `VertexAttribEnum`; open and documentation-only, any `GLenum` value is accepted. */
348
+ export type VertexAttribEnum = GLenum;
349
+
350
+ /** Registry enum group `VertexAttribIType`; open and documentation-only, any `GLenum` value is accepted. */
351
+ export type VertexAttribIType = GLenum;
352
+
353
+ /** Registry enum group `VertexAttribLType`; open and documentation-only, any `GLenum` value is accepted. */
354
+ export type VertexAttribLType = GLenum;
355
+
356
+ /** Registry enum group `VertexAttribPointerType`; open and documentation-only, any `GLenum` value is accepted. */
357
+ export type VertexAttribPointerType = GLenum;
358
+
359
+ /** Registry enum group `VertexAttribPropertyARB`; open and documentation-only, any `GLenum` value is accepted. */
360
+ export type VertexAttribPropertyARB = GLenum;
361
+
362
+ /** Registry enum group `VertexAttribType`; open and documentation-only, any `GLenum` value is accepted. */
363
+ export type VertexAttribType = GLenum;
364
+
365
+ /** Registry enum group `VertexProvokingMode`; open and documentation-only, any `GLenum` value is accepted. */
366
+ export type VertexProvokingMode = GLenum;
package/src/index.ts ADDED
@@ -0,0 +1,4 @@
1
+ export * from "./companion.js";
2
+ export * from "./generated/commands.js";
3
+ export * from "./generated/enums.js";
4
+ export type * from "./generated/types.js";