@girs/cogl-16 4.3.0 → 4.5.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.
- package/README.md +36 -41
- package/cogl-16.d.ts +250 -192
- package/package.json +8 -8
package/cogl-16.d.ts
CHANGED
|
@@ -40,25 +40,25 @@ export namespace Cogl {
|
|
|
40
40
|
/**
|
|
41
41
|
* Data is the same size of a byte
|
|
42
42
|
*/
|
|
43
|
-
BYTE,
|
|
43
|
+
BYTE = 5120,
|
|
44
44
|
/**
|
|
45
45
|
* Data is the same size of an
|
|
46
46
|
* unsigned byte
|
|
47
47
|
*/
|
|
48
|
-
UNSIGNED_BYTE,
|
|
48
|
+
UNSIGNED_BYTE = 5121,
|
|
49
49
|
/**
|
|
50
50
|
* Data is the same size of a short integer
|
|
51
51
|
*/
|
|
52
|
-
SHORT,
|
|
52
|
+
SHORT = 5122,
|
|
53
53
|
/**
|
|
54
54
|
* Data is the same size of
|
|
55
55
|
* an unsigned short integer
|
|
56
56
|
*/
|
|
57
|
-
UNSIGNED_SHORT,
|
|
57
|
+
UNSIGNED_SHORT = 5123,
|
|
58
58
|
/**
|
|
59
59
|
* Data is the same size of a float
|
|
60
60
|
*/
|
|
61
|
-
FLOAT,
|
|
61
|
+
FLOAT = 5126,
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
|
|
@@ -73,11 +73,11 @@ export namespace Cogl {
|
|
|
73
73
|
* @gir-type Enum
|
|
74
74
|
*/
|
|
75
75
|
enum BufferBindTarget {
|
|
76
|
-
PIXEL_PACK,
|
|
77
|
-
PIXEL_UNPACK,
|
|
78
|
-
ATTRIBUTE_BUFFER,
|
|
79
|
-
INDEX_BUFFER,
|
|
80
|
-
COUNT,
|
|
76
|
+
PIXEL_PACK = 0,
|
|
77
|
+
PIXEL_UNPACK = 1,
|
|
78
|
+
ATTRIBUTE_BUFFER = 2,
|
|
79
|
+
INDEX_BUFFER = 3,
|
|
80
|
+
COUNT = 4,
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
|
|
@@ -97,16 +97,16 @@ export namespace Cogl {
|
|
|
97
97
|
/**
|
|
98
98
|
* the buffer will not change over time
|
|
99
99
|
*/
|
|
100
|
-
STATIC,
|
|
100
|
+
STATIC = 0,
|
|
101
101
|
/**
|
|
102
102
|
* the buffer will change from time to time
|
|
103
103
|
*/
|
|
104
|
-
DYNAMIC,
|
|
104
|
+
DYNAMIC = 1,
|
|
105
105
|
/**
|
|
106
106
|
* the buffer will be used once or a couple of
|
|
107
107
|
* times
|
|
108
108
|
*/
|
|
109
|
-
STREAM,
|
|
109
|
+
STREAM = 2,
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
|
|
@@ -131,41 +131,41 @@ export namespace Cogl {
|
|
|
131
131
|
/**
|
|
132
132
|
* Never passes.
|
|
133
133
|
*/
|
|
134
|
-
NEVER,
|
|
134
|
+
NEVER = 512,
|
|
135
135
|
/**
|
|
136
136
|
* Passes if the fragment's depth
|
|
137
137
|
* value is less than the value currently in the depth buffer.
|
|
138
138
|
*/
|
|
139
|
-
LESS,
|
|
139
|
+
LESS = 513,
|
|
140
140
|
/**
|
|
141
141
|
* Passes if the fragment's depth
|
|
142
142
|
* value is equal to the value currently in the depth buffer.
|
|
143
143
|
*/
|
|
144
|
-
EQUAL,
|
|
144
|
+
EQUAL = 514,
|
|
145
145
|
/**
|
|
146
146
|
* Passes if the fragment's depth
|
|
147
147
|
* value is less or equal to the value currently in the depth buffer.
|
|
148
148
|
*/
|
|
149
|
-
LEQUAL,
|
|
149
|
+
LEQUAL = 515,
|
|
150
150
|
/**
|
|
151
151
|
* Passes if the fragment's depth
|
|
152
152
|
* value is greater than the value currently in the depth buffer.
|
|
153
153
|
*/
|
|
154
|
-
GREATER,
|
|
154
|
+
GREATER = 516,
|
|
155
155
|
/**
|
|
156
156
|
* Passes if the fragment's depth
|
|
157
157
|
* value is not equal to the value currently in the depth buffer.
|
|
158
158
|
*/
|
|
159
|
-
NOTEQUAL,
|
|
159
|
+
NOTEQUAL = 517,
|
|
160
160
|
/**
|
|
161
161
|
* Passes if the fragment's depth
|
|
162
162
|
* value greater than or equal to the value currently in the depth buffer.
|
|
163
163
|
*/
|
|
164
|
-
GEQUAL,
|
|
164
|
+
GEQUAL = 518,
|
|
165
165
|
/**
|
|
166
166
|
* Always passes.
|
|
167
167
|
*/
|
|
168
|
-
ALWAYS,
|
|
168
|
+
ALWAYS = 519,
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
|
|
@@ -178,19 +178,19 @@ export namespace Cogl {
|
|
|
178
178
|
/**
|
|
179
179
|
* Implies no preference for which driver is used
|
|
180
180
|
*/
|
|
181
|
-
ANY,
|
|
181
|
+
ANY = 0,
|
|
182
182
|
/**
|
|
183
183
|
* A No-Op driver.
|
|
184
184
|
*/
|
|
185
|
-
NOP,
|
|
185
|
+
NOP = 1,
|
|
186
186
|
/**
|
|
187
187
|
* An OpenGL driver using the core GL 3.1 profile
|
|
188
188
|
*/
|
|
189
|
-
GL3,
|
|
189
|
+
GL3 = 2,
|
|
190
190
|
/**
|
|
191
191
|
* An OpenGL ES 2.0 driver.
|
|
192
192
|
*/
|
|
193
|
-
GLES2,
|
|
193
|
+
GLES2 = 3,
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
|
|
@@ -206,52 +206,52 @@ export namespace Cogl {
|
|
|
206
206
|
* {@link Cogl.IndicesType.INT} is supported in
|
|
207
207
|
* `cogl_indices_new()`.
|
|
208
208
|
*/
|
|
209
|
-
OGL_FEATURE_ID_UNSIGNED_INT_INDICES,
|
|
209
|
+
OGL_FEATURE_ID_UNSIGNED_INT_INDICES = 0,
|
|
210
210
|
/**
|
|
211
211
|
* Whether `cogl_buffer_map()` is
|
|
212
212
|
* supported with CoglBufferAccess including read support.
|
|
213
213
|
*/
|
|
214
|
-
OGL_FEATURE_ID_MAP_BUFFER_FOR_READ,
|
|
214
|
+
OGL_FEATURE_ID_MAP_BUFFER_FOR_READ = 1,
|
|
215
215
|
/**
|
|
216
216
|
* Whether `cogl_buffer_map()` is
|
|
217
217
|
* supported with CoglBufferAccess including write support.
|
|
218
218
|
*/
|
|
219
|
-
OGL_FEATURE_ID_MAP_BUFFER_FOR_WRITE,
|
|
220
|
-
OGL_FEATURE_ID_FENCE,
|
|
219
|
+
OGL_FEATURE_ID_MAP_BUFFER_FOR_WRITE = 2,
|
|
220
|
+
OGL_FEATURE_ID_FENCE = 3,
|
|
221
221
|
/**
|
|
222
222
|
* Support for
|
|
223
223
|
* {@link Cogl.TextureComponents.RG} as the internal components of a
|
|
224
224
|
* texture.
|
|
225
225
|
*/
|
|
226
|
-
OGL_FEATURE_ID_TEXTURE_RG,
|
|
226
|
+
OGL_FEATURE_ID_TEXTURE_RG = 4,
|
|
227
227
|
/**
|
|
228
228
|
* Support for 10bpc RGBA formats
|
|
229
229
|
*/
|
|
230
|
-
OGL_FEATURE_ID_TEXTURE_RGBA1010102,
|
|
230
|
+
OGL_FEATURE_ID_TEXTURE_RGBA1010102 = 5,
|
|
231
231
|
/**
|
|
232
232
|
* Support for half float formats
|
|
233
233
|
*/
|
|
234
|
-
OGL_FEATURE_ID_TEXTURE_HALF_FLOAT,
|
|
234
|
+
OGL_FEATURE_ID_TEXTURE_HALF_FLOAT = 6,
|
|
235
235
|
/**
|
|
236
236
|
* Support for 16bpc formats
|
|
237
237
|
*/
|
|
238
|
-
OGL_FEATURE_ID_TEXTURE_NORM16,
|
|
238
|
+
OGL_FEATURE_ID_TEXTURE_NORM16 = 7,
|
|
239
239
|
/**
|
|
240
240
|
* Available if the age of {@link Cogl.Onscreen} back
|
|
241
241
|
* buffers are tracked and so `cogl_onscreen_get_buffer_age()` can be
|
|
242
242
|
* expected to return age values other than 0.
|
|
243
243
|
*/
|
|
244
|
-
OGL_FEATURE_ID_BUFFER_AGE,
|
|
245
|
-
OGL_FEATURE_ID_TEXTURE_EGL_IMAGE_EXTERNAL,
|
|
244
|
+
OGL_FEATURE_ID_BUFFER_AGE = 8,
|
|
245
|
+
OGL_FEATURE_ID_TEXTURE_EGL_IMAGE_EXTERNAL = 9,
|
|
246
246
|
/**
|
|
247
247
|
* Whether blitting using
|
|
248
248
|
* {@link Cogl.Framebuffer.blit} is supported.
|
|
249
249
|
* `COGL_FEATURE_ID_SYNC_FD`
|
|
250
250
|
* `cogl_context_get_latest_sync_fd()` is supported.
|
|
251
251
|
*/
|
|
252
|
-
OGL_FEATURE_ID_BLIT_FRAMEBUFFER,
|
|
253
|
-
OGL_FEATURE_ID_TIMESTAMP_QUERY,
|
|
254
|
-
OGL_FEATURE_ID_SYNC_FD,
|
|
252
|
+
OGL_FEATURE_ID_BLIT_FRAMEBUFFER = 10,
|
|
253
|
+
OGL_FEATURE_ID_TIMESTAMP_QUERY = 11,
|
|
254
|
+
OGL_FEATURE_ID_SYNC_FD = 12,
|
|
255
255
|
}
|
|
256
256
|
|
|
257
257
|
|
|
@@ -271,11 +271,11 @@ export namespace Cogl {
|
|
|
271
271
|
* The event was not handled, continues the
|
|
272
272
|
* processing
|
|
273
273
|
*/
|
|
274
|
-
CONTINUE,
|
|
274
|
+
CONTINUE = 0,
|
|
275
275
|
/**
|
|
276
276
|
* Remove the event, stops the processing
|
|
277
277
|
*/
|
|
278
|
-
REMOVE,
|
|
278
|
+
REMOVE = 1,
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
|
|
@@ -302,7 +302,7 @@ export namespace Cogl {
|
|
|
302
302
|
* acknowledged a frame and is ready for a
|
|
303
303
|
* new frame to be created.
|
|
304
304
|
*/
|
|
305
|
-
SYNC,
|
|
305
|
+
SYNC = 1,
|
|
306
306
|
/**
|
|
307
307
|
* Notifies that a frame has ended. This
|
|
308
308
|
* is a good time for applications to
|
|
@@ -312,7 +312,7 @@ export namespace Cogl {
|
|
|
312
312
|
* events should be expected after a
|
|
313
313
|
* `COGL_FRAME_EVENT_COMPLETE` event.
|
|
314
314
|
*/
|
|
315
|
-
COMPLETE,
|
|
315
|
+
COMPLETE = 2,
|
|
316
316
|
}
|
|
317
317
|
|
|
318
318
|
|
|
@@ -320,7 +320,7 @@ export namespace Cogl {
|
|
|
320
320
|
* @gir-type Enum
|
|
321
321
|
*/
|
|
322
322
|
enum FramebufferError {
|
|
323
|
-
FRAMEBUFFER_ERROR_ALLOCATE,
|
|
323
|
+
FRAMEBUFFER_ERROR_ALLOCATE = 0,
|
|
324
324
|
}
|
|
325
325
|
|
|
326
326
|
|
|
@@ -332,11 +332,11 @@ export namespace Cogl {
|
|
|
332
332
|
* @gir-type Enum
|
|
333
333
|
*/
|
|
334
334
|
enum GraphicsResetStatus {
|
|
335
|
-
NO_ERROR,
|
|
336
|
-
GUILTY_CONTEXT_RESET,
|
|
337
|
-
INNOCENT_CONTEXT_RESET,
|
|
338
|
-
UNKNOWN_CONTEXT_RESET,
|
|
339
|
-
PURGED_CONTEXT_RESET,
|
|
335
|
+
NO_ERROR = 0,
|
|
336
|
+
GUILTY_CONTEXT_RESET = 1,
|
|
337
|
+
INNOCENT_CONTEXT_RESET = 2,
|
|
338
|
+
UNKNOWN_CONTEXT_RESET = 3,
|
|
339
|
+
PURGED_CONTEXT_RESET = 4,
|
|
340
340
|
}
|
|
341
341
|
|
|
342
342
|
|
|
@@ -363,15 +363,15 @@ export namespace Cogl {
|
|
|
363
363
|
/**
|
|
364
364
|
* Your indices are unsigned bytes
|
|
365
365
|
*/
|
|
366
|
-
BYTE,
|
|
366
|
+
BYTE = 0,
|
|
367
367
|
/**
|
|
368
368
|
* Your indices are unsigned shorts
|
|
369
369
|
*/
|
|
370
|
-
SHORT,
|
|
370
|
+
SHORT = 1,
|
|
371
371
|
/**
|
|
372
372
|
* Your indices are unsigned ints
|
|
373
373
|
*/
|
|
374
|
-
INT,
|
|
374
|
+
INT = 2,
|
|
375
375
|
}
|
|
376
376
|
|
|
377
377
|
|
|
@@ -386,41 +386,41 @@ export namespace Cogl {
|
|
|
386
386
|
/**
|
|
387
387
|
* Never let the fragment through.
|
|
388
388
|
*/
|
|
389
|
-
NEVER,
|
|
389
|
+
NEVER = 512,
|
|
390
390
|
/**
|
|
391
391
|
* Let the fragment through if the incoming
|
|
392
392
|
* alpha value is less than the reference alpha value
|
|
393
393
|
*/
|
|
394
|
-
LESS,
|
|
394
|
+
LESS = 513,
|
|
395
395
|
/**
|
|
396
396
|
* Let the fragment through if the incoming
|
|
397
397
|
* alpha value equals the reference alpha value
|
|
398
398
|
*/
|
|
399
|
-
EQUAL,
|
|
399
|
+
EQUAL = 514,
|
|
400
400
|
/**
|
|
401
401
|
* Let the fragment through if the incoming
|
|
402
402
|
* alpha value is less than or equal to the reference alpha value
|
|
403
403
|
*/
|
|
404
|
-
LEQUAL,
|
|
404
|
+
LEQUAL = 515,
|
|
405
405
|
/**
|
|
406
406
|
* Let the fragment through if the incoming
|
|
407
407
|
* alpha value is greater than the reference alpha value
|
|
408
408
|
*/
|
|
409
|
-
GREATER,
|
|
409
|
+
GREATER = 516,
|
|
410
410
|
/**
|
|
411
411
|
* Let the fragment through if the incoming
|
|
412
412
|
* alpha value does not equal the reference alpha value
|
|
413
413
|
*/
|
|
414
|
-
NOTEQUAL,
|
|
414
|
+
NOTEQUAL = 517,
|
|
415
415
|
/**
|
|
416
416
|
* Let the fragment through if the incoming
|
|
417
417
|
* alpha value is greater than or equal to the reference alpha value.
|
|
418
418
|
*/
|
|
419
|
-
GEQUAL,
|
|
419
|
+
GEQUAL = 518,
|
|
420
420
|
/**
|
|
421
421
|
* Always let the fragment through.
|
|
422
422
|
*/
|
|
423
|
-
ALWAYS,
|
|
423
|
+
ALWAYS = 519,
|
|
424
424
|
}
|
|
425
425
|
|
|
426
426
|
|
|
@@ -434,19 +434,19 @@ export namespace Cogl {
|
|
|
434
434
|
* Neither face will be
|
|
435
435
|
* culled. This is the default.
|
|
436
436
|
*/
|
|
437
|
-
NONE,
|
|
437
|
+
NONE = 0,
|
|
438
438
|
/**
|
|
439
439
|
* Front faces will be culled.
|
|
440
440
|
*/
|
|
441
|
-
FRONT,
|
|
441
|
+
FRONT = 1,
|
|
442
442
|
/**
|
|
443
443
|
* Back faces will be culled.
|
|
444
444
|
*/
|
|
445
|
-
BACK,
|
|
445
|
+
BACK = 2,
|
|
446
446
|
/**
|
|
447
447
|
* All faces will be culled.
|
|
448
448
|
*/
|
|
449
|
-
BOTH,
|
|
449
|
+
BOTH = 3,
|
|
450
450
|
}
|
|
451
451
|
|
|
452
452
|
|
|
@@ -463,38 +463,38 @@ export namespace Cogl {
|
|
|
463
463
|
* Measuring in manhatten distance from the,
|
|
464
464
|
* current pixel center, use the nearest texture texel
|
|
465
465
|
*/
|
|
466
|
-
NEAREST,
|
|
466
|
+
NEAREST = 9728,
|
|
467
467
|
/**
|
|
468
468
|
* Use the weighted average of the 4 texels
|
|
469
469
|
* nearest the current pixel center
|
|
470
470
|
*/
|
|
471
|
-
LINEAR,
|
|
471
|
+
LINEAR = 9729,
|
|
472
472
|
/**
|
|
473
473
|
* Select the mimap level whose
|
|
474
474
|
* texel size most closely matches the current pixel, and use the
|
|
475
475
|
* {@link Cogl.PipelineFilter.NEAREST} criterion
|
|
476
476
|
*/
|
|
477
|
-
NEAREST_MIPMAP_NEAREST,
|
|
477
|
+
NEAREST_MIPMAP_NEAREST = 9984,
|
|
478
478
|
/**
|
|
479
479
|
* Select the mimap level whose
|
|
480
480
|
* texel size most closely matches the current pixel, and use the
|
|
481
481
|
* {@link Cogl.PipelineFilter.LINEAR} criterion
|
|
482
482
|
*/
|
|
483
|
-
LINEAR_MIPMAP_NEAREST,
|
|
483
|
+
LINEAR_MIPMAP_NEAREST = 9985,
|
|
484
484
|
/**
|
|
485
485
|
* Select the two mimap levels
|
|
486
486
|
* whose texel size most closely matches the current pixel, use
|
|
487
487
|
* the {@link Cogl.PipelineFilter.NEAREST} criterion on each one and take
|
|
488
488
|
* their weighted average
|
|
489
489
|
*/
|
|
490
|
-
NEAREST_MIPMAP_LINEAR,
|
|
490
|
+
NEAREST_MIPMAP_LINEAR = 9986,
|
|
491
491
|
/**
|
|
492
492
|
* Select the two mimap levels
|
|
493
493
|
* whose texel size most closely matches the current pixel, use
|
|
494
494
|
* the {@link Cogl.PipelineFilter.LINEAR} criterion on each one and take
|
|
495
495
|
* their weighted average
|
|
496
496
|
*/
|
|
497
|
-
LINEAR_MIPMAP_LINEAR,
|
|
497
|
+
LINEAR_MIPMAP_LINEAR = 9987,
|
|
498
498
|
}
|
|
499
499
|
|
|
500
500
|
|
|
@@ -514,15 +514,15 @@ export namespace Cogl {
|
|
|
514
514
|
* The texture will be repeated. This
|
|
515
515
|
* is useful for example to draw a tiled background.
|
|
516
516
|
*/
|
|
517
|
-
REPEAT,
|
|
518
|
-
MIRRORED_REPEAT,
|
|
517
|
+
REPEAT = 10497,
|
|
518
|
+
MIRRORED_REPEAT = 33648,
|
|
519
519
|
/**
|
|
520
520
|
* The coordinates outside the
|
|
521
521
|
* range 0→1 will sample copies of the edge pixels of the
|
|
522
522
|
* texture. This is useful to avoid artifacts if only one copy of
|
|
523
523
|
* the texture is being rendered.
|
|
524
524
|
*/
|
|
525
|
-
CLAMP_TO_EDGE,
|
|
525
|
+
CLAMP_TO_EDGE = 33071,
|
|
526
526
|
/**
|
|
527
527
|
* Cogl will try to automatically
|
|
528
528
|
* decide which of the above two to use. For `cogl_rectangle()`, it
|
|
@@ -533,7 +533,7 @@ export namespace Cogl {
|
|
|
533
533
|
* layers that have point sprite coordinate generation enabled. This
|
|
534
534
|
* is the default value.
|
|
535
535
|
*/
|
|
536
|
-
AUTOMATIC,
|
|
536
|
+
AUTOMATIC = 519,
|
|
537
537
|
}
|
|
538
538
|
|
|
539
539
|
|
|
@@ -569,206 +569,206 @@ export namespace Cogl {
|
|
|
569
569
|
/**
|
|
570
570
|
* Any format
|
|
571
571
|
*/
|
|
572
|
-
ANY,
|
|
572
|
+
ANY = 0,
|
|
573
573
|
/**
|
|
574
574
|
* 8 bits alpha mask
|
|
575
575
|
*/
|
|
576
|
-
A_8,
|
|
576
|
+
A_8 = 17,
|
|
577
577
|
/**
|
|
578
578
|
* RGB, 16 bits
|
|
579
579
|
*/
|
|
580
|
-
RGB_565,
|
|
580
|
+
RGB_565 = 4,
|
|
581
581
|
/**
|
|
582
582
|
* RGBA, 16 bits
|
|
583
583
|
*/
|
|
584
|
-
RGBA_4444,
|
|
584
|
+
RGBA_4444 = 21,
|
|
585
585
|
/**
|
|
586
586
|
* RGBA, 16 bits
|
|
587
587
|
*/
|
|
588
|
-
RGBA_5551,
|
|
588
|
+
RGBA_5551 = 22,
|
|
589
589
|
/**
|
|
590
590
|
* Not currently supported
|
|
591
591
|
*/
|
|
592
|
-
YUV,
|
|
592
|
+
YUV = 7,
|
|
593
593
|
/**
|
|
594
594
|
* Single luminance component
|
|
595
595
|
*/
|
|
596
|
-
R_8,
|
|
596
|
+
R_8 = 8,
|
|
597
597
|
/**
|
|
598
598
|
* RG, 16 bits. Note that red-green textures
|
|
599
599
|
* are only available if {@link Cogl.FeatureID.OGL_FEATURE_ID_TEXTURE_RG} is advertised.
|
|
600
600
|
* See `cogl_texture_set_components()` for details.
|
|
601
601
|
*/
|
|
602
|
-
RG_88,
|
|
602
|
+
RG_88 = 9,
|
|
603
603
|
/**
|
|
604
604
|
* RGB, 24 bits
|
|
605
605
|
*/
|
|
606
|
-
RGB_888,
|
|
606
|
+
RGB_888 = 2,
|
|
607
607
|
/**
|
|
608
608
|
* BGR, 24 bits
|
|
609
609
|
*/
|
|
610
|
-
BGR_888,
|
|
610
|
+
BGR_888 = 34,
|
|
611
611
|
/**
|
|
612
612
|
* RGBX, 32 bits
|
|
613
613
|
*/
|
|
614
|
-
RGBX_8888,
|
|
614
|
+
RGBX_8888 = 3,
|
|
615
615
|
/**
|
|
616
616
|
* RGBA, 32 bits
|
|
617
617
|
*/
|
|
618
|
-
RGBA_8888,
|
|
618
|
+
RGBA_8888 = 19,
|
|
619
619
|
/**
|
|
620
620
|
* BGRX, 32 bits
|
|
621
621
|
*/
|
|
622
|
-
BGRX_8888,
|
|
622
|
+
BGRX_8888 = 35,
|
|
623
623
|
/**
|
|
624
624
|
* BGRA, 32 bits
|
|
625
625
|
*/
|
|
626
|
-
BGRA_8888,
|
|
626
|
+
BGRA_8888 = 51,
|
|
627
627
|
/**
|
|
628
628
|
* XRGB, 32 bits
|
|
629
629
|
*/
|
|
630
|
-
XRGB_8888,
|
|
630
|
+
XRGB_8888 = 67,
|
|
631
631
|
/**
|
|
632
632
|
* ARGB, 32 bits
|
|
633
633
|
*/
|
|
634
|
-
ARGB_8888,
|
|
634
|
+
ARGB_8888 = 83,
|
|
635
635
|
/**
|
|
636
636
|
* XBGR, 32 bits
|
|
637
637
|
*/
|
|
638
|
-
XBGR_8888,
|
|
638
|
+
XBGR_8888 = 99,
|
|
639
639
|
/**
|
|
640
640
|
* ABGR, 32 bits
|
|
641
641
|
*/
|
|
642
|
-
ABGR_8888,
|
|
642
|
+
ABGR_8888 = 115,
|
|
643
643
|
/**
|
|
644
644
|
* Premultiplied RGBA, 32 bits
|
|
645
645
|
*/
|
|
646
|
-
RGBA_8888_PRE,
|
|
646
|
+
RGBA_8888_PRE = 147,
|
|
647
647
|
/**
|
|
648
648
|
* Premultiplied BGRA, 32 bits
|
|
649
649
|
*/
|
|
650
|
-
BGRA_8888_PRE,
|
|
650
|
+
BGRA_8888_PRE = 179,
|
|
651
651
|
/**
|
|
652
652
|
* Premultiplied ARGB, 32 bits
|
|
653
653
|
*/
|
|
654
|
-
ARGB_8888_PRE,
|
|
654
|
+
ARGB_8888_PRE = 211,
|
|
655
655
|
/**
|
|
656
656
|
* Premultiplied ABGR, 32 bits
|
|
657
657
|
*/
|
|
658
|
-
ABGR_8888_PRE,
|
|
658
|
+
ABGR_8888_PRE = 243,
|
|
659
659
|
/**
|
|
660
660
|
* Premultiplied RGBA, 16 bits
|
|
661
661
|
*/
|
|
662
|
-
RGBA_4444_PRE,
|
|
662
|
+
RGBA_4444_PRE = 149,
|
|
663
663
|
/**
|
|
664
664
|
* Premultiplied RGBA, 16 bits
|
|
665
665
|
*/
|
|
666
|
-
RGBA_5551_PRE,
|
|
666
|
+
RGBA_5551_PRE = 150,
|
|
667
667
|
/**
|
|
668
668
|
* RGBA, 32 bits, 10 bpc
|
|
669
669
|
*/
|
|
670
|
-
RGBA_1010102,
|
|
670
|
+
RGBA_1010102 = 29,
|
|
671
671
|
/**
|
|
672
672
|
* BGRA, 32 bits, 10 bpc
|
|
673
673
|
*/
|
|
674
|
-
BGRA_1010102,
|
|
674
|
+
BGRA_1010102 = 61,
|
|
675
675
|
/**
|
|
676
676
|
* XRGB, 32 bits, 10 bpc
|
|
677
677
|
*/
|
|
678
|
-
XRGB_2101010,
|
|
678
|
+
XRGB_2101010 = 77,
|
|
679
679
|
/**
|
|
680
680
|
* ARGB, 32 bits, 10 bpc
|
|
681
681
|
*/
|
|
682
|
-
ARGB_2101010,
|
|
682
|
+
ARGB_2101010 = 93,
|
|
683
683
|
/**
|
|
684
684
|
* XBGR, 32 bits, 10 bpc
|
|
685
685
|
*/
|
|
686
|
-
XBGR_2101010,
|
|
686
|
+
XBGR_2101010 = 109,
|
|
687
687
|
/**
|
|
688
688
|
* ABGR, 32 bits, 10 bpc
|
|
689
689
|
*/
|
|
690
|
-
ABGR_2101010,
|
|
690
|
+
ABGR_2101010 = 125,
|
|
691
691
|
/**
|
|
692
692
|
* Premultiplied RGBA, 32 bits, 10 bpc
|
|
693
693
|
*/
|
|
694
|
-
RGBA_1010102_PRE,
|
|
694
|
+
RGBA_1010102_PRE = 157,
|
|
695
695
|
/**
|
|
696
696
|
* Premultiplied BGRA, 32 bits, 10 bpc
|
|
697
697
|
*/
|
|
698
|
-
BGRA_1010102_PRE,
|
|
698
|
+
BGRA_1010102_PRE = 189,
|
|
699
699
|
/**
|
|
700
700
|
* Premultiplied ARGB, 32 bits, 10 bpc
|
|
701
701
|
*/
|
|
702
|
-
ARGB_2101010_PRE,
|
|
702
|
+
ARGB_2101010_PRE = 221,
|
|
703
703
|
/**
|
|
704
704
|
* Premultiplied ABGR, 32 bits, 10 bpc
|
|
705
705
|
*/
|
|
706
|
-
ABGR_2101010_PRE,
|
|
706
|
+
ABGR_2101010_PRE = 253,
|
|
707
707
|
/**
|
|
708
708
|
* RGBX half floating point, 64 bit
|
|
709
709
|
*/
|
|
710
|
-
RGBX_FP_16161616,
|
|
710
|
+
RGBX_FP_16161616 = 11,
|
|
711
711
|
/**
|
|
712
712
|
* RGBA half floating point, 64 bit
|
|
713
713
|
*/
|
|
714
|
-
RGBA_FP_16161616,
|
|
714
|
+
RGBA_FP_16161616 = 27,
|
|
715
715
|
/**
|
|
716
716
|
* BGRX half floating point, 64 bit
|
|
717
717
|
*/
|
|
718
|
-
BGRX_FP_16161616,
|
|
718
|
+
BGRX_FP_16161616 = 43,
|
|
719
719
|
/**
|
|
720
720
|
* BGRA half floating point, 64 bit
|
|
721
721
|
*/
|
|
722
|
-
BGRA_FP_16161616,
|
|
723
|
-
XRGB_FP_16161616,
|
|
722
|
+
BGRA_FP_16161616 = 59,
|
|
723
|
+
XRGB_FP_16161616 = 75,
|
|
724
724
|
/**
|
|
725
725
|
* ARGB half floating point, 64 bit
|
|
726
726
|
*/
|
|
727
|
-
ARGB_FP_16161616,
|
|
728
|
-
XBGR_FP_16161616,
|
|
727
|
+
ARGB_FP_16161616 = 91,
|
|
728
|
+
XBGR_FP_16161616 = 107,
|
|
729
729
|
/**
|
|
730
730
|
* ABGR half floating point, 64 bit
|
|
731
731
|
*/
|
|
732
|
-
ABGR_FP_16161616,
|
|
732
|
+
ABGR_FP_16161616 = 123,
|
|
733
733
|
/**
|
|
734
734
|
* Premultiplied RGBA half floating point, 64 bit
|
|
735
735
|
*/
|
|
736
|
-
RGBA_FP_16161616_PRE,
|
|
736
|
+
RGBA_FP_16161616_PRE = 155,
|
|
737
737
|
/**
|
|
738
738
|
* Premultiplied BGRA half floating point, 64 bit
|
|
739
739
|
*/
|
|
740
|
-
BGRA_FP_16161616_PRE,
|
|
740
|
+
BGRA_FP_16161616_PRE = 187,
|
|
741
741
|
/**
|
|
742
742
|
* Premultiplied ARGB half floating point, 64 bit
|
|
743
743
|
*/
|
|
744
|
-
ARGB_FP_16161616_PRE,
|
|
744
|
+
ARGB_FP_16161616_PRE = 219,
|
|
745
745
|
/**
|
|
746
746
|
* Premultiplied ABGR half floating point, 64 bit
|
|
747
747
|
*/
|
|
748
|
-
ABGR_FP_16161616_PRE,
|
|
748
|
+
ABGR_FP_16161616_PRE = 251,
|
|
749
749
|
/**
|
|
750
750
|
* RGBA floating point, 128 bit
|
|
751
751
|
*/
|
|
752
|
-
RGBA_FP_32323232,
|
|
752
|
+
RGBA_FP_32323232 = 28,
|
|
753
753
|
/**
|
|
754
754
|
* Premultiplied RGBA floating point, 128 bit
|
|
755
755
|
*/
|
|
756
|
-
RGBA_FP_32323232_PRE,
|
|
756
|
+
RGBA_FP_32323232_PRE = 156,
|
|
757
757
|
/**
|
|
758
758
|
* Single luminance component, 16 bits
|
|
759
759
|
*/
|
|
760
|
-
R_16,
|
|
760
|
+
R_16 = 14,
|
|
761
761
|
/**
|
|
762
762
|
* RG, 32 bits
|
|
763
763
|
*/
|
|
764
|
-
RG_1616,
|
|
764
|
+
RG_1616 = 15,
|
|
765
765
|
/**
|
|
766
766
|
* RGBA, 64 bits, 16bpc
|
|
767
767
|
*/
|
|
768
|
-
RGBA_16161616,
|
|
769
|
-
RGBA_16161616_PRE,
|
|
770
|
-
DEPTH_16,
|
|
771
|
-
DEPTH_24_STENCIL_8,
|
|
768
|
+
RGBA_16161616 = 26,
|
|
769
|
+
RGBA_16161616_PRE = 154,
|
|
770
|
+
DEPTH_16 = 265,
|
|
771
|
+
DEPTH_24_STENCIL_8 = 771,
|
|
772
772
|
}
|
|
773
773
|
|
|
774
774
|
|
|
@@ -783,8 +783,8 @@ export namespace Cogl {
|
|
|
783
783
|
* @gir-type Enum
|
|
784
784
|
*/
|
|
785
785
|
enum RendererError {
|
|
786
|
-
XLIB_DISPLAY_OPEN,
|
|
787
|
-
BAD_CONSTRAINT,
|
|
786
|
+
XLIB_DISPLAY_OPEN = 0,
|
|
787
|
+
BAD_CONSTRAINT = 1,
|
|
788
788
|
}
|
|
789
789
|
|
|
790
790
|
|
|
@@ -823,11 +823,11 @@ export namespace Cogl {
|
|
|
823
823
|
/**
|
|
824
824
|
* A program for processing vertices
|
|
825
825
|
*/
|
|
826
|
-
VERTEX,
|
|
826
|
+
VERTEX = 0,
|
|
827
827
|
/**
|
|
828
828
|
* A program for processing fragments
|
|
829
829
|
*/
|
|
830
|
-
FRAGMENT,
|
|
830
|
+
FRAGMENT = 1,
|
|
831
831
|
}
|
|
832
832
|
|
|
833
833
|
|
|
@@ -1045,50 +1045,50 @@ export namespace Cogl {
|
|
|
1045
1045
|
* A hook for the entire vertex processing
|
|
1046
1046
|
* stage of the pipeline.
|
|
1047
1047
|
*/
|
|
1048
|
-
VERTEX,
|
|
1048
|
+
VERTEX = 0,
|
|
1049
1049
|
/**
|
|
1050
1050
|
* A hook for the vertex transformation.
|
|
1051
1051
|
*/
|
|
1052
|
-
VERTEX_TRANSFORM,
|
|
1052
|
+
VERTEX_TRANSFORM = 1,
|
|
1053
1053
|
/**
|
|
1054
1054
|
* A hook for declaring global data
|
|
1055
1055
|
* that can be shared with all other snippets that are on a vertex
|
|
1056
1056
|
* hook.
|
|
1057
1057
|
*/
|
|
1058
|
-
VERTEX_GLOBALS,
|
|
1058
|
+
VERTEX_GLOBALS = 2,
|
|
1059
1059
|
/**
|
|
1060
1060
|
* A hook for manipulating the point
|
|
1061
1061
|
* size of a vertex. This is only used if
|
|
1062
1062
|
* `cogl_pipeline_set_per_vertex_point_size()` is enabled on the
|
|
1063
1063
|
* pipeline.
|
|
1064
1064
|
*/
|
|
1065
|
-
POINT_SIZE,
|
|
1065
|
+
POINT_SIZE = 3,
|
|
1066
1066
|
/**
|
|
1067
1067
|
* A hook for the entire fragment
|
|
1068
1068
|
* processing stage of the pipeline.
|
|
1069
1069
|
*/
|
|
1070
|
-
FRAGMENT,
|
|
1070
|
+
FRAGMENT = 2048,
|
|
1071
1071
|
/**
|
|
1072
1072
|
* A hook for declaring global
|
|
1073
1073
|
* data wthat can be shared with all other snippets that are on a
|
|
1074
1074
|
* fragment hook.
|
|
1075
1075
|
*/
|
|
1076
|
-
FRAGMENT_GLOBALS,
|
|
1076
|
+
FRAGMENT_GLOBALS = 2049,
|
|
1077
1077
|
/**
|
|
1078
1078
|
* A hook for applying the
|
|
1079
1079
|
* layer matrix to a texture coordinate for a layer.
|
|
1080
1080
|
*/
|
|
1081
|
-
TEXTURE_COORD_TRANSFORM,
|
|
1081
|
+
TEXTURE_COORD_TRANSFORM = 4096,
|
|
1082
1082
|
/**
|
|
1083
1083
|
* A hook for the fragment
|
|
1084
1084
|
* processing of a particular layer.
|
|
1085
1085
|
*/
|
|
1086
|
-
LAYER_FRAGMENT,
|
|
1086
|
+
LAYER_FRAGMENT = 6144,
|
|
1087
1087
|
/**
|
|
1088
1088
|
* A hook for the texture lookup
|
|
1089
1089
|
* stage of a given layer in a pipeline.
|
|
1090
1090
|
*/
|
|
1091
|
-
TEXTURE_LOOKUP,
|
|
1091
|
+
TEXTURE_LOOKUP = 6145,
|
|
1092
1092
|
}
|
|
1093
1093
|
|
|
1094
1094
|
|
|
@@ -1121,12 +1121,12 @@ export namespace Cogl {
|
|
|
1121
1121
|
* You tried to use a feature or
|
|
1122
1122
|
* configuration not currently available.
|
|
1123
1123
|
*/
|
|
1124
|
-
COGL_SYSTEM_ERROR_UNSUPPORTED,
|
|
1124
|
+
COGL_SYSTEM_ERROR_UNSUPPORTED = 0,
|
|
1125
1125
|
/**
|
|
1126
1126
|
* You tried to allocate a resource
|
|
1127
1127
|
* such as a texture and there wasn't enough memory.
|
|
1128
1128
|
*/
|
|
1129
|
-
COGL_SYSTEM_ERROR_NO_MEMORY,
|
|
1129
|
+
COGL_SYSTEM_ERROR_NO_MEMORY = 1,
|
|
1130
1130
|
}
|
|
1131
1131
|
|
|
1132
1132
|
|
|
@@ -1138,25 +1138,25 @@ export namespace Cogl {
|
|
|
1138
1138
|
/**
|
|
1139
1139
|
* Only the alpha component
|
|
1140
1140
|
*/
|
|
1141
|
-
A,
|
|
1141
|
+
A = 1,
|
|
1142
1142
|
/**
|
|
1143
1143
|
* Red and green components. Note that
|
|
1144
1144
|
* this can only be used if the {@link Cogl.FeatureID.OGL_FEATURE_ID_TEXTURE_RG} feature
|
|
1145
1145
|
* is advertised.
|
|
1146
1146
|
*/
|
|
1147
|
-
RG,
|
|
1147
|
+
RG = 2,
|
|
1148
1148
|
/**
|
|
1149
1149
|
* Red, green and blue components
|
|
1150
1150
|
*/
|
|
1151
|
-
RGB,
|
|
1151
|
+
RGB = 3,
|
|
1152
1152
|
/**
|
|
1153
1153
|
* Red, green, blue and alpha components
|
|
1154
1154
|
*/
|
|
1155
|
-
RGBA,
|
|
1155
|
+
RGBA = 4,
|
|
1156
1156
|
/**
|
|
1157
1157
|
* Only a depth component
|
|
1158
1158
|
*/
|
|
1159
|
-
DEPTH,
|
|
1159
|
+
DEPTH = 5,
|
|
1160
1160
|
}
|
|
1161
1161
|
|
|
1162
1162
|
|
|
@@ -1168,17 +1168,17 @@ export namespace Cogl {
|
|
|
1168
1168
|
/**
|
|
1169
1169
|
* Unsupported size
|
|
1170
1170
|
*/
|
|
1171
|
-
SIZE,
|
|
1171
|
+
SIZE = 0,
|
|
1172
1172
|
/**
|
|
1173
1173
|
* Unsupported format
|
|
1174
1174
|
*/
|
|
1175
|
-
FORMAT,
|
|
1176
|
-
BAD_PARAMETER,
|
|
1175
|
+
FORMAT = 1,
|
|
1176
|
+
BAD_PARAMETER = 2,
|
|
1177
1177
|
/**
|
|
1178
1178
|
* A primitive texture type that is
|
|
1179
1179
|
* unsupported by the driver was used
|
|
1180
1180
|
*/
|
|
1181
|
-
TYPE,
|
|
1181
|
+
TYPE = 3,
|
|
1182
1182
|
}
|
|
1183
1183
|
|
|
1184
1184
|
|
|
@@ -1197,31 +1197,31 @@ export namespace Cogl {
|
|
|
1197
1197
|
/**
|
|
1198
1198
|
* FIXME, equivalent to `GL_POINTS`
|
|
1199
1199
|
*/
|
|
1200
|
-
POINTS,
|
|
1200
|
+
POINTS = 0,
|
|
1201
1201
|
/**
|
|
1202
1202
|
* FIXME, equivalent to `GL_LINES`
|
|
1203
1203
|
*/
|
|
1204
|
-
LINES,
|
|
1204
|
+
LINES = 1,
|
|
1205
1205
|
/**
|
|
1206
1206
|
* FIXME, equivalent to `GL_LINE_LOOP`
|
|
1207
1207
|
*/
|
|
1208
|
-
LINE_LOOP,
|
|
1208
|
+
LINE_LOOP = 2,
|
|
1209
1209
|
/**
|
|
1210
1210
|
* FIXME, equivalent to `GL_LINE_STRIP`
|
|
1211
1211
|
*/
|
|
1212
|
-
LINE_STRIP,
|
|
1212
|
+
LINE_STRIP = 3,
|
|
1213
1213
|
/**
|
|
1214
1214
|
* FIXME, equivalent to `GL_TRIANGLES`
|
|
1215
1215
|
*/
|
|
1216
|
-
TRIANGLES,
|
|
1216
|
+
TRIANGLES = 4,
|
|
1217
1217
|
/**
|
|
1218
1218
|
* FIXME, equivalent to `GL_TRIANGLE_STRIP`
|
|
1219
1219
|
*/
|
|
1220
|
-
TRIANGLE_STRIP,
|
|
1220
|
+
TRIANGLE_STRIP = 5,
|
|
1221
1221
|
/**
|
|
1222
1222
|
* FIXME, equivalent to `GL_TRIANGLE_FAN`
|
|
1223
1223
|
*/
|
|
1224
|
-
TRIANGLE_FAN,
|
|
1224
|
+
TRIANGLE_FAN = 6,
|
|
1225
1225
|
}
|
|
1226
1226
|
|
|
1227
1227
|
|
|
@@ -1242,11 +1242,11 @@ export namespace Cogl {
|
|
|
1242
1242
|
/**
|
|
1243
1243
|
* Vertices are in a clockwise order
|
|
1244
1244
|
*/
|
|
1245
|
-
CLOCKWISE,
|
|
1245
|
+
CLOCKWISE = 0,
|
|
1246
1246
|
/**
|
|
1247
1247
|
* Vertices are in a counter-clockwise order
|
|
1248
1248
|
*/
|
|
1249
|
-
COUNTER_CLOCKWISE,
|
|
1249
|
+
COUNTER_CLOCKWISE = 1,
|
|
1250
1250
|
}
|
|
1251
1251
|
|
|
1252
1252
|
|
|
@@ -1261,16 +1261,16 @@ export namespace Cogl {
|
|
|
1261
1261
|
* @gir-type Enum
|
|
1262
1262
|
*/
|
|
1263
1263
|
enum WinsysFeature {
|
|
1264
|
-
VBLANK_COUNTER,
|
|
1265
|
-
VBLANK_WAIT,
|
|
1266
|
-
TEXTURE_FROM_PIXMAP,
|
|
1267
|
-
SWAP_BUFFERS_EVENT,
|
|
1268
|
-
SWAP_REGION,
|
|
1269
|
-
SWAP_REGION_THROTTLE,
|
|
1270
|
-
SWAP_REGION_SYNCHRONIZED,
|
|
1271
|
-
BUFFER_AGE,
|
|
1272
|
-
SYNC_AND_COMPLETE_EVENT,
|
|
1273
|
-
N_FEATURES,
|
|
1264
|
+
VBLANK_COUNTER = 0,
|
|
1265
|
+
VBLANK_WAIT = 1,
|
|
1266
|
+
TEXTURE_FROM_PIXMAP = 2,
|
|
1267
|
+
SWAP_BUFFERS_EVENT = 3,
|
|
1268
|
+
SWAP_REGION = 4,
|
|
1269
|
+
SWAP_REGION_THROTTLE = 5,
|
|
1270
|
+
SWAP_REGION_SYNCHRONIZED = 6,
|
|
1271
|
+
BUFFER_AGE = 7,
|
|
1272
|
+
SYNC_AND_COMPLETE_EVENT = 8,
|
|
1273
|
+
N_FEATURES = 9,
|
|
1274
1274
|
}
|
|
1275
1275
|
|
|
1276
1276
|
|
|
@@ -1285,41 +1285,63 @@ export namespace Cogl {
|
|
|
1285
1285
|
/**
|
|
1286
1286
|
* Implies no preference for which backend is used
|
|
1287
1287
|
*/
|
|
1288
|
-
ANY,
|
|
1288
|
+
ANY = 0,
|
|
1289
1289
|
/**
|
|
1290
1290
|
* Use the no-op stub backend
|
|
1291
1291
|
*/
|
|
1292
|
-
STUB,
|
|
1292
|
+
STUB = 1,
|
|
1293
1293
|
/**
|
|
1294
1294
|
* Use the GLX window system binding API
|
|
1295
1295
|
*/
|
|
1296
|
-
GLX,
|
|
1296
|
+
GLX = 2,
|
|
1297
1297
|
/**
|
|
1298
1298
|
* Use EGL with the X window system via XLib
|
|
1299
1299
|
*/
|
|
1300
|
-
EGL_XLIB,
|
|
1301
|
-
CUSTOM,
|
|
1300
|
+
EGL_XLIB = 3,
|
|
1301
|
+
CUSTOM = 4,
|
|
1302
1302
|
}
|
|
1303
1303
|
|
|
1304
1304
|
|
|
1305
|
+
/**
|
|
1306
|
+
* @default 64
|
|
1307
|
+
*/
|
|
1305
1308
|
const AFIRST_BIT: number;
|
|
1306
1309
|
|
|
1310
|
+
/**
|
|
1311
|
+
* @default 16
|
|
1312
|
+
*/
|
|
1307
1313
|
const A_BIT: number;
|
|
1308
1314
|
|
|
1315
|
+
/**
|
|
1316
|
+
* @default 32
|
|
1317
|
+
*/
|
|
1309
1318
|
const BGR_BIT: number;
|
|
1310
1319
|
|
|
1320
|
+
/**
|
|
1321
|
+
* @default 256
|
|
1322
|
+
*/
|
|
1311
1323
|
const DEPTH_BIT: number;
|
|
1312
1324
|
|
|
1313
1325
|
/**
|
|
1314
1326
|
* The maximum number of planes of a pixel format (see also
|
|
1315
1327
|
* `cogl_pixel_format_get_planes()`).
|
|
1328
|
+
* @default 4
|
|
1316
1329
|
*/
|
|
1317
1330
|
const PIXEL_FORMAT_MAX_PLANES: number;
|
|
1318
1331
|
|
|
1332
|
+
/**
|
|
1333
|
+
* @default 128
|
|
1334
|
+
*/
|
|
1319
1335
|
const PREMULT_BIT: number;
|
|
1320
1336
|
|
|
1337
|
+
/**
|
|
1338
|
+
* @default 512
|
|
1339
|
+
*/
|
|
1321
1340
|
const STENCIL_BIT: number;
|
|
1322
1341
|
|
|
1342
|
+
/**
|
|
1343
|
+
* @default 127
|
|
1344
|
+
*/
|
|
1323
1345
|
const TEXTURE_MAX_WASTE: number;
|
|
1324
1346
|
|
|
1325
1347
|
/**
|
|
@@ -1512,11 +1534,13 @@ export namespace Cogl {
|
|
|
1512
1534
|
|
|
1513
1535
|
/**
|
|
1514
1536
|
* @param fd
|
|
1537
|
+
* @throws GLib.Error
|
|
1515
1538
|
*/
|
|
1516
1539
|
function start_tracing_with_fd(fd: number): boolean;
|
|
1517
1540
|
|
|
1518
1541
|
/**
|
|
1519
1542
|
* @param filename
|
|
1543
|
+
* @throws GLib.Error
|
|
1520
1544
|
*/
|
|
1521
1545
|
function start_tracing_with_path(filename: string): boolean;
|
|
1522
1546
|
|
|
@@ -1565,8 +1589,8 @@ export namespace Cogl {
|
|
|
1565
1589
|
* @gir-type Flags
|
|
1566
1590
|
*/
|
|
1567
1591
|
enum AtlasFlags {
|
|
1568
|
-
CLEAR_TEXTURE,
|
|
1569
|
-
DISABLE_MIGRATION,
|
|
1592
|
+
CLEAR_TEXTURE = 1,
|
|
1593
|
+
DISABLE_MIGRATION = 2,
|
|
1570
1594
|
}
|
|
1571
1595
|
|
|
1572
1596
|
|
|
@@ -1585,16 +1609,16 @@ export namespace Cogl {
|
|
|
1585
1609
|
/**
|
|
1586
1610
|
* the buffer will be read
|
|
1587
1611
|
*/
|
|
1588
|
-
READ,
|
|
1612
|
+
READ = 1,
|
|
1589
1613
|
/**
|
|
1590
1614
|
* the buffer will written to
|
|
1591
1615
|
*/
|
|
1592
|
-
WRITE,
|
|
1616
|
+
WRITE = 2,
|
|
1593
1617
|
/**
|
|
1594
1618
|
* the buffer will be used for both reading and
|
|
1595
1619
|
* writing
|
|
1596
1620
|
*/
|
|
1597
|
-
READ_WRITE,
|
|
1621
|
+
READ_WRITE = 3,
|
|
1598
1622
|
}
|
|
1599
1623
|
|
|
1600
1624
|
|
|
@@ -1613,15 +1637,15 @@ export namespace Cogl {
|
|
|
1613
1637
|
/**
|
|
1614
1638
|
* Selects the primary color buffer
|
|
1615
1639
|
*/
|
|
1616
|
-
COLOR,
|
|
1640
|
+
COLOR = 1,
|
|
1617
1641
|
/**
|
|
1618
1642
|
* Selects the depth buffer
|
|
1619
1643
|
*/
|
|
1620
|
-
DEPTH,
|
|
1644
|
+
DEPTH = 2,
|
|
1621
1645
|
/**
|
|
1622
1646
|
* Selects the stencil buffer
|
|
1623
1647
|
*/
|
|
1624
|
-
STENCIL,
|
|
1648
|
+
STENCIL = 4,
|
|
1625
1649
|
}
|
|
1626
1650
|
|
|
1627
1651
|
|
|
@@ -1644,14 +1668,14 @@ export namespace Cogl {
|
|
|
1644
1668
|
* buffer, the entire contents of the buffer become undefined, even
|
|
1645
1669
|
* if only a subregion of the buffer is mapped.
|
|
1646
1670
|
*/
|
|
1647
|
-
DISCARD,
|
|
1671
|
+
DISCARD = 1,
|
|
1648
1672
|
/**
|
|
1649
1673
|
* Tells Cogl that you plan to
|
|
1650
1674
|
* replace all the contents of the mapped region. The contents of
|
|
1651
1675
|
* the region specified are undefined after this flag is used to
|
|
1652
1676
|
* map a buffer.
|
|
1653
1677
|
*/
|
|
1654
|
-
DISCARD_RANGE,
|
|
1678
|
+
DISCARD_RANGE = 2,
|
|
1655
1679
|
}
|
|
1656
1680
|
|
|
1657
1681
|
|
|
@@ -1659,9 +1683,9 @@ export namespace Cogl {
|
|
|
1659
1683
|
* @gir-type Flags
|
|
1660
1684
|
*/
|
|
1661
1685
|
enum DrmModifierFilter {
|
|
1662
|
-
NONE,
|
|
1663
|
-
SINGLE_PLANE,
|
|
1664
|
-
NOT_EXTERNAL_ONLY,
|
|
1686
|
+
NONE = 0,
|
|
1687
|
+
SINGLE_PLANE = 1,
|
|
1688
|
+
NOT_EXTERNAL_ONLY = 2,
|
|
1665
1689
|
}
|
|
1666
1690
|
|
|
1667
1691
|
|
|
@@ -1669,8 +1693,8 @@ export namespace Cogl {
|
|
|
1669
1693
|
* @gir-type Flags
|
|
1670
1694
|
*/
|
|
1671
1695
|
enum EglImageFlags {
|
|
1672
|
-
NONE,
|
|
1673
|
-
NO_GET_DATA,
|
|
1696
|
+
NONE = 0,
|
|
1697
|
+
NO_GET_DATA = 1,
|
|
1674
1698
|
}
|
|
1675
1699
|
|
|
1676
1700
|
|
|
@@ -1689,7 +1713,7 @@ export namespace Cogl {
|
|
|
1689
1713
|
/**
|
|
1690
1714
|
* Read from the color buffer
|
|
1691
1715
|
*/
|
|
1692
|
-
COLOR_BUFFER,
|
|
1716
|
+
COLOR_BUFFER = 1,
|
|
1693
1717
|
}
|
|
1694
1718
|
|
|
1695
1719
|
|
|
@@ -2174,6 +2198,7 @@ export namespace Cogl {
|
|
|
2174
2198
|
* @param access how the mapped buffer will be used by the application
|
|
2175
2199
|
* @param hints A mask of {@link Cogl.BufferMapHint}s that tell Cogl how the data will be modified once mapped.
|
|
2176
2200
|
* @returns A pointer to the mapped memory or `null` is the call fails
|
|
2201
|
+
* @throws GLib.Error
|
|
2177
2202
|
*/
|
|
2178
2203
|
map_range(offset: bigint | number, size: bigint | number, access: BufferAccess, hints: BufferMapHint): null;
|
|
2179
2204
|
|
|
@@ -2507,6 +2532,7 @@ export namespace Cogl {
|
|
|
2507
2532
|
* with a message. For simple applications that don't have any
|
|
2508
2533
|
* fallback options this behaviour may be fine.
|
|
2509
2534
|
* @returns Returns `true` if there was no error, else it returns `false` and returns an exception via `error`.
|
|
2535
|
+
* @throws GLib.Error
|
|
2510
2536
|
*/
|
|
2511
2537
|
setup(): boolean;
|
|
2512
2538
|
}
|
|
@@ -2742,6 +2768,7 @@ export namespace Cogl {
|
|
|
2742
2768
|
* program will abort with an error message if there is an error during
|
|
2743
2769
|
* automatic allocation.
|
|
2744
2770
|
* @returns `true` if there were no error allocating the framebuffer, else `false`.
|
|
2771
|
+
* @throws GLib.Error
|
|
2745
2772
|
*/
|
|
2746
2773
|
allocate(): boolean;
|
|
2747
2774
|
|
|
@@ -2792,6 +2819,7 @@ export namespace Cogl {
|
|
|
2792
2819
|
* @param dst_y Destination y position
|
|
2793
2820
|
* @param width Width of region to copy
|
|
2794
2821
|
* @param height Height of region to copy
|
|
2822
|
+
* @throws GLib.Error
|
|
2795
2823
|
*/
|
|
2796
2824
|
blit(dst: Framebuffer, src_x: number, src_y: number, dst_x: number, dst_y: number, width: number, height: number): boolean;
|
|
2797
2825
|
|
|
@@ -4019,6 +4047,7 @@ export namespace Cogl {
|
|
|
4019
4047
|
* @param scanout
|
|
4020
4048
|
* @param info
|
|
4021
4049
|
* @param user_data
|
|
4050
|
+
* @throws GLib.Error
|
|
4022
4051
|
*/
|
|
4023
4052
|
direct_scanout(scanout: Scanout, info: FrameInfo, user_data: null): boolean;
|
|
4024
4053
|
|
|
@@ -4468,6 +4497,7 @@ export namespace Cogl {
|
|
|
4468
4497
|
* is in premultiplied form.
|
|
4469
4498
|
* @param blend_string A Cogl blend string describing the desired blend function.
|
|
4470
4499
|
* @returns `true` if the blend string was successfully parsed, and the described blending is supported by the underlying driver/hardware. If there was an error, `false` is returned and `error` is set accordingly (if present).
|
|
4500
|
+
* @throws GLib.Error
|
|
4471
4501
|
*/
|
|
4472
4502
|
set_blend(blend_string: string): boolean;
|
|
4473
4503
|
|
|
@@ -4518,6 +4548,7 @@ export namespace Cogl {
|
|
|
4518
4548
|
* it is possible for this function to fail and report an `error`.
|
|
4519
4549
|
* @param state A {@link Cogl.DepthState} struct
|
|
4520
4550
|
* @returns `true` if the GPU supports all the given `state` else `false` and returns an `error`.
|
|
4551
|
+
* @throws GLib.Error
|
|
4521
4552
|
*/
|
|
4522
4553
|
set_depth_state(state: DepthState): boolean;
|
|
4523
4554
|
|
|
@@ -4588,6 +4619,7 @@ export namespace Cogl {
|
|
|
4588
4619
|
* @param layer_index Specifies the layer you want define a combine function for
|
|
4589
4620
|
* @param blend_string A Cogl blend string describing the desired texture combine function.
|
|
4590
4621
|
* @returns `true` if the blend string was successfully parsed, and the described texture combining is supported by the underlying driver and or hardware. On failure, `false` is returned and `error` is set
|
|
4622
|
+
* @throws GLib.Error
|
|
4591
4623
|
*/
|
|
4592
4624
|
set_layer_combine(layer_index: number, blend_string: string): boolean;
|
|
4593
4625
|
|
|
@@ -4650,6 +4682,7 @@ export namespace Cogl {
|
|
|
4650
4682
|
* @param layer_index the layer number to change.
|
|
4651
4683
|
* @param enable whether to enable point sprite coord generation.
|
|
4652
4684
|
* @returns `true` if the function succeeds, `false` otherwise.
|
|
4685
|
+
* @throws GLib.Error
|
|
4653
4686
|
*/
|
|
4654
4687
|
set_layer_point_sprite_coords_enabled(layer_index: number, enable: boolean): boolean;
|
|
4655
4688
|
|
|
@@ -4696,6 +4729,7 @@ export namespace Cogl {
|
|
|
4696
4729
|
* undefined.
|
|
4697
4730
|
* @param enable whether to enable per-vertex point size
|
|
4698
4731
|
* @returns `true` if the change succeeded or `false` otherwise
|
|
4732
|
+
* @throws GLib.Error
|
|
4699
4733
|
*/
|
|
4700
4734
|
set_per_vertex_point_size(enable: boolean): boolean;
|
|
4701
4735
|
|
|
@@ -5074,6 +5108,7 @@ export namespace Cogl {
|
|
|
5074
5108
|
* `main()` function. It is allowed to use a program with only a vertex
|
|
5075
5109
|
* shader or only a fragment shader.
|
|
5076
5110
|
* @param shader a {@link Cogl.Shader} for a vertex of fragment shader.
|
|
5111
|
+
* @deprecated since 1.16: Use {@link Cogl.Snippet} api
|
|
5077
5112
|
*/
|
|
5078
5113
|
attach_shader(shader: Shader): void;
|
|
5079
5114
|
|
|
@@ -5083,6 +5118,7 @@ export namespace Cogl {
|
|
|
5083
5118
|
* shader object and is possible to modify as an external parameter.
|
|
5084
5119
|
* @param uniform_name the name of a uniform.
|
|
5085
5120
|
* @returns the offset of a uniform in a specified program.
|
|
5121
|
+
* @deprecated since 1.16: Use {@link Cogl.Snippet} api instead
|
|
5086
5122
|
*/
|
|
5087
5123
|
get_uniform_location(uniform_name: string): number;
|
|
5088
5124
|
|
|
@@ -5090,6 +5126,7 @@ export namespace Cogl {
|
|
|
5090
5126
|
* Links a program making it ready for use. Note that calling this
|
|
5091
5127
|
* function is optional. If it is not called the program will
|
|
5092
5128
|
* automatically be linked the first time it is used.
|
|
5129
|
+
* @deprecated since 1.16: Use {@link Cogl.Snippet} api
|
|
5093
5130
|
*/
|
|
5094
5131
|
link(): void;
|
|
5095
5132
|
|
|
@@ -5098,6 +5135,7 @@ export namespace Cogl {
|
|
|
5098
5135
|
* `program`.
|
|
5099
5136
|
* @param uniform_location the uniform location retrieved from {@link Program.get_uniform_location}.
|
|
5100
5137
|
* @param value the new value of the uniform.
|
|
5138
|
+
* @deprecated since 1.16: Use {@link Cogl.Snippet} api instead
|
|
5101
5139
|
*/
|
|
5102
5140
|
set_uniform_1f(uniform_location: number, value: number): void;
|
|
5103
5141
|
|
|
@@ -5106,6 +5144,7 @@ export namespace Cogl {
|
|
|
5106
5144
|
* `program`.
|
|
5107
5145
|
* @param uniform_location the uniform location retrieved from {@link Program.get_uniform_location}.
|
|
5108
5146
|
* @param value the new value of the uniform.
|
|
5147
|
+
* @deprecated since 1.16: Use {@link Cogl.Snippet} api instead
|
|
5109
5148
|
*/
|
|
5110
5149
|
set_uniform_1i(uniform_location: number, value: number): void;
|
|
5111
5150
|
|
|
@@ -5115,6 +5154,7 @@ export namespace Cogl {
|
|
|
5115
5154
|
* @param uniform_location the uniform location retrieved from {@link Program.get_uniform_location}.
|
|
5116
5155
|
* @param n_components The number of components for the uniform. For example with glsl you'd use 3 for a vec3 or 4 for a vec4.
|
|
5117
5156
|
* @param value the new value of the uniform[s].
|
|
5157
|
+
* @deprecated since 1.16: Use {@link Cogl.Snippet} api instead
|
|
5118
5158
|
*/
|
|
5119
5159
|
set_uniform_float(uniform_location: number, n_components: number, value: number[]): void;
|
|
5120
5160
|
|
|
@@ -5124,6 +5164,7 @@ export namespace Cogl {
|
|
|
5124
5164
|
* @param uniform_location the uniform location retrieved from {@link Program.get_uniform_location}.
|
|
5125
5165
|
* @param n_components The number of components for the uniform. For example with glsl you'd use 3 for a vec3 or 4 for a vec4.
|
|
5126
5166
|
* @param value the new value of the uniform[s].
|
|
5167
|
+
* @deprecated since 1.16: Use {@link Cogl.Snippet} api instead
|
|
5127
5168
|
*/
|
|
5128
5169
|
set_uniform_int(uniform_location: number, n_components: number, value: number[]): void;
|
|
5129
5170
|
|
|
@@ -5134,6 +5175,7 @@ export namespace Cogl {
|
|
|
5134
5175
|
* @param dimensions The dimensions of the matrix. So for for example pass 2 for a 2x2 matrix or 3 for 3x3.
|
|
5135
5176
|
* @param transpose Whether to transpose the matrix when setting the uniform.
|
|
5136
5177
|
* @param value the new value of the uniform.
|
|
5178
|
+
* @deprecated since 1.16: Use {@link Cogl.Snippet} api instead
|
|
5137
5179
|
*/
|
|
5138
5180
|
set_uniform_matrix(uniform_location: number, dimensions: number, transpose: boolean, value: number[]): void;
|
|
5139
5181
|
}
|
|
@@ -5212,6 +5254,7 @@ export namespace Cogl {
|
|
|
5212
5254
|
* any given constraint criteria can be satisfied and that a
|
|
5213
5255
|
* usable driver and window system backend can be found.
|
|
5214
5256
|
* @returns `true` if there was no error while connecting the given `renderer`. `false` if there was an error.
|
|
5257
|
+
* @throws GLib.Error
|
|
5215
5258
|
*/
|
|
5216
5259
|
connect(): boolean;
|
|
5217
5260
|
|
|
@@ -5283,7 +5326,7 @@ export namespace Cogl {
|
|
|
5283
5326
|
* @signal
|
|
5284
5327
|
* @run-last
|
|
5285
5328
|
*/
|
|
5286
|
-
"scanout-failed": (
|
|
5329
|
+
"scanout-failed": (object: Onscreen) => void;
|
|
5287
5330
|
}
|
|
5288
5331
|
|
|
5289
5332
|
// Constructor properties interface
|
|
@@ -5330,6 +5373,7 @@ export namespace Cogl {
|
|
|
5330
5373
|
* @param framebuffer
|
|
5331
5374
|
* @param x
|
|
5332
5375
|
* @param y
|
|
5376
|
+
* @throws GLib.Error
|
|
5333
5377
|
*/
|
|
5334
5378
|
blit_to_framebuffer(framebuffer: Framebuffer, x: number, y: number): boolean;
|
|
5335
5379
|
|
|
@@ -5484,6 +5528,7 @@ export namespace Cogl {
|
|
|
5484
5528
|
/**
|
|
5485
5529
|
* Retrieves the type of a shader
|
|
5486
5530
|
* @returns {@link Cogl.ShaderType.VERTEX} if the shader is a vertex processor or {@link Cogl.ShaderType.FRAGMENT} if the shader is a fragment processor
|
|
5531
|
+
* @deprecated since 1.16: Use {@link Cogl.Snippet} api
|
|
5487
5532
|
*/
|
|
5488
5533
|
get_shader_type(): ShaderType;
|
|
5489
5534
|
|
|
@@ -5491,6 +5536,7 @@ export namespace Cogl {
|
|
|
5491
5536
|
* Replaces the current source associated with a shader with a new
|
|
5492
5537
|
* one.
|
|
5493
5538
|
* @param source Shader source.
|
|
5539
|
+
* @deprecated since 1.16: Use {@link Cogl.Snippet} api
|
|
5494
5540
|
*/
|
|
5495
5541
|
source(source: string): void;
|
|
5496
5542
|
}
|
|
@@ -5965,6 +6011,7 @@ export namespace Cogl {
|
|
|
5965
6011
|
* the texture, or if the texture is attached to a {@link Cogl.Offscreen}
|
|
5966
6012
|
* framebuffer and rendered too.
|
|
5967
6013
|
* @returns `true` if the texture was successfully allocated, otherwise `false` and `error` will be updated if it wasn't `null`.
|
|
6014
|
+
* @throws GLib.Error
|
|
5968
6015
|
*/
|
|
5969
6016
|
allocate(): boolean;
|
|
5970
6017
|
|
|
@@ -6151,6 +6198,7 @@ export namespace Cogl {
|
|
|
6151
6198
|
* @param data the source data, pointing to the first top-left pixel to set
|
|
6152
6199
|
* @param level The mipmap level to update (Normally 0 for the largest, base texture)
|
|
6153
6200
|
* @returns `true` if the data upload was successful, and `false` otherwise
|
|
6201
|
+
* @throws GLib.Error
|
|
6154
6202
|
*/
|
|
6155
6203
|
set_data(format: PixelFormat, rowstride: number, data: Uint8Array | string, level: number): boolean;
|
|
6156
6204
|
|
|
@@ -6734,15 +6782,25 @@ export namespace Cogl {
|
|
|
6734
6782
|
|
|
6735
6783
|
get_width(): number;
|
|
6736
6784
|
|
|
6785
|
+
/**
|
|
6786
|
+
* @throws GLib.Error
|
|
6787
|
+
*/
|
|
6737
6788
|
mmap(): null;
|
|
6738
6789
|
|
|
6739
6790
|
/**
|
|
6740
6791
|
* @param data
|
|
6792
|
+
* @throws GLib.Error
|
|
6741
6793
|
*/
|
|
6742
6794
|
munmap(data: null): boolean;
|
|
6743
6795
|
|
|
6796
|
+
/**
|
|
6797
|
+
* @throws GLib.Error
|
|
6798
|
+
*/
|
|
6744
6799
|
sync_read_end(): boolean;
|
|
6745
6800
|
|
|
6801
|
+
/**
|
|
6802
|
+
* @throws GLib.Error
|
|
6803
|
+
*/
|
|
6746
6804
|
sync_read_start(): boolean;
|
|
6747
6805
|
}
|
|
6748
6806
|
|