@girs/cogl-14 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-14.d.ts +274 -215
- package/package.json +8 -8
package/cogl-14.d.ts
CHANGED
|
@@ -33,25 +33,25 @@ export namespace Cogl {
|
|
|
33
33
|
/**
|
|
34
34
|
* Data is the same size of a byte
|
|
35
35
|
*/
|
|
36
|
-
BYTE,
|
|
36
|
+
BYTE = 5120,
|
|
37
37
|
/**
|
|
38
38
|
* Data is the same size of an
|
|
39
39
|
* unsigned byte
|
|
40
40
|
*/
|
|
41
|
-
UNSIGNED_BYTE,
|
|
41
|
+
UNSIGNED_BYTE = 5121,
|
|
42
42
|
/**
|
|
43
43
|
* Data is the same size of a short integer
|
|
44
44
|
*/
|
|
45
|
-
SHORT,
|
|
45
|
+
SHORT = 5122,
|
|
46
46
|
/**
|
|
47
47
|
* Data is the same size of
|
|
48
48
|
* an unsigned short integer
|
|
49
49
|
*/
|
|
50
|
-
UNSIGNED_SHORT,
|
|
50
|
+
UNSIGNED_SHORT = 5123,
|
|
51
51
|
/**
|
|
52
52
|
* Data is the same size of a float
|
|
53
53
|
*/
|
|
54
|
-
FLOAT,
|
|
54
|
+
FLOAT = 5126,
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
|
|
@@ -65,15 +65,15 @@ export namespace Cogl {
|
|
|
65
65
|
* Generic failure code, something went
|
|
66
66
|
* wrong.
|
|
67
67
|
*/
|
|
68
|
-
FAILED,
|
|
68
|
+
FAILED = 0,
|
|
69
69
|
/**
|
|
70
70
|
* Unknown image type.
|
|
71
71
|
*/
|
|
72
|
-
UNKNOWN_TYPE,
|
|
72
|
+
UNKNOWN_TYPE = 1,
|
|
73
73
|
/**
|
|
74
74
|
* An image file was broken somehow.
|
|
75
75
|
*/
|
|
76
|
-
CORRUPT_IMAGE,
|
|
76
|
+
CORRUPT_IMAGE = 2,
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
|
|
@@ -85,20 +85,20 @@ export namespace Cogl {
|
|
|
85
85
|
/**
|
|
86
86
|
* Generic parse error
|
|
87
87
|
*/
|
|
88
|
-
PARSE_ERROR,
|
|
88
|
+
PARSE_ERROR = 0,
|
|
89
89
|
/**
|
|
90
90
|
* Argument parse error
|
|
91
91
|
*/
|
|
92
|
-
ARGUMENT_PARSE_ERROR,
|
|
92
|
+
ARGUMENT_PARSE_ERROR = 1,
|
|
93
93
|
/**
|
|
94
94
|
* Internal parser error
|
|
95
95
|
*/
|
|
96
|
-
INVALID_ERROR,
|
|
96
|
+
INVALID_ERROR = 2,
|
|
97
97
|
/**
|
|
98
98
|
* Blend string not
|
|
99
99
|
* supported by the GPU
|
|
100
100
|
*/
|
|
101
|
-
GPU_UNSUPPORTED_ERROR,
|
|
101
|
+
GPU_UNSUPPORTED_ERROR = 3,
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
|
|
@@ -113,11 +113,11 @@ export namespace Cogl {
|
|
|
113
113
|
* @gir-type Enum
|
|
114
114
|
*/
|
|
115
115
|
enum BufferBindTarget {
|
|
116
|
-
PIXEL_PACK,
|
|
117
|
-
PIXEL_UNPACK,
|
|
118
|
-
ATTRIBUTE_BUFFER,
|
|
119
|
-
INDEX_BUFFER,
|
|
120
|
-
COUNT,
|
|
116
|
+
PIXEL_PACK = 0,
|
|
117
|
+
PIXEL_UNPACK = 1,
|
|
118
|
+
ATTRIBUTE_BUFFER = 2,
|
|
119
|
+
INDEX_BUFFER = 3,
|
|
120
|
+
COUNT = 4,
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
|
|
@@ -138,7 +138,7 @@ export namespace Cogl {
|
|
|
138
138
|
* because the feature isn't supported or because a system
|
|
139
139
|
* limitation was hit.
|
|
140
140
|
*/
|
|
141
|
-
MAP,
|
|
141
|
+
MAP = 0,
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
|
|
@@ -158,16 +158,16 @@ export namespace Cogl {
|
|
|
158
158
|
/**
|
|
159
159
|
* the buffer will not change over time
|
|
160
160
|
*/
|
|
161
|
-
STATIC,
|
|
161
|
+
STATIC = 0,
|
|
162
162
|
/**
|
|
163
163
|
* the buffer will change from time to time
|
|
164
164
|
*/
|
|
165
|
-
DYNAMIC,
|
|
165
|
+
DYNAMIC = 1,
|
|
166
166
|
/**
|
|
167
167
|
* the buffer will be used once or a couple of
|
|
168
168
|
* times
|
|
169
169
|
*/
|
|
170
|
-
STREAM,
|
|
170
|
+
STREAM = 2,
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
|
|
@@ -185,41 +185,41 @@ export namespace Cogl {
|
|
|
185
185
|
/**
|
|
186
186
|
* Never passes.
|
|
187
187
|
*/
|
|
188
|
-
NEVER,
|
|
188
|
+
NEVER = 512,
|
|
189
189
|
/**
|
|
190
190
|
* Passes if the fragment's depth
|
|
191
191
|
* value is less than the value currently in the depth buffer.
|
|
192
192
|
*/
|
|
193
|
-
LESS,
|
|
193
|
+
LESS = 513,
|
|
194
194
|
/**
|
|
195
195
|
* Passes if the fragment's depth
|
|
196
196
|
* value is equal to the value currently in the depth buffer.
|
|
197
197
|
*/
|
|
198
|
-
EQUAL,
|
|
198
|
+
EQUAL = 514,
|
|
199
199
|
/**
|
|
200
200
|
* Passes if the fragment's depth
|
|
201
201
|
* value is less or equal to the value currently in the depth buffer.
|
|
202
202
|
*/
|
|
203
|
-
LEQUAL,
|
|
203
|
+
LEQUAL = 515,
|
|
204
204
|
/**
|
|
205
205
|
* Passes if the fragment's depth
|
|
206
206
|
* value is greater than the value currently in the depth buffer.
|
|
207
207
|
*/
|
|
208
|
-
GREATER,
|
|
208
|
+
GREATER = 516,
|
|
209
209
|
/**
|
|
210
210
|
* Passes if the fragment's depth
|
|
211
211
|
* value is not equal to the value currently in the depth buffer.
|
|
212
212
|
*/
|
|
213
|
-
NOTEQUAL,
|
|
213
|
+
NOTEQUAL = 517,
|
|
214
214
|
/**
|
|
215
215
|
* Passes if the fragment's depth
|
|
216
216
|
* value greater than or equal to the value currently in the depth buffer.
|
|
217
217
|
*/
|
|
218
|
-
GEQUAL,
|
|
218
|
+
GEQUAL = 518,
|
|
219
219
|
/**
|
|
220
220
|
* Always passes.
|
|
221
221
|
*/
|
|
222
|
-
ALWAYS,
|
|
222
|
+
ALWAYS = 519,
|
|
223
223
|
}
|
|
224
224
|
|
|
225
225
|
|
|
@@ -232,19 +232,19 @@ export namespace Cogl {
|
|
|
232
232
|
/**
|
|
233
233
|
* Implies no preference for which driver is used
|
|
234
234
|
*/
|
|
235
|
-
ANY,
|
|
235
|
+
ANY = 0,
|
|
236
236
|
/**
|
|
237
237
|
* A No-Op driver.
|
|
238
238
|
*/
|
|
239
|
-
NOP,
|
|
239
|
+
NOP = 1,
|
|
240
240
|
/**
|
|
241
241
|
* An OpenGL driver using the core GL 3.1 profile
|
|
242
242
|
*/
|
|
243
|
-
GL3,
|
|
243
|
+
GL3 = 2,
|
|
244
244
|
/**
|
|
245
245
|
* An OpenGL ES 2.0 driver.
|
|
246
246
|
*/
|
|
247
|
-
GLES2,
|
|
247
|
+
GLES2 = 3,
|
|
248
248
|
}
|
|
249
249
|
|
|
250
250
|
|
|
@@ -260,49 +260,49 @@ export namespace Cogl {
|
|
|
260
260
|
* {@link Cogl.IndicesType.INT} is supported in
|
|
261
261
|
* `cogl_indices_new()`.
|
|
262
262
|
*/
|
|
263
|
-
OGL_FEATURE_ID_UNSIGNED_INT_INDICES,
|
|
263
|
+
OGL_FEATURE_ID_UNSIGNED_INT_INDICES = 0,
|
|
264
264
|
/**
|
|
265
265
|
* Whether `cogl_buffer_map()` is
|
|
266
266
|
* supported with CoglBufferAccess including read support.
|
|
267
267
|
*/
|
|
268
|
-
OGL_FEATURE_ID_MAP_BUFFER_FOR_READ,
|
|
268
|
+
OGL_FEATURE_ID_MAP_BUFFER_FOR_READ = 1,
|
|
269
269
|
/**
|
|
270
270
|
* Whether `cogl_buffer_map()` is
|
|
271
271
|
* supported with CoglBufferAccess including write support.
|
|
272
272
|
*/
|
|
273
|
-
OGL_FEATURE_ID_MAP_BUFFER_FOR_WRITE,
|
|
274
|
-
OGL_FEATURE_ID_FENCE,
|
|
273
|
+
OGL_FEATURE_ID_MAP_BUFFER_FOR_WRITE = 2,
|
|
274
|
+
OGL_FEATURE_ID_FENCE = 3,
|
|
275
275
|
/**
|
|
276
276
|
* Support for
|
|
277
277
|
* {@link Cogl.TextureComponents.RG} as the internal components of a
|
|
278
278
|
* texture.
|
|
279
279
|
*/
|
|
280
|
-
OGL_FEATURE_ID_TEXTURE_RG,
|
|
280
|
+
OGL_FEATURE_ID_TEXTURE_RG = 4,
|
|
281
281
|
/**
|
|
282
282
|
* Support for 10bpc RGBA formats
|
|
283
283
|
*/
|
|
284
|
-
OGL_FEATURE_ID_TEXTURE_RGBA1010102,
|
|
284
|
+
OGL_FEATURE_ID_TEXTURE_RGBA1010102 = 5,
|
|
285
285
|
/**
|
|
286
286
|
* Support for half float formats
|
|
287
287
|
*/
|
|
288
|
-
OGL_FEATURE_ID_TEXTURE_HALF_FLOAT,
|
|
288
|
+
OGL_FEATURE_ID_TEXTURE_HALF_FLOAT = 6,
|
|
289
289
|
/**
|
|
290
290
|
* Support for 16bpc formats
|
|
291
291
|
*/
|
|
292
|
-
OGL_FEATURE_ID_TEXTURE_NORM16,
|
|
292
|
+
OGL_FEATURE_ID_TEXTURE_NORM16 = 7,
|
|
293
293
|
/**
|
|
294
294
|
* Available if the age of {@link Cogl.Onscreen} back
|
|
295
295
|
* buffers are tracked and so `cogl_onscreen_get_buffer_age()` can be
|
|
296
296
|
* expected to return age values other than 0.
|
|
297
297
|
*/
|
|
298
|
-
OGL_FEATURE_ID_BUFFER_AGE,
|
|
299
|
-
OGL_FEATURE_ID_TEXTURE_EGL_IMAGE_EXTERNAL,
|
|
298
|
+
OGL_FEATURE_ID_BUFFER_AGE = 8,
|
|
299
|
+
OGL_FEATURE_ID_TEXTURE_EGL_IMAGE_EXTERNAL = 9,
|
|
300
300
|
/**
|
|
301
301
|
* Whether blitting using
|
|
302
302
|
* `cogl_blit_framebuffer()` is supported.
|
|
303
303
|
*/
|
|
304
|
-
OGL_FEATURE_ID_BLIT_FRAMEBUFFER,
|
|
305
|
-
OGL_FEATURE_ID_TIMESTAMP_QUERY,
|
|
304
|
+
OGL_FEATURE_ID_BLIT_FRAMEBUFFER = 10,
|
|
305
|
+
OGL_FEATURE_ID_TIMESTAMP_QUERY = 11,
|
|
306
306
|
}
|
|
307
307
|
|
|
308
308
|
|
|
@@ -315,11 +315,11 @@ export namespace Cogl {
|
|
|
315
315
|
* The event was not handled, continues the
|
|
316
316
|
* processing
|
|
317
317
|
*/
|
|
318
|
-
CONTINUE,
|
|
318
|
+
CONTINUE = 0,
|
|
319
319
|
/**
|
|
320
320
|
* Remove the event, stops the processing
|
|
321
321
|
*/
|
|
322
|
-
REMOVE,
|
|
322
|
+
REMOVE = 1,
|
|
323
323
|
}
|
|
324
324
|
|
|
325
325
|
|
|
@@ -346,7 +346,7 @@ export namespace Cogl {
|
|
|
346
346
|
* acknowledged a frame and is ready for a
|
|
347
347
|
* new frame to be created.
|
|
348
348
|
*/
|
|
349
|
-
SYNC,
|
|
349
|
+
SYNC = 1,
|
|
350
350
|
/**
|
|
351
351
|
* Notifies that a frame has ended. This
|
|
352
352
|
* is a good time for applications to
|
|
@@ -356,7 +356,7 @@ export namespace Cogl {
|
|
|
356
356
|
* events should be expected after a
|
|
357
357
|
* `COGL_FRAME_EVENT_COMPLETE` event.
|
|
358
358
|
*/
|
|
359
|
-
COMPLETE,
|
|
359
|
+
COMPLETE = 2,
|
|
360
360
|
}
|
|
361
361
|
|
|
362
362
|
|
|
@@ -364,7 +364,7 @@ export namespace Cogl {
|
|
|
364
364
|
* @gir-type Enum
|
|
365
365
|
*/
|
|
366
366
|
enum FramebufferError {
|
|
367
|
-
FRAMEBUFFER_ERROR_ALLOCATE,
|
|
367
|
+
FRAMEBUFFER_ERROR_ALLOCATE = 0,
|
|
368
368
|
}
|
|
369
369
|
|
|
370
370
|
|
|
@@ -376,11 +376,11 @@ export namespace Cogl {
|
|
|
376
376
|
* @gir-type Enum
|
|
377
377
|
*/
|
|
378
378
|
enum GraphicsResetStatus {
|
|
379
|
-
NO_ERROR,
|
|
380
|
-
GUILTY_CONTEXT_RESET,
|
|
381
|
-
INNOCENT_CONTEXT_RESET,
|
|
382
|
-
UNKNOWN_CONTEXT_RESET,
|
|
383
|
-
PURGED_CONTEXT_RESET,
|
|
379
|
+
NO_ERROR = 0,
|
|
380
|
+
GUILTY_CONTEXT_RESET = 1,
|
|
381
|
+
INNOCENT_CONTEXT_RESET = 2,
|
|
382
|
+
UNKNOWN_CONTEXT_RESET = 3,
|
|
383
|
+
PURGED_CONTEXT_RESET = 4,
|
|
384
384
|
}
|
|
385
385
|
|
|
386
386
|
|
|
@@ -400,15 +400,15 @@ export namespace Cogl {
|
|
|
400
400
|
/**
|
|
401
401
|
* Your indices are unsigned bytes
|
|
402
402
|
*/
|
|
403
|
-
BYTE,
|
|
403
|
+
BYTE = 0,
|
|
404
404
|
/**
|
|
405
405
|
* Your indices are unsigned shorts
|
|
406
406
|
*/
|
|
407
|
-
SHORT,
|
|
407
|
+
SHORT = 1,
|
|
408
408
|
/**
|
|
409
409
|
* Your indices are unsigned ints
|
|
410
410
|
*/
|
|
411
|
-
INT,
|
|
411
|
+
INT = 2,
|
|
412
412
|
}
|
|
413
413
|
|
|
414
414
|
|
|
@@ -423,41 +423,41 @@ export namespace Cogl {
|
|
|
423
423
|
/**
|
|
424
424
|
* Never let the fragment through.
|
|
425
425
|
*/
|
|
426
|
-
NEVER,
|
|
426
|
+
NEVER = 512,
|
|
427
427
|
/**
|
|
428
428
|
* Let the fragment through if the incoming
|
|
429
429
|
* alpha value is less than the reference alpha value
|
|
430
430
|
*/
|
|
431
|
-
LESS,
|
|
431
|
+
LESS = 513,
|
|
432
432
|
/**
|
|
433
433
|
* Let the fragment through if the incoming
|
|
434
434
|
* alpha value equals the reference alpha value
|
|
435
435
|
*/
|
|
436
|
-
EQUAL,
|
|
436
|
+
EQUAL = 514,
|
|
437
437
|
/**
|
|
438
438
|
* Let the fragment through if the incoming
|
|
439
439
|
* alpha value is less than or equal to the reference alpha value
|
|
440
440
|
*/
|
|
441
|
-
LEQUAL,
|
|
441
|
+
LEQUAL = 515,
|
|
442
442
|
/**
|
|
443
443
|
* Let the fragment through if the incoming
|
|
444
444
|
* alpha value is greater than the reference alpha value
|
|
445
445
|
*/
|
|
446
|
-
GREATER,
|
|
446
|
+
GREATER = 516,
|
|
447
447
|
/**
|
|
448
448
|
* Let the fragment through if the incoming
|
|
449
449
|
* alpha value does not equal the reference alpha value
|
|
450
450
|
*/
|
|
451
|
-
NOTEQUAL,
|
|
451
|
+
NOTEQUAL = 517,
|
|
452
452
|
/**
|
|
453
453
|
* Let the fragment through if the incoming
|
|
454
454
|
* alpha value is greater than or equal to the reference alpha value.
|
|
455
455
|
*/
|
|
456
|
-
GEQUAL,
|
|
456
|
+
GEQUAL = 518,
|
|
457
457
|
/**
|
|
458
458
|
* Always let the fragment through.
|
|
459
459
|
*/
|
|
460
|
-
ALWAYS,
|
|
460
|
+
ALWAYS = 519,
|
|
461
461
|
}
|
|
462
462
|
|
|
463
463
|
|
|
@@ -471,19 +471,19 @@ export namespace Cogl {
|
|
|
471
471
|
* Neither face will be
|
|
472
472
|
* culled. This is the default.
|
|
473
473
|
*/
|
|
474
|
-
NONE,
|
|
474
|
+
NONE = 0,
|
|
475
475
|
/**
|
|
476
476
|
* Front faces will be culled.
|
|
477
477
|
*/
|
|
478
|
-
FRONT,
|
|
478
|
+
FRONT = 1,
|
|
479
479
|
/**
|
|
480
480
|
* Back faces will be culled.
|
|
481
481
|
*/
|
|
482
|
-
BACK,
|
|
482
|
+
BACK = 2,
|
|
483
483
|
/**
|
|
484
484
|
* All faces will be culled.
|
|
485
485
|
*/
|
|
486
|
-
BOTH,
|
|
486
|
+
BOTH = 3,
|
|
487
487
|
}
|
|
488
488
|
|
|
489
489
|
|
|
@@ -500,38 +500,38 @@ export namespace Cogl {
|
|
|
500
500
|
* Measuring in manhatten distance from the,
|
|
501
501
|
* current pixel center, use the nearest texture texel
|
|
502
502
|
*/
|
|
503
|
-
NEAREST,
|
|
503
|
+
NEAREST = 9728,
|
|
504
504
|
/**
|
|
505
505
|
* Use the weighted average of the 4 texels
|
|
506
506
|
* nearest the current pixel center
|
|
507
507
|
*/
|
|
508
|
-
LINEAR,
|
|
508
|
+
LINEAR = 9729,
|
|
509
509
|
/**
|
|
510
510
|
* Select the mimap level whose
|
|
511
511
|
* texel size most closely matches the current pixel, and use the
|
|
512
512
|
* {@link Cogl.PipelineFilter.NEAREST} criterion
|
|
513
513
|
*/
|
|
514
|
-
NEAREST_MIPMAP_NEAREST,
|
|
514
|
+
NEAREST_MIPMAP_NEAREST = 9984,
|
|
515
515
|
/**
|
|
516
516
|
* Select the mimap level whose
|
|
517
517
|
* texel size most closely matches the current pixel, and use the
|
|
518
518
|
* {@link Cogl.PipelineFilter.LINEAR} criterion
|
|
519
519
|
*/
|
|
520
|
-
LINEAR_MIPMAP_NEAREST,
|
|
520
|
+
LINEAR_MIPMAP_NEAREST = 9985,
|
|
521
521
|
/**
|
|
522
522
|
* Select the two mimap levels
|
|
523
523
|
* whose texel size most closely matches the current pixel, use
|
|
524
524
|
* the {@link Cogl.PipelineFilter.NEAREST} criterion on each one and take
|
|
525
525
|
* their weighted average
|
|
526
526
|
*/
|
|
527
|
-
NEAREST_MIPMAP_LINEAR,
|
|
527
|
+
NEAREST_MIPMAP_LINEAR = 9986,
|
|
528
528
|
/**
|
|
529
529
|
* Select the two mimap levels
|
|
530
530
|
* whose texel size most closely matches the current pixel, use
|
|
531
531
|
* the {@link Cogl.PipelineFilter.LINEAR} criterion on each one and take
|
|
532
532
|
* their weighted average
|
|
533
533
|
*/
|
|
534
|
-
LINEAR_MIPMAP_LINEAR,
|
|
534
|
+
LINEAR_MIPMAP_LINEAR = 9987,
|
|
535
535
|
}
|
|
536
536
|
|
|
537
537
|
|
|
@@ -551,15 +551,15 @@ export namespace Cogl {
|
|
|
551
551
|
* The texture will be repeated. This
|
|
552
552
|
* is useful for example to draw a tiled background.
|
|
553
553
|
*/
|
|
554
|
-
REPEAT,
|
|
555
|
-
MIRRORED_REPEAT,
|
|
554
|
+
REPEAT = 10497,
|
|
555
|
+
MIRRORED_REPEAT = 33648,
|
|
556
556
|
/**
|
|
557
557
|
* The coordinates outside the
|
|
558
558
|
* range 0→1 will sample copies of the edge pixels of the
|
|
559
559
|
* texture. This is useful to avoid artifacts if only one copy of
|
|
560
560
|
* the texture is being rendered.
|
|
561
561
|
*/
|
|
562
|
-
CLAMP_TO_EDGE,
|
|
562
|
+
CLAMP_TO_EDGE = 33071,
|
|
563
563
|
/**
|
|
564
564
|
* Cogl will try to automatically
|
|
565
565
|
* decide which of the above two to use. For `cogl_rectangle()`, it
|
|
@@ -570,7 +570,7 @@ export namespace Cogl {
|
|
|
570
570
|
* layers that have point sprite coordinate generation enabled. This
|
|
571
571
|
* is the default value.
|
|
572
572
|
*/
|
|
573
|
-
AUTOMATIC,
|
|
573
|
+
AUTOMATIC = 519,
|
|
574
574
|
}
|
|
575
575
|
|
|
576
576
|
|
|
@@ -606,206 +606,206 @@ export namespace Cogl {
|
|
|
606
606
|
/**
|
|
607
607
|
* Any format
|
|
608
608
|
*/
|
|
609
|
-
ANY,
|
|
609
|
+
ANY = 0,
|
|
610
610
|
/**
|
|
611
611
|
* 8 bits alpha mask
|
|
612
612
|
*/
|
|
613
|
-
A_8,
|
|
613
|
+
A_8 = 17,
|
|
614
614
|
/**
|
|
615
615
|
* RGB, 16 bits
|
|
616
616
|
*/
|
|
617
|
-
RGB_565,
|
|
617
|
+
RGB_565 = 4,
|
|
618
618
|
/**
|
|
619
619
|
* RGBA, 16 bits
|
|
620
620
|
*/
|
|
621
|
-
RGBA_4444,
|
|
621
|
+
RGBA_4444 = 21,
|
|
622
622
|
/**
|
|
623
623
|
* RGBA, 16 bits
|
|
624
624
|
*/
|
|
625
|
-
RGBA_5551,
|
|
625
|
+
RGBA_5551 = 22,
|
|
626
626
|
/**
|
|
627
627
|
* Not currently supported
|
|
628
628
|
*/
|
|
629
|
-
YUV,
|
|
629
|
+
YUV = 7,
|
|
630
630
|
/**
|
|
631
631
|
* Single luminance component
|
|
632
632
|
*/
|
|
633
|
-
R_8,
|
|
633
|
+
R_8 = 8,
|
|
634
634
|
/**
|
|
635
635
|
* RG, 16 bits. Note that red-green textures
|
|
636
636
|
* are only available if {@link Cogl.FeatureID.OGL_FEATURE_ID_TEXTURE_RG} is advertised.
|
|
637
637
|
* See `cogl_texture_set_components()` for details.
|
|
638
638
|
*/
|
|
639
|
-
RG_88,
|
|
639
|
+
RG_88 = 9,
|
|
640
640
|
/**
|
|
641
641
|
* RGB, 24 bits
|
|
642
642
|
*/
|
|
643
|
-
RGB_888,
|
|
643
|
+
RGB_888 = 2,
|
|
644
644
|
/**
|
|
645
645
|
* BGR, 24 bits
|
|
646
646
|
*/
|
|
647
|
-
BGR_888,
|
|
647
|
+
BGR_888 = 34,
|
|
648
648
|
/**
|
|
649
649
|
* RGBX, 32 bits
|
|
650
650
|
*/
|
|
651
|
-
RGBX_8888,
|
|
651
|
+
RGBX_8888 = 3,
|
|
652
652
|
/**
|
|
653
653
|
* RGBA, 32 bits
|
|
654
654
|
*/
|
|
655
|
-
RGBA_8888,
|
|
655
|
+
RGBA_8888 = 19,
|
|
656
656
|
/**
|
|
657
657
|
* BGRX, 32 bits
|
|
658
658
|
*/
|
|
659
|
-
BGRX_8888,
|
|
659
|
+
BGRX_8888 = 35,
|
|
660
660
|
/**
|
|
661
661
|
* BGRA, 32 bits
|
|
662
662
|
*/
|
|
663
|
-
BGRA_8888,
|
|
663
|
+
BGRA_8888 = 51,
|
|
664
664
|
/**
|
|
665
665
|
* XRGB, 32 bits
|
|
666
666
|
*/
|
|
667
|
-
XRGB_8888,
|
|
667
|
+
XRGB_8888 = 67,
|
|
668
668
|
/**
|
|
669
669
|
* ARGB, 32 bits
|
|
670
670
|
*/
|
|
671
|
-
ARGB_8888,
|
|
671
|
+
ARGB_8888 = 83,
|
|
672
672
|
/**
|
|
673
673
|
* XBGR, 32 bits
|
|
674
674
|
*/
|
|
675
|
-
XBGR_8888,
|
|
675
|
+
XBGR_8888 = 99,
|
|
676
676
|
/**
|
|
677
677
|
* ABGR, 32 bits
|
|
678
678
|
*/
|
|
679
|
-
ABGR_8888,
|
|
679
|
+
ABGR_8888 = 115,
|
|
680
680
|
/**
|
|
681
681
|
* Premultiplied RGBA, 32 bits
|
|
682
682
|
*/
|
|
683
|
-
RGBA_8888_PRE,
|
|
683
|
+
RGBA_8888_PRE = 147,
|
|
684
684
|
/**
|
|
685
685
|
* Premultiplied BGRA, 32 bits
|
|
686
686
|
*/
|
|
687
|
-
BGRA_8888_PRE,
|
|
687
|
+
BGRA_8888_PRE = 179,
|
|
688
688
|
/**
|
|
689
689
|
* Premultiplied ARGB, 32 bits
|
|
690
690
|
*/
|
|
691
|
-
ARGB_8888_PRE,
|
|
691
|
+
ARGB_8888_PRE = 211,
|
|
692
692
|
/**
|
|
693
693
|
* Premultiplied ABGR, 32 bits
|
|
694
694
|
*/
|
|
695
|
-
ABGR_8888_PRE,
|
|
695
|
+
ABGR_8888_PRE = 243,
|
|
696
696
|
/**
|
|
697
697
|
* Premultiplied RGBA, 16 bits
|
|
698
698
|
*/
|
|
699
|
-
RGBA_4444_PRE,
|
|
699
|
+
RGBA_4444_PRE = 149,
|
|
700
700
|
/**
|
|
701
701
|
* Premultiplied RGBA, 16 bits
|
|
702
702
|
*/
|
|
703
|
-
RGBA_5551_PRE,
|
|
703
|
+
RGBA_5551_PRE = 150,
|
|
704
704
|
/**
|
|
705
705
|
* RGBA, 32 bits, 10 bpc
|
|
706
706
|
*/
|
|
707
|
-
RGBA_1010102,
|
|
707
|
+
RGBA_1010102 = 29,
|
|
708
708
|
/**
|
|
709
709
|
* BGRA, 32 bits, 10 bpc
|
|
710
710
|
*/
|
|
711
|
-
BGRA_1010102,
|
|
711
|
+
BGRA_1010102 = 61,
|
|
712
712
|
/**
|
|
713
713
|
* XRGB, 32 bits, 10 bpc
|
|
714
714
|
*/
|
|
715
|
-
XRGB_2101010,
|
|
715
|
+
XRGB_2101010 = 77,
|
|
716
716
|
/**
|
|
717
717
|
* ARGB, 32 bits, 10 bpc
|
|
718
718
|
*/
|
|
719
|
-
ARGB_2101010,
|
|
719
|
+
ARGB_2101010 = 93,
|
|
720
720
|
/**
|
|
721
721
|
* XBGR, 32 bits, 10 bpc
|
|
722
722
|
*/
|
|
723
|
-
XBGR_2101010,
|
|
723
|
+
XBGR_2101010 = 109,
|
|
724
724
|
/**
|
|
725
725
|
* ABGR, 32 bits, 10 bpc
|
|
726
726
|
*/
|
|
727
|
-
ABGR_2101010,
|
|
727
|
+
ABGR_2101010 = 125,
|
|
728
728
|
/**
|
|
729
729
|
* Premultiplied RGBA, 32 bits, 10 bpc
|
|
730
730
|
*/
|
|
731
|
-
RGBA_1010102_PRE,
|
|
731
|
+
RGBA_1010102_PRE = 157,
|
|
732
732
|
/**
|
|
733
733
|
* Premultiplied BGRA, 32 bits, 10 bpc
|
|
734
734
|
*/
|
|
735
|
-
BGRA_1010102_PRE,
|
|
735
|
+
BGRA_1010102_PRE = 189,
|
|
736
736
|
/**
|
|
737
737
|
* Premultiplied ARGB, 32 bits, 10 bpc
|
|
738
738
|
*/
|
|
739
|
-
ARGB_2101010_PRE,
|
|
739
|
+
ARGB_2101010_PRE = 221,
|
|
740
740
|
/**
|
|
741
741
|
* Premultiplied ABGR, 32 bits, 10 bpc
|
|
742
742
|
*/
|
|
743
|
-
ABGR_2101010_PRE,
|
|
743
|
+
ABGR_2101010_PRE = 253,
|
|
744
744
|
/**
|
|
745
745
|
* RGBX half floating point, 64 bit
|
|
746
746
|
*/
|
|
747
|
-
RGBX_FP_16161616,
|
|
747
|
+
RGBX_FP_16161616 = 11,
|
|
748
748
|
/**
|
|
749
749
|
* RGBA half floating point, 64 bit
|
|
750
750
|
*/
|
|
751
|
-
RGBA_FP_16161616,
|
|
751
|
+
RGBA_FP_16161616 = 27,
|
|
752
752
|
/**
|
|
753
753
|
* BGRX half floating point, 64 bit
|
|
754
754
|
*/
|
|
755
|
-
BGRX_FP_16161616,
|
|
755
|
+
BGRX_FP_16161616 = 43,
|
|
756
756
|
/**
|
|
757
757
|
* BGRA half floating point, 64 bit
|
|
758
758
|
*/
|
|
759
|
-
BGRA_FP_16161616,
|
|
760
|
-
XRGB_FP_16161616,
|
|
759
|
+
BGRA_FP_16161616 = 59,
|
|
760
|
+
XRGB_FP_16161616 = 75,
|
|
761
761
|
/**
|
|
762
762
|
* ARGB half floating point, 64 bit
|
|
763
763
|
*/
|
|
764
|
-
ARGB_FP_16161616,
|
|
765
|
-
XBGR_FP_16161616,
|
|
764
|
+
ARGB_FP_16161616 = 91,
|
|
765
|
+
XBGR_FP_16161616 = 107,
|
|
766
766
|
/**
|
|
767
767
|
* ABGR half floating point, 64 bit
|
|
768
768
|
*/
|
|
769
|
-
ABGR_FP_16161616,
|
|
769
|
+
ABGR_FP_16161616 = 123,
|
|
770
770
|
/**
|
|
771
771
|
* Premultiplied RGBA half floating point, 64 bit
|
|
772
772
|
*/
|
|
773
|
-
RGBA_FP_16161616_PRE,
|
|
773
|
+
RGBA_FP_16161616_PRE = 155,
|
|
774
774
|
/**
|
|
775
775
|
* Premultiplied BGRA half floating point, 64 bit
|
|
776
776
|
*/
|
|
777
|
-
BGRA_FP_16161616_PRE,
|
|
777
|
+
BGRA_FP_16161616_PRE = 187,
|
|
778
778
|
/**
|
|
779
779
|
* Premultiplied ARGB half floating point, 64 bit
|
|
780
780
|
*/
|
|
781
|
-
ARGB_FP_16161616_PRE,
|
|
781
|
+
ARGB_FP_16161616_PRE = 219,
|
|
782
782
|
/**
|
|
783
783
|
* Premultiplied ABGR half floating point, 64 bit
|
|
784
784
|
*/
|
|
785
|
-
ABGR_FP_16161616_PRE,
|
|
785
|
+
ABGR_FP_16161616_PRE = 251,
|
|
786
786
|
/**
|
|
787
787
|
* RGBA floating point, 128 bit
|
|
788
788
|
*/
|
|
789
|
-
RGBA_FP_32323232,
|
|
789
|
+
RGBA_FP_32323232 = 28,
|
|
790
790
|
/**
|
|
791
791
|
* Premultiplied RGBA floating point, 128 bit
|
|
792
792
|
*/
|
|
793
|
-
RGBA_FP_32323232_PRE,
|
|
793
|
+
RGBA_FP_32323232_PRE = 156,
|
|
794
794
|
/**
|
|
795
795
|
* Single luminance component, 16 bits
|
|
796
796
|
*/
|
|
797
|
-
R_16,
|
|
797
|
+
R_16 = 14,
|
|
798
798
|
/**
|
|
799
799
|
* RG, 32 bits
|
|
800
800
|
*/
|
|
801
|
-
RG_1616,
|
|
801
|
+
RG_1616 = 15,
|
|
802
802
|
/**
|
|
803
803
|
* RGBA, 64 bits, 16bpc
|
|
804
804
|
*/
|
|
805
|
-
RGBA_16161616,
|
|
806
|
-
RGBA_16161616_PRE,
|
|
807
|
-
DEPTH_16,
|
|
808
|
-
DEPTH_24_STENCIL_8,
|
|
805
|
+
RGBA_16161616 = 26,
|
|
806
|
+
RGBA_16161616_PRE = 154,
|
|
807
|
+
DEPTH_16 = 265,
|
|
808
|
+
DEPTH_24_STENCIL_8 = 771,
|
|
809
809
|
}
|
|
810
810
|
|
|
811
811
|
|
|
@@ -820,28 +820,28 @@ export namespace Cogl {
|
|
|
820
820
|
/**
|
|
821
821
|
* there is data to read
|
|
822
822
|
*/
|
|
823
|
-
IN,
|
|
823
|
+
IN = 1,
|
|
824
824
|
/**
|
|
825
825
|
* data can be written (without blocking)
|
|
826
826
|
*/
|
|
827
|
-
PRI,
|
|
827
|
+
PRI = 2,
|
|
828
828
|
/**
|
|
829
829
|
* there is urgent data to read.
|
|
830
830
|
*/
|
|
831
|
-
OUT,
|
|
831
|
+
OUT = 4,
|
|
832
832
|
/**
|
|
833
833
|
* error condition
|
|
834
834
|
*/
|
|
835
|
-
ERR,
|
|
835
|
+
ERR = 8,
|
|
836
836
|
/**
|
|
837
837
|
* hung up (the connection has been broken, usually
|
|
838
838
|
* for pipes and sockets).
|
|
839
839
|
*/
|
|
840
|
-
HUP,
|
|
840
|
+
HUP = 16,
|
|
841
841
|
/**
|
|
842
842
|
* invalid request. The file descriptor is not open.
|
|
843
843
|
*/
|
|
844
|
-
NVAL,
|
|
844
|
+
NVAL = 32,
|
|
845
845
|
}
|
|
846
846
|
|
|
847
847
|
|
|
@@ -849,8 +849,8 @@ export namespace Cogl {
|
|
|
849
849
|
* @gir-type Enum
|
|
850
850
|
*/
|
|
851
851
|
enum RendererError {
|
|
852
|
-
XLIB_DISPLAY_OPEN,
|
|
853
|
-
BAD_CONSTRAINT,
|
|
852
|
+
XLIB_DISPLAY_OPEN = 0,
|
|
853
|
+
BAD_CONSTRAINT = 1,
|
|
854
854
|
}
|
|
855
855
|
|
|
856
856
|
|
|
@@ -861,7 +861,7 @@ export namespace Cogl {
|
|
|
861
861
|
/**
|
|
862
862
|
* Scanout inhibited
|
|
863
863
|
*/
|
|
864
|
-
SCANOUT_ERROR_INHIBITED,
|
|
864
|
+
SCANOUT_ERROR_INHIBITED = 0,
|
|
865
865
|
}
|
|
866
866
|
|
|
867
867
|
|
|
@@ -873,11 +873,11 @@ export namespace Cogl {
|
|
|
873
873
|
/**
|
|
874
874
|
* A program for processing vertices
|
|
875
875
|
*/
|
|
876
|
-
VERTEX,
|
|
876
|
+
VERTEX = 0,
|
|
877
877
|
/**
|
|
878
878
|
* A program for processing fragments
|
|
879
879
|
*/
|
|
880
|
-
FRAGMENT,
|
|
880
|
+
FRAGMENT = 1,
|
|
881
881
|
}
|
|
882
882
|
|
|
883
883
|
|
|
@@ -1095,50 +1095,50 @@ export namespace Cogl {
|
|
|
1095
1095
|
* A hook for the entire vertex processing
|
|
1096
1096
|
* stage of the pipeline.
|
|
1097
1097
|
*/
|
|
1098
|
-
VERTEX,
|
|
1098
|
+
VERTEX = 0,
|
|
1099
1099
|
/**
|
|
1100
1100
|
* A hook for the vertex transformation.
|
|
1101
1101
|
*/
|
|
1102
|
-
VERTEX_TRANSFORM,
|
|
1102
|
+
VERTEX_TRANSFORM = 1,
|
|
1103
1103
|
/**
|
|
1104
1104
|
* A hook for declaring global data
|
|
1105
1105
|
* that can be shared with all other snippets that are on a vertex
|
|
1106
1106
|
* hook.
|
|
1107
1107
|
*/
|
|
1108
|
-
VERTEX_GLOBALS,
|
|
1108
|
+
VERTEX_GLOBALS = 2,
|
|
1109
1109
|
/**
|
|
1110
1110
|
* A hook for manipulating the point
|
|
1111
1111
|
* size of a vertex. This is only used if
|
|
1112
1112
|
* `cogl_pipeline_set_per_vertex_point_size()` is enabled on the
|
|
1113
1113
|
* pipeline.
|
|
1114
1114
|
*/
|
|
1115
|
-
POINT_SIZE,
|
|
1115
|
+
POINT_SIZE = 3,
|
|
1116
1116
|
/**
|
|
1117
1117
|
* A hook for the entire fragment
|
|
1118
1118
|
* processing stage of the pipeline.
|
|
1119
1119
|
*/
|
|
1120
|
-
FRAGMENT,
|
|
1120
|
+
FRAGMENT = 2048,
|
|
1121
1121
|
/**
|
|
1122
1122
|
* A hook for declaring global
|
|
1123
1123
|
* data wthat can be shared with all other snippets that are on a
|
|
1124
1124
|
* fragment hook.
|
|
1125
1125
|
*/
|
|
1126
|
-
FRAGMENT_GLOBALS,
|
|
1126
|
+
FRAGMENT_GLOBALS = 2049,
|
|
1127
1127
|
/**
|
|
1128
1128
|
* A hook for applying the
|
|
1129
1129
|
* layer matrix to a texture coordinate for a layer.
|
|
1130
1130
|
*/
|
|
1131
|
-
TEXTURE_COORD_TRANSFORM,
|
|
1131
|
+
TEXTURE_COORD_TRANSFORM = 4096,
|
|
1132
1132
|
/**
|
|
1133
1133
|
* A hook for the fragment
|
|
1134
1134
|
* processing of a particular layer.
|
|
1135
1135
|
*/
|
|
1136
|
-
LAYER_FRAGMENT,
|
|
1136
|
+
LAYER_FRAGMENT = 6144,
|
|
1137
1137
|
/**
|
|
1138
1138
|
* A hook for the texture lookup
|
|
1139
1139
|
* stage of a given layer in a pipeline.
|
|
1140
1140
|
*/
|
|
1141
|
-
TEXTURE_LOOKUP,
|
|
1141
|
+
TEXTURE_LOOKUP = 6145,
|
|
1142
1142
|
}
|
|
1143
1143
|
|
|
1144
1144
|
|
|
@@ -1151,15 +1151,15 @@ export namespace Cogl {
|
|
|
1151
1151
|
/**
|
|
1152
1152
|
* draw to both stereo buffers
|
|
1153
1153
|
*/
|
|
1154
|
-
BOTH,
|
|
1154
|
+
BOTH = 0,
|
|
1155
1155
|
/**
|
|
1156
1156
|
* draw only to the left stereo buffer
|
|
1157
1157
|
*/
|
|
1158
|
-
LEFT,
|
|
1158
|
+
LEFT = 1,
|
|
1159
1159
|
/**
|
|
1160
1160
|
* draw only to the left stereo buffer
|
|
1161
1161
|
*/
|
|
1162
|
-
RIGHT,
|
|
1162
|
+
RIGHT = 2,
|
|
1163
1163
|
}
|
|
1164
1164
|
|
|
1165
1165
|
|
|
@@ -1177,38 +1177,38 @@ export namespace Cogl {
|
|
|
1177
1177
|
* the layout of subpixel
|
|
1178
1178
|
* components for the device is unknown.
|
|
1179
1179
|
*/
|
|
1180
|
-
UNKNOWN,
|
|
1180
|
+
UNKNOWN = 0,
|
|
1181
1181
|
/**
|
|
1182
1182
|
* the device displays colors
|
|
1183
1183
|
* without geometrically-separated subpixel components,
|
|
1184
1184
|
* or the positioning or colors of the components do not
|
|
1185
1185
|
* match any of the values in the enumeration.
|
|
1186
1186
|
*/
|
|
1187
|
-
NONE,
|
|
1187
|
+
NONE = 1,
|
|
1188
1188
|
/**
|
|
1189
1189
|
* the device has
|
|
1190
1190
|
* horizontally arranged components in the order
|
|
1191
1191
|
* red-green-blue from left to right.
|
|
1192
1192
|
*/
|
|
1193
|
-
HORIZONTAL_RGB,
|
|
1193
|
+
HORIZONTAL_RGB = 2,
|
|
1194
1194
|
/**
|
|
1195
1195
|
* the device has
|
|
1196
1196
|
* horizontally arranged components in the order
|
|
1197
1197
|
* blue-green-red from left to right.
|
|
1198
1198
|
*/
|
|
1199
|
-
HORIZONTAL_BGR,
|
|
1199
|
+
HORIZONTAL_BGR = 3,
|
|
1200
1200
|
/**
|
|
1201
1201
|
* the device has
|
|
1202
1202
|
* vertically arranged components in the order
|
|
1203
1203
|
* red-green-blue from top to bottom.
|
|
1204
1204
|
*/
|
|
1205
|
-
VERTICAL_RGB,
|
|
1205
|
+
VERTICAL_RGB = 4,
|
|
1206
1206
|
/**
|
|
1207
1207
|
* the device has
|
|
1208
1208
|
* vertically arranged components in the order
|
|
1209
1209
|
* blue-green-red from top to bottom.
|
|
1210
1210
|
*/
|
|
1211
|
-
VERTICAL_BGR,
|
|
1211
|
+
VERTICAL_BGR = 5,
|
|
1212
1212
|
}
|
|
1213
1213
|
|
|
1214
1214
|
|
|
@@ -1234,12 +1234,12 @@ export namespace Cogl {
|
|
|
1234
1234
|
* You tried to use a feature or
|
|
1235
1235
|
* configuration not currently available.
|
|
1236
1236
|
*/
|
|
1237
|
-
UNSUPPORTED,
|
|
1237
|
+
UNSUPPORTED = 0,
|
|
1238
1238
|
/**
|
|
1239
1239
|
* You tried to allocate a resource
|
|
1240
1240
|
* such as a texture and there wasn't enough memory.
|
|
1241
1241
|
*/
|
|
1242
|
-
NO_MEMORY,
|
|
1242
|
+
NO_MEMORY = 1,
|
|
1243
1243
|
}
|
|
1244
1244
|
|
|
1245
1245
|
|
|
@@ -1251,25 +1251,25 @@ export namespace Cogl {
|
|
|
1251
1251
|
/**
|
|
1252
1252
|
* Only the alpha component
|
|
1253
1253
|
*/
|
|
1254
|
-
A,
|
|
1254
|
+
A = 1,
|
|
1255
1255
|
/**
|
|
1256
1256
|
* Red and green components. Note that
|
|
1257
1257
|
* this can only be used if the {@link Cogl.FeatureID.OGL_FEATURE_ID_TEXTURE_RG} feature
|
|
1258
1258
|
* is advertised.
|
|
1259
1259
|
*/
|
|
1260
|
-
RG,
|
|
1260
|
+
RG = 2,
|
|
1261
1261
|
/**
|
|
1262
1262
|
* Red, green and blue components
|
|
1263
1263
|
*/
|
|
1264
|
-
RGB,
|
|
1264
|
+
RGB = 3,
|
|
1265
1265
|
/**
|
|
1266
1266
|
* Red, green, blue and alpha components
|
|
1267
1267
|
*/
|
|
1268
|
-
RGBA,
|
|
1268
|
+
RGBA = 4,
|
|
1269
1269
|
/**
|
|
1270
1270
|
* Only a depth component
|
|
1271
1271
|
*/
|
|
1272
|
-
DEPTH,
|
|
1272
|
+
DEPTH = 5,
|
|
1273
1273
|
}
|
|
1274
1274
|
|
|
1275
1275
|
|
|
@@ -1281,17 +1281,17 @@ export namespace Cogl {
|
|
|
1281
1281
|
/**
|
|
1282
1282
|
* Unsupported size
|
|
1283
1283
|
*/
|
|
1284
|
-
SIZE,
|
|
1284
|
+
SIZE = 0,
|
|
1285
1285
|
/**
|
|
1286
1286
|
* Unsupported format
|
|
1287
1287
|
*/
|
|
1288
|
-
FORMAT,
|
|
1289
|
-
BAD_PARAMETER,
|
|
1288
|
+
FORMAT = 1,
|
|
1289
|
+
BAD_PARAMETER = 2,
|
|
1290
1290
|
/**
|
|
1291
1291
|
* A primitive texture type that is
|
|
1292
1292
|
* unsupported by the driver was used
|
|
1293
1293
|
*/
|
|
1294
|
-
TYPE,
|
|
1294
|
+
TYPE = 3,
|
|
1295
1295
|
}
|
|
1296
1296
|
|
|
1297
1297
|
|
|
@@ -1303,31 +1303,31 @@ export namespace Cogl {
|
|
|
1303
1303
|
/**
|
|
1304
1304
|
* FIXME, equivalent to `GL_POINTS`
|
|
1305
1305
|
*/
|
|
1306
|
-
POINTS,
|
|
1306
|
+
POINTS = 0,
|
|
1307
1307
|
/**
|
|
1308
1308
|
* FIXME, equivalent to `GL_LINES`
|
|
1309
1309
|
*/
|
|
1310
|
-
LINES,
|
|
1310
|
+
LINES = 1,
|
|
1311
1311
|
/**
|
|
1312
1312
|
* FIXME, equivalent to `GL_LINE_LOOP`
|
|
1313
1313
|
*/
|
|
1314
|
-
LINE_LOOP,
|
|
1314
|
+
LINE_LOOP = 2,
|
|
1315
1315
|
/**
|
|
1316
1316
|
* FIXME, equivalent to `GL_LINE_STRIP`
|
|
1317
1317
|
*/
|
|
1318
|
-
LINE_STRIP,
|
|
1318
|
+
LINE_STRIP = 3,
|
|
1319
1319
|
/**
|
|
1320
1320
|
* FIXME, equivalent to `GL_TRIANGLES`
|
|
1321
1321
|
*/
|
|
1322
|
-
TRIANGLES,
|
|
1322
|
+
TRIANGLES = 4,
|
|
1323
1323
|
/**
|
|
1324
1324
|
* FIXME, equivalent to `GL_TRIANGLE_STRIP`
|
|
1325
1325
|
*/
|
|
1326
|
-
TRIANGLE_STRIP,
|
|
1326
|
+
TRIANGLE_STRIP = 5,
|
|
1327
1327
|
/**
|
|
1328
1328
|
* FIXME, equivalent to `GL_TRIANGLE_FAN`
|
|
1329
1329
|
*/
|
|
1330
|
-
TRIANGLE_FAN,
|
|
1330
|
+
TRIANGLE_FAN = 6,
|
|
1331
1331
|
}
|
|
1332
1332
|
|
|
1333
1333
|
|
|
@@ -1341,11 +1341,11 @@ export namespace Cogl {
|
|
|
1341
1341
|
/**
|
|
1342
1342
|
* Vertices are in a clockwise order
|
|
1343
1343
|
*/
|
|
1344
|
-
CLOCKWISE,
|
|
1344
|
+
CLOCKWISE = 0,
|
|
1345
1345
|
/**
|
|
1346
1346
|
* Vertices are in a counter-clockwise order
|
|
1347
1347
|
*/
|
|
1348
|
-
COUNTER_CLOCKWISE,
|
|
1348
|
+
COUNTER_CLOCKWISE = 1,
|
|
1349
1349
|
}
|
|
1350
1350
|
|
|
1351
1351
|
|
|
@@ -1353,16 +1353,16 @@ export namespace Cogl {
|
|
|
1353
1353
|
* @gir-type Enum
|
|
1354
1354
|
*/
|
|
1355
1355
|
enum WinsysFeature {
|
|
1356
|
-
VBLANK_COUNTER,
|
|
1357
|
-
VBLANK_WAIT,
|
|
1358
|
-
TEXTURE_FROM_PIXMAP,
|
|
1359
|
-
SWAP_BUFFERS_EVENT,
|
|
1360
|
-
SWAP_REGION,
|
|
1361
|
-
SWAP_REGION_THROTTLE,
|
|
1362
|
-
SWAP_REGION_SYNCHRONIZED,
|
|
1363
|
-
BUFFER_AGE,
|
|
1364
|
-
SYNC_AND_COMPLETE_EVENT,
|
|
1365
|
-
N_FEATURES,
|
|
1356
|
+
VBLANK_COUNTER = 0,
|
|
1357
|
+
VBLANK_WAIT = 1,
|
|
1358
|
+
TEXTURE_FROM_PIXMAP = 2,
|
|
1359
|
+
SWAP_BUFFERS_EVENT = 3,
|
|
1360
|
+
SWAP_REGION = 4,
|
|
1361
|
+
SWAP_REGION_THROTTLE = 5,
|
|
1362
|
+
SWAP_REGION_SYNCHRONIZED = 6,
|
|
1363
|
+
BUFFER_AGE = 7,
|
|
1364
|
+
SYNC_AND_COMPLETE_EVENT = 8,
|
|
1365
|
+
N_FEATURES = 9,
|
|
1366
1366
|
}
|
|
1367
1367
|
|
|
1368
1368
|
|
|
@@ -1377,41 +1377,63 @@ export namespace Cogl {
|
|
|
1377
1377
|
/**
|
|
1378
1378
|
* Implies no preference for which backend is used
|
|
1379
1379
|
*/
|
|
1380
|
-
ANY,
|
|
1380
|
+
ANY = 0,
|
|
1381
1381
|
/**
|
|
1382
1382
|
* Use the no-op stub backend
|
|
1383
1383
|
*/
|
|
1384
|
-
STUB,
|
|
1384
|
+
STUB = 1,
|
|
1385
1385
|
/**
|
|
1386
1386
|
* Use the GLX window system binding API
|
|
1387
1387
|
*/
|
|
1388
|
-
GLX,
|
|
1388
|
+
GLX = 2,
|
|
1389
1389
|
/**
|
|
1390
1390
|
* Use EGL with the X window system via XLib
|
|
1391
1391
|
*/
|
|
1392
|
-
EGL_XLIB,
|
|
1393
|
-
CUSTOM,
|
|
1392
|
+
EGL_XLIB = 3,
|
|
1393
|
+
CUSTOM = 4,
|
|
1394
1394
|
}
|
|
1395
1395
|
|
|
1396
1396
|
|
|
1397
|
+
/**
|
|
1398
|
+
* @default 64
|
|
1399
|
+
*/
|
|
1397
1400
|
const AFIRST_BIT: number;
|
|
1398
1401
|
|
|
1402
|
+
/**
|
|
1403
|
+
* @default 16
|
|
1404
|
+
*/
|
|
1399
1405
|
const A_BIT: number;
|
|
1400
1406
|
|
|
1407
|
+
/**
|
|
1408
|
+
* @default 32
|
|
1409
|
+
*/
|
|
1401
1410
|
const BGR_BIT: number;
|
|
1402
1411
|
|
|
1412
|
+
/**
|
|
1413
|
+
* @default 256
|
|
1414
|
+
*/
|
|
1403
1415
|
const DEPTH_BIT: number;
|
|
1404
1416
|
|
|
1405
1417
|
/**
|
|
1406
1418
|
* The maximum number of planes of a pixel format (see also
|
|
1407
1419
|
* `cogl_pixel_format_get_planes()`).
|
|
1420
|
+
* @default 4
|
|
1408
1421
|
*/
|
|
1409
1422
|
const PIXEL_FORMAT_MAX_PLANES: number;
|
|
1410
1423
|
|
|
1424
|
+
/**
|
|
1425
|
+
* @default 128
|
|
1426
|
+
*/
|
|
1411
1427
|
const PREMULT_BIT: number;
|
|
1412
1428
|
|
|
1429
|
+
/**
|
|
1430
|
+
* @default 512
|
|
1431
|
+
*/
|
|
1413
1432
|
const STENCIL_BIT: number;
|
|
1414
1433
|
|
|
1434
|
+
/**
|
|
1435
|
+
* @default 127
|
|
1436
|
+
*/
|
|
1415
1437
|
const TEXTURE_MAX_WASTE: number;
|
|
1416
1438
|
|
|
1417
1439
|
function blend_string_error_quark(): number;
|
|
@@ -1464,6 +1486,7 @@ export namespace Cogl {
|
|
|
1464
1486
|
* @param dst_y Destination y position
|
|
1465
1487
|
* @param width Width of region to copy
|
|
1466
1488
|
* @param height Height of region to copy
|
|
1489
|
+
* @throws GLib.Error
|
|
1467
1490
|
*/
|
|
1468
1491
|
function blit_framebuffer(framebuffer: Framebuffer, dst: Framebuffer, src_x: number, src_y: number, dst_x: number, dst_y: number, width: number, height: number): boolean;
|
|
1469
1492
|
|
|
@@ -1850,11 +1873,13 @@ export namespace Cogl {
|
|
|
1850
1873
|
|
|
1851
1874
|
/**
|
|
1852
1875
|
* @param fd
|
|
1876
|
+
* @throws GLib.Error
|
|
1853
1877
|
*/
|
|
1854
1878
|
function start_tracing_with_fd(fd: number): boolean;
|
|
1855
1879
|
|
|
1856
1880
|
/**
|
|
1857
1881
|
* @param filename
|
|
1882
|
+
* @throws GLib.Error
|
|
1858
1883
|
*/
|
|
1859
1884
|
function start_tracing_with_path(filename: string): boolean;
|
|
1860
1885
|
|
|
@@ -1938,16 +1963,16 @@ export namespace Cogl {
|
|
|
1938
1963
|
/**
|
|
1939
1964
|
* the buffer will be read
|
|
1940
1965
|
*/
|
|
1941
|
-
READ,
|
|
1966
|
+
READ = 1,
|
|
1942
1967
|
/**
|
|
1943
1968
|
* the buffer will written to
|
|
1944
1969
|
*/
|
|
1945
|
-
WRITE,
|
|
1970
|
+
WRITE = 2,
|
|
1946
1971
|
/**
|
|
1947
1972
|
* the buffer will be used for both reading and
|
|
1948
1973
|
* writing
|
|
1949
1974
|
*/
|
|
1950
|
-
READ_WRITE,
|
|
1975
|
+
READ_WRITE = 3,
|
|
1951
1976
|
}
|
|
1952
1977
|
|
|
1953
1978
|
|
|
@@ -1959,15 +1984,15 @@ export namespace Cogl {
|
|
|
1959
1984
|
/**
|
|
1960
1985
|
* Selects the primary color buffer
|
|
1961
1986
|
*/
|
|
1962
|
-
COLOR,
|
|
1987
|
+
COLOR = 1,
|
|
1963
1988
|
/**
|
|
1964
1989
|
* Selects the depth buffer
|
|
1965
1990
|
*/
|
|
1966
|
-
DEPTH,
|
|
1991
|
+
DEPTH = 2,
|
|
1967
1992
|
/**
|
|
1968
1993
|
* Selects the stencil buffer
|
|
1969
1994
|
*/
|
|
1970
|
-
STENCIL,
|
|
1995
|
+
STENCIL = 4,
|
|
1971
1996
|
}
|
|
1972
1997
|
|
|
1973
1998
|
|
|
@@ -1990,14 +2015,14 @@ export namespace Cogl {
|
|
|
1990
2015
|
* buffer, the entire contents of the buffer become undefined, even
|
|
1991
2016
|
* if only a subregion of the buffer is mapped.
|
|
1992
2017
|
*/
|
|
1993
|
-
DISCARD,
|
|
2018
|
+
DISCARD = 1,
|
|
1994
2019
|
/**
|
|
1995
2020
|
* Tells Cogl that you plan to
|
|
1996
2021
|
* replace all the contents of the mapped region. The contents of
|
|
1997
2022
|
* the region specified are undefined after this flag is used to
|
|
1998
2023
|
* map a buffer.
|
|
1999
2024
|
*/
|
|
2000
|
-
DISCARD_RANGE,
|
|
2025
|
+
DISCARD_RANGE = 2,
|
|
2001
2026
|
}
|
|
2002
2027
|
|
|
2003
2028
|
|
|
@@ -2009,11 +2034,11 @@ export namespace Cogl {
|
|
|
2009
2034
|
/**
|
|
2010
2035
|
* FIXME
|
|
2011
2036
|
*/
|
|
2012
|
-
WINDOW_BUFFER,
|
|
2037
|
+
WINDOW_BUFFER = 2,
|
|
2013
2038
|
/**
|
|
2014
2039
|
* FIXME
|
|
2015
2040
|
*/
|
|
2016
|
-
OFFSCREEN_BUFFER,
|
|
2041
|
+
OFFSCREEN_BUFFER = 4,
|
|
2017
2042
|
}
|
|
2018
2043
|
|
|
2019
2044
|
|
|
@@ -2021,8 +2046,8 @@ export namespace Cogl {
|
|
|
2021
2046
|
* @gir-type Flags
|
|
2022
2047
|
*/
|
|
2023
2048
|
enum EglImageFlags {
|
|
2024
|
-
NONE,
|
|
2025
|
-
NO_GET_DATA,
|
|
2049
|
+
NONE = 0,
|
|
2050
|
+
NO_GET_DATA = 1,
|
|
2026
2051
|
}
|
|
2027
2052
|
|
|
2028
2053
|
|
|
@@ -2034,7 +2059,7 @@ export namespace Cogl {
|
|
|
2034
2059
|
/**
|
|
2035
2060
|
* Read from the color buffer
|
|
2036
2061
|
*/
|
|
2037
|
-
READ_PIXELS_COLOR_BUFFER,
|
|
2062
|
+
READ_PIXELS_COLOR_BUFFER = 1,
|
|
2038
2063
|
}
|
|
2039
2064
|
|
|
2040
2065
|
|
|
@@ -2056,16 +2081,16 @@ export namespace Cogl {
|
|
|
2056
2081
|
/**
|
|
2057
2082
|
* Require the renderer to be X11 based
|
|
2058
2083
|
*/
|
|
2059
|
-
X11,
|
|
2084
|
+
X11 = 1,
|
|
2060
2085
|
/**
|
|
2061
2086
|
* Require the renderer to be X11
|
|
2062
2087
|
* based and use Xlib
|
|
2063
2088
|
*/
|
|
2064
|
-
XLIB,
|
|
2089
|
+
XLIB = 2,
|
|
2065
2090
|
/**
|
|
2066
2091
|
* Require the renderer to be EGL based
|
|
2067
2092
|
*/
|
|
2068
|
-
EGL,
|
|
2093
|
+
EGL = 4,
|
|
2069
2094
|
}
|
|
2070
2095
|
|
|
2071
2096
|
|
|
@@ -2536,6 +2561,7 @@ export namespace Cogl {
|
|
|
2536
2561
|
* @param access how the mapped buffer will be used by the application
|
|
2537
2562
|
* @param hints A mask of {@link Cogl.BufferMapHint}s that tell Cogl how the data will be modified once mapped.
|
|
2538
2563
|
* @returns A pointer to the mapped memory or `null` is the call fails
|
|
2564
|
+
* @throws GLib.Error
|
|
2539
2565
|
*/
|
|
2540
2566
|
map_range(offset: bigint | number, size: bigint | number, access: BufferAccess, hints: BufferMapHint): null;
|
|
2541
2567
|
|
|
@@ -2815,6 +2841,7 @@ export namespace Cogl {
|
|
|
2815
2841
|
* with a message. For simple applications that don't have any
|
|
2816
2842
|
* fallback options this behaviour may be fine.
|
|
2817
2843
|
* @returns Returns `true` if there was no error, else it returns `false` and returns an exception via `error`.
|
|
2844
|
+
* @throws GLib.Error
|
|
2818
2845
|
*/
|
|
2819
2846
|
setup(): boolean;
|
|
2820
2847
|
}
|
|
@@ -3046,6 +3073,7 @@ export namespace Cogl {
|
|
|
3046
3073
|
* program will abort with an error message if there is an error during
|
|
3047
3074
|
* automatic allocation.
|
|
3048
3075
|
* @returns `true` if there were no error allocating the framebuffer, else `false`.
|
|
3076
|
+
* @throws GLib.Error
|
|
3049
3077
|
*/
|
|
3050
3078
|
allocate(): boolean;
|
|
3051
3079
|
|
|
@@ -4509,6 +4537,7 @@ export namespace Cogl {
|
|
|
4509
4537
|
* @param scanout
|
|
4510
4538
|
* @param info
|
|
4511
4539
|
* @param user_data
|
|
4540
|
+
* @throws GLib.Error
|
|
4512
4541
|
*/
|
|
4513
4542
|
direct_scanout(scanout: Scanout, info: FrameInfo, user_data: null): boolean;
|
|
4514
4543
|
|
|
@@ -5193,6 +5222,7 @@ export namespace Cogl {
|
|
|
5193
5222
|
* is in premultiplied form.
|
|
5194
5223
|
* @param blend_string A Cogl blend string describing the desired blend function.
|
|
5195
5224
|
* @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).
|
|
5225
|
+
* @throws GLib.Error
|
|
5196
5226
|
*/
|
|
5197
5227
|
set_blend(blend_string: string): boolean;
|
|
5198
5228
|
|
|
@@ -5243,6 +5273,7 @@ export namespace Cogl {
|
|
|
5243
5273
|
* it is possible for this function to fail and report an `error`.
|
|
5244
5274
|
* @param state A {@link Cogl.DepthState} struct
|
|
5245
5275
|
* @returns `true` if the GPU supports all the given `state` else `false` and returns an `error`.
|
|
5276
|
+
* @throws GLib.Error
|
|
5246
5277
|
*/
|
|
5247
5278
|
set_depth_state(state: DepthState): boolean;
|
|
5248
5279
|
|
|
@@ -5313,6 +5344,7 @@ export namespace Cogl {
|
|
|
5313
5344
|
* @param layer_index Specifies the layer you want define a combine function for
|
|
5314
5345
|
* @param blend_string A Cogl blend string describing the desired texture combine function.
|
|
5315
5346
|
* @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
|
|
5347
|
+
* @throws GLib.Error
|
|
5316
5348
|
*/
|
|
5317
5349
|
set_layer_combine(layer_index: number, blend_string: string): boolean;
|
|
5318
5350
|
|
|
@@ -5375,6 +5407,7 @@ export namespace Cogl {
|
|
|
5375
5407
|
* @param layer_index the layer number to change.
|
|
5376
5408
|
* @param enable whether to enable point sprite coord generation.
|
|
5377
5409
|
* @returns `true` if the function succeeds, `false` otherwise.
|
|
5410
|
+
* @throws GLib.Error
|
|
5378
5411
|
*/
|
|
5379
5412
|
set_layer_point_sprite_coords_enabled(layer_index: number, enable: boolean): boolean;
|
|
5380
5413
|
|
|
@@ -5421,6 +5454,7 @@ export namespace Cogl {
|
|
|
5421
5454
|
* undefined.
|
|
5422
5455
|
* @param enable whether to enable per-vertex point size
|
|
5423
5456
|
* @returns `true` if the change succeeded or `false` otherwise
|
|
5457
|
+
* @throws GLib.Error
|
|
5424
5458
|
*/
|
|
5425
5459
|
set_per_vertex_point_size(enable: boolean): boolean;
|
|
5426
5460
|
|
|
@@ -5854,6 +5888,7 @@ export namespace Cogl {
|
|
|
5854
5888
|
* `main()` function. It is allowed to use a program with only a vertex
|
|
5855
5889
|
* shader or only a fragment shader.
|
|
5856
5890
|
* @param shader a {@link Cogl.Shader} for a vertex of fragment shader.
|
|
5891
|
+
* @deprecated since 1.16: Use {@link Cogl.Snippet} api
|
|
5857
5892
|
*/
|
|
5858
5893
|
attach_shader(shader: Shader): void;
|
|
5859
5894
|
|
|
@@ -5863,6 +5898,7 @@ export namespace Cogl {
|
|
|
5863
5898
|
* shader object and is possible to modify as an external parameter.
|
|
5864
5899
|
* @param uniform_name the name of a uniform.
|
|
5865
5900
|
* @returns the offset of a uniform in a specified program.
|
|
5901
|
+
* @deprecated since 1.16: Use {@link Cogl.Snippet} api instead
|
|
5866
5902
|
*/
|
|
5867
5903
|
get_uniform_location(uniform_name: string): number;
|
|
5868
5904
|
|
|
@@ -5870,6 +5906,7 @@ export namespace Cogl {
|
|
|
5870
5906
|
* Links a program making it ready for use. Note that calling this
|
|
5871
5907
|
* function is optional. If it is not called the program will
|
|
5872
5908
|
* automatically be linked the first time it is used.
|
|
5909
|
+
* @deprecated since 1.16: Use {@link Cogl.Snippet} api
|
|
5873
5910
|
*/
|
|
5874
5911
|
link(): void;
|
|
5875
5912
|
|
|
@@ -5878,6 +5915,7 @@ export namespace Cogl {
|
|
|
5878
5915
|
* `program`.
|
|
5879
5916
|
* @param uniform_location the uniform location retrieved from {@link Program.get_uniform_location}.
|
|
5880
5917
|
* @param value the new value of the uniform.
|
|
5918
|
+
* @deprecated since 1.16: Use {@link Cogl.Snippet} api instead
|
|
5881
5919
|
*/
|
|
5882
5920
|
set_uniform_1f(uniform_location: number, value: number): void;
|
|
5883
5921
|
|
|
@@ -5886,6 +5924,7 @@ export namespace Cogl {
|
|
|
5886
5924
|
* `program`.
|
|
5887
5925
|
* @param uniform_location the uniform location retrieved from {@link Program.get_uniform_location}.
|
|
5888
5926
|
* @param value the new value of the uniform.
|
|
5927
|
+
* @deprecated since 1.16: Use {@link Cogl.Snippet} api instead
|
|
5889
5928
|
*/
|
|
5890
5929
|
set_uniform_1i(uniform_location: number, value: number): void;
|
|
5891
5930
|
|
|
@@ -5895,6 +5934,7 @@ export namespace Cogl {
|
|
|
5895
5934
|
* @param uniform_location the uniform location retrieved from {@link Program.get_uniform_location}.
|
|
5896
5935
|
* @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.
|
|
5897
5936
|
* @param value the new value of the uniform[s].
|
|
5937
|
+
* @deprecated since 1.16: Use {@link Cogl.Snippet} api instead
|
|
5898
5938
|
*/
|
|
5899
5939
|
set_uniform_float(uniform_location: number, n_components: number, value: number[]): void;
|
|
5900
5940
|
|
|
@@ -5904,6 +5944,7 @@ export namespace Cogl {
|
|
|
5904
5944
|
* @param uniform_location the uniform location retrieved from {@link Program.get_uniform_location}.
|
|
5905
5945
|
* @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.
|
|
5906
5946
|
* @param value the new value of the uniform[s].
|
|
5947
|
+
* @deprecated since 1.16: Use {@link Cogl.Snippet} api instead
|
|
5907
5948
|
*/
|
|
5908
5949
|
set_uniform_int(uniform_location: number, n_components: number, value: number[]): void;
|
|
5909
5950
|
|
|
@@ -5914,6 +5955,7 @@ export namespace Cogl {
|
|
|
5914
5955
|
* @param dimensions The dimensions of the matrix. So for for example pass 2 for a 2x2 matrix or 3 for 3x3.
|
|
5915
5956
|
* @param transpose Whether to transpose the matrix when setting the uniform.
|
|
5916
5957
|
* @param value the new value of the uniform.
|
|
5958
|
+
* @deprecated since 1.16: Use {@link Cogl.Snippet} api instead
|
|
5917
5959
|
*/
|
|
5918
5960
|
set_uniform_matrix(uniform_location: number, dimensions: number, transpose: boolean, value: number[]): void;
|
|
5919
5961
|
}
|
|
@@ -6003,6 +6045,7 @@ export namespace Cogl {
|
|
|
6003
6045
|
* `renderer`.
|
|
6004
6046
|
* @param onscreen_template A {@link Cogl.OnscreenTemplate}
|
|
6005
6047
|
* @returns `true` if the `onscreen_template` can be supported, else `false`.
|
|
6048
|
+
* @throws GLib.Error
|
|
6006
6049
|
*/
|
|
6007
6050
|
check_onscreen_template(onscreen_template: OnscreenTemplate): boolean;
|
|
6008
6051
|
|
|
@@ -6012,6 +6055,7 @@ export namespace Cogl {
|
|
|
6012
6055
|
* any given constraint criteria can be satisfied and that a
|
|
6013
6056
|
* usable driver and window system backend can be found.
|
|
6014
6057
|
* @returns `true` if there was no error while connecting the given `renderer`. `false` if there was an error.
|
|
6058
|
+
* @throws GLib.Error
|
|
6015
6059
|
*/
|
|
6016
6060
|
connect(): boolean;
|
|
6017
6061
|
|
|
@@ -6092,7 +6136,7 @@ export namespace Cogl {
|
|
|
6092
6136
|
* @signal
|
|
6093
6137
|
* @run-last
|
|
6094
6138
|
*/
|
|
6095
|
-
"scanout-failed": (
|
|
6139
|
+
"scanout-failed": (object: Onscreen) => void;
|
|
6096
6140
|
}
|
|
6097
6141
|
|
|
6098
6142
|
// Constructor properties interface
|
|
@@ -6142,6 +6186,7 @@ export namespace Cogl {
|
|
|
6142
6186
|
* @param framebuffer
|
|
6143
6187
|
* @param x
|
|
6144
6188
|
* @param y
|
|
6189
|
+
* @throws GLib.Error
|
|
6145
6190
|
*/
|
|
6146
6191
|
blit_to_framebuffer(framebuffer: Framebuffer, x: number, y: number): boolean;
|
|
6147
6192
|
|
|
@@ -6299,6 +6344,7 @@ export namespace Cogl {
|
|
|
6299
6344
|
/**
|
|
6300
6345
|
* Retrieves the type of a shader
|
|
6301
6346
|
* @returns {@link Cogl.ShaderType.VERTEX} if the shader is a vertex processor or {@link Cogl.ShaderType.FRAGMENT} if the shader is a fragment processor
|
|
6347
|
+
* @deprecated since 1.16: Use {@link Cogl.Snippet} api
|
|
6302
6348
|
*/
|
|
6303
6349
|
get_shader_type(): ShaderType;
|
|
6304
6350
|
|
|
@@ -6306,6 +6352,7 @@ export namespace Cogl {
|
|
|
6306
6352
|
* Replaces the current source associated with a shader with a new
|
|
6307
6353
|
* one.
|
|
6308
6354
|
* @param source Shader source.
|
|
6355
|
+
* @deprecated since 1.16: Use {@link Cogl.Snippet} api
|
|
6309
6356
|
*/
|
|
6310
6357
|
source(source: string): void;
|
|
6311
6358
|
}
|
|
@@ -6830,6 +6877,7 @@ export namespace Cogl {
|
|
|
6830
6877
|
* the texture, or if the texture is attached to a {@link Cogl.Offscreen}
|
|
6831
6878
|
* framebuffer and rendered too.
|
|
6832
6879
|
* @returns `true` if the texture was successfully allocated, otherwise `false` and `error` will be updated if it wasn't `null`.
|
|
6880
|
+
* @throws GLib.Error
|
|
6833
6881
|
*/
|
|
6834
6882
|
allocate(): boolean;
|
|
6835
6883
|
|
|
@@ -6979,6 +7027,7 @@ export namespace Cogl {
|
|
|
6979
7027
|
* @param data the source data, pointing to the first top-left pixel to set
|
|
6980
7028
|
* @param level The mipmap level to update (Normally 0 for the largest, base texture)
|
|
6981
7029
|
* @returns `true` if the data upload was successful, and `false` otherwise
|
|
7030
|
+
* @throws GLib.Error
|
|
6982
7031
|
*/
|
|
6983
7032
|
set_data(format: PixelFormat, rowstride: number, data: Uint8Array | string, level: number): boolean;
|
|
6984
7033
|
|
|
@@ -7495,15 +7544,25 @@ export namespace Cogl {
|
|
|
7495
7544
|
|
|
7496
7545
|
get_width(): number;
|
|
7497
7546
|
|
|
7547
|
+
/**
|
|
7548
|
+
* @throws GLib.Error
|
|
7549
|
+
*/
|
|
7498
7550
|
mmap(): null;
|
|
7499
7551
|
|
|
7500
7552
|
/**
|
|
7501
7553
|
* @param data
|
|
7554
|
+
* @throws GLib.Error
|
|
7502
7555
|
*/
|
|
7503
7556
|
munmap(data: null): boolean;
|
|
7504
7557
|
|
|
7558
|
+
/**
|
|
7559
|
+
* @throws GLib.Error
|
|
7560
|
+
*/
|
|
7505
7561
|
sync_read_end(): boolean;
|
|
7506
7562
|
|
|
7563
|
+
/**
|
|
7564
|
+
* @throws GLib.Error
|
|
7565
|
+
*/
|
|
7507
7566
|
sync_read_start(): boolean;
|
|
7508
7567
|
}
|
|
7509
7568
|
|