@girs/cogl-10 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.
Files changed (3) hide show
  1. package/README.md +36 -41
  2. package/cogl-10.d.ts +361 -156
  3. package/package.json +7 -7
package/cogl-10.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
 
@@ -69,15 +69,15 @@ export namespace Cogl {
69
69
  * Generic failure code, something went
70
70
  * wrong.
71
71
  */
72
- FAILED,
72
+ FAILED = 0,
73
73
  /**
74
74
  * Unknown image type.
75
75
  */
76
- UNKNOWN_TYPE,
76
+ UNKNOWN_TYPE = 1,
77
77
  /**
78
78
  * An image file was broken somehow.
79
79
  */
80
- CORRUPT_IMAGE,
80
+ CORRUPT_IMAGE = 2,
81
81
  }
82
82
 
83
83
 
@@ -90,20 +90,20 @@ export namespace Cogl {
90
90
  /**
91
91
  * Generic parse error
92
92
  */
93
- PARSE_ERROR,
93
+ PARSE_ERROR = 0,
94
94
  /**
95
95
  * Argument parse error
96
96
  */
97
- ARGUMENT_PARSE_ERROR,
97
+ ARGUMENT_PARSE_ERROR = 1,
98
98
  /**
99
99
  * Internal parser error
100
100
  */
101
- INVALID_ERROR,
101
+ INVALID_ERROR = 2,
102
102
  /**
103
103
  * Blend string not
104
104
  * supported by the GPU
105
105
  */
106
- GPU_UNSUPPORTED_ERROR,
106
+ GPU_UNSUPPORTED_ERROR = 3,
107
107
  }
108
108
 
109
109
 
@@ -121,41 +121,41 @@ export namespace Cogl {
121
121
  /**
122
122
  * Never passes.
123
123
  */
124
- NEVER,
124
+ NEVER = 512,
125
125
  /**
126
126
  * Passes if the fragment's depth
127
127
  * value is less than the value currently in the depth buffer.
128
128
  */
129
- LESS,
129
+ LESS = 513,
130
130
  /**
131
131
  * Passes if the fragment's depth
132
132
  * value is equal to the value currently in the depth buffer.
133
133
  */
134
- EQUAL,
134
+ EQUAL = 514,
135
135
  /**
136
136
  * Passes if the fragment's depth
137
137
  * value is less or equal to the value currently in the depth buffer.
138
138
  */
139
- LEQUAL,
139
+ LEQUAL = 515,
140
140
  /**
141
141
  * Passes if the fragment's depth
142
142
  * value is greater than the value currently in the depth buffer.
143
143
  */
144
- GREATER,
144
+ GREATER = 516,
145
145
  /**
146
146
  * Passes if the fragment's depth
147
147
  * value is not equal to the value currently in the depth buffer.
148
148
  */
149
- NOTEQUAL,
149
+ NOTEQUAL = 517,
150
150
  /**
151
151
  * Passes if the fragment's depth
152
152
  * value greater than or equal to the value currently in the depth buffer.
153
153
  */
154
- GEQUAL,
154
+ GEQUAL = 518,
155
155
  /**
156
156
  * Always passes.
157
157
  */
158
- ALWAYS,
158
+ ALWAYS = 519,
159
159
  }
160
160
 
161
161
 
@@ -172,37 +172,37 @@ export namespace Cogl {
172
172
  * {@link Cogl.IndicesType.INT} is supported in
173
173
  * `cogl_indices_new()`.
174
174
  */
175
- OGL_FEATURE_ID_UNSIGNED_INT_INDICES,
175
+ OGL_FEATURE_ID_UNSIGNED_INT_INDICES = 0,
176
176
  /**
177
177
  * Whether `cogl_buffer_map()` is
178
178
  * supported with CoglBufferAccess including read support.
179
179
  */
180
- OGL_FEATURE_ID_MAP_BUFFER_FOR_READ,
180
+ OGL_FEATURE_ID_MAP_BUFFER_FOR_READ = 1,
181
181
  /**
182
182
  * Whether `cogl_buffer_map()` is
183
183
  * supported with CoglBufferAccess including write support.
184
184
  */
185
- OGL_FEATURE_ID_MAP_BUFFER_FOR_WRITE,
186
- OGL_FEATURE_ID_FENCE,
185
+ OGL_FEATURE_ID_MAP_BUFFER_FOR_WRITE = 2,
186
+ OGL_FEATURE_ID_FENCE = 3,
187
187
  /**
188
188
  * Support for
189
189
  * {@link Cogl.TextureComponents.RG} as the internal components of a
190
190
  * texture.
191
191
  */
192
- OGL_FEATURE_ID_TEXTURE_RG,
192
+ OGL_FEATURE_ID_TEXTURE_RG = 4,
193
193
  /**
194
194
  * Available if the age of {@link Cogl.Onscreen} back
195
195
  * buffers are tracked and so `cogl_onscreen_get_buffer_age()` can be
196
196
  * expected to return age values other than 0.
197
197
  */
198
- OGL_FEATURE_ID_BUFFER_AGE,
199
- OGL_FEATURE_ID_TEXTURE_EGL_IMAGE_EXTERNAL,
198
+ OGL_FEATURE_ID_BUFFER_AGE = 5,
199
+ OGL_FEATURE_ID_TEXTURE_EGL_IMAGE_EXTERNAL = 6,
200
200
  /**
201
201
  * Whether blitting using
202
202
  * `cogl_blit_framebuffer()` is supported.
203
203
  */
204
- OGL_FEATURE_ID_BLIT_FRAMEBUFFER,
205
- OGL_FEATURE_ID_TIMESTAMP_QUERY,
204
+ OGL_FEATURE_ID_BLIT_FRAMEBUFFER = 7,
205
+ OGL_FEATURE_ID_TIMESTAMP_QUERY = 8,
206
206
  }
207
207
 
208
208
 
@@ -215,11 +215,11 @@ export namespace Cogl {
215
215
  * The event was not handled, continues the
216
216
  * processing
217
217
  */
218
- CONTINUE,
218
+ CONTINUE = 0,
219
219
  /**
220
220
  * Remove the event, stops the processing
221
221
  */
222
- REMOVE,
222
+ REMOVE = 1,
223
223
  }
224
224
 
225
225
 
@@ -247,7 +247,7 @@ export namespace Cogl {
247
247
  * acknowledged a frame and is ready for a
248
248
  * new frame to be created.
249
249
  */
250
- SYNC,
250
+ SYNC = 1,
251
251
  /**
252
252
  * Notifies that a frame has ended. This
253
253
  * is a good time for applications to
@@ -257,7 +257,7 @@ export namespace Cogl {
257
257
  * events should be expected after a
258
258
  * `COGL_FRAME_EVENT_COMPLETE` event.
259
259
  */
260
- COMPLETE,
260
+ COMPLETE = 2,
261
261
  }
262
262
 
263
263
 
@@ -265,7 +265,7 @@ export namespace Cogl {
265
265
  * @gir-type Enum
266
266
  */
267
267
  enum FramebufferError {
268
- FRAMEBUFFER_ERROR_ALLOCATE,
268
+ FRAMEBUFFER_ERROR_ALLOCATE = 0,
269
269
  }
270
270
 
271
271
 
@@ -277,11 +277,11 @@ export namespace Cogl {
277
277
  * @gir-type Enum
278
278
  */
279
279
  enum GraphicsResetStatus {
280
- NO_ERROR,
281
- GUILTY_CONTEXT_RESET,
282
- INNOCENT_CONTEXT_RESET,
283
- UNKNOWN_CONTEXT_RESET,
284
- PURGED_CONTEXT_RESET,
280
+ NO_ERROR = 0,
281
+ GUILTY_CONTEXT_RESET = 1,
282
+ INNOCENT_CONTEXT_RESET = 2,
283
+ UNKNOWN_CONTEXT_RESET = 3,
284
+ PURGED_CONTEXT_RESET = 4,
285
285
  }
286
286
 
287
287
 
@@ -301,15 +301,15 @@ export namespace Cogl {
301
301
  /**
302
302
  * Your indices are unsigned bytes
303
303
  */
304
- BYTE,
304
+ BYTE = 0,
305
305
  /**
306
306
  * Your indices are unsigned shorts
307
307
  */
308
- SHORT,
308
+ SHORT = 1,
309
309
  /**
310
310
  * Your indices are unsigned ints
311
311
  */
312
- INT,
312
+ INT = 2,
313
313
  }
314
314
 
315
315
 
@@ -324,41 +324,41 @@ export namespace Cogl {
324
324
  /**
325
325
  * Never let the fragment through.
326
326
  */
327
- NEVER,
327
+ NEVER = 512,
328
328
  /**
329
329
  * Let the fragment through if the incoming
330
330
  * alpha value is less than the reference alpha value
331
331
  */
332
- LESS,
332
+ LESS = 513,
333
333
  /**
334
334
  * Let the fragment through if the incoming
335
335
  * alpha value equals the reference alpha value
336
336
  */
337
- EQUAL,
337
+ EQUAL = 514,
338
338
  /**
339
339
  * Let the fragment through if the incoming
340
340
  * alpha value is less than or equal to the reference alpha value
341
341
  */
342
- LEQUAL,
342
+ LEQUAL = 515,
343
343
  /**
344
344
  * Let the fragment through if the incoming
345
345
  * alpha value is greater than the reference alpha value
346
346
  */
347
- GREATER,
347
+ GREATER = 516,
348
348
  /**
349
349
  * Let the fragment through if the incoming
350
350
  * alpha value does not equal the reference alpha value
351
351
  */
352
- NOTEQUAL,
352
+ NOTEQUAL = 517,
353
353
  /**
354
354
  * Let the fragment through if the incoming
355
355
  * alpha value is greater than or equal to the reference alpha value.
356
356
  */
357
- GEQUAL,
357
+ GEQUAL = 518,
358
358
  /**
359
359
  * Always let the fragment through.
360
360
  */
361
- ALWAYS,
361
+ ALWAYS = 519,
362
362
  }
363
363
 
364
364
 
@@ -372,19 +372,19 @@ export namespace Cogl {
372
372
  * Neither face will be
373
373
  * culled. This is the default.
374
374
  */
375
- NONE,
375
+ NONE = 0,
376
376
  /**
377
377
  * Front faces will be culled.
378
378
  */
379
- FRONT,
379
+ FRONT = 1,
380
380
  /**
381
381
  * Back faces will be culled.
382
382
  */
383
- BACK,
383
+ BACK = 2,
384
384
  /**
385
385
  * All faces will be culled.
386
386
  */
387
- BOTH,
387
+ BOTH = 3,
388
388
  }
389
389
 
390
390
 
@@ -401,38 +401,38 @@ export namespace Cogl {
401
401
  * Measuring in manhatten distance from the,
402
402
  * current pixel center, use the nearest texture texel
403
403
  */
404
- NEAREST,
404
+ NEAREST = 9728,
405
405
  /**
406
406
  * Use the weighted average of the 4 texels
407
407
  * nearest the current pixel center
408
408
  */
409
- LINEAR,
409
+ LINEAR = 9729,
410
410
  /**
411
411
  * Select the mimap level whose
412
412
  * texel size most closely matches the current pixel, and use the
413
413
  * {@link Cogl.PipelineFilter.NEAREST} criterion
414
414
  */
415
- NEAREST_MIPMAP_NEAREST,
415
+ NEAREST_MIPMAP_NEAREST = 9984,
416
416
  /**
417
417
  * Select the mimap level whose
418
418
  * texel size most closely matches the current pixel, and use the
419
419
  * {@link Cogl.PipelineFilter.LINEAR} criterion
420
420
  */
421
- LINEAR_MIPMAP_NEAREST,
421
+ LINEAR_MIPMAP_NEAREST = 9985,
422
422
  /**
423
423
  * Select the two mimap levels
424
424
  * whose texel size most closely matches the current pixel, use
425
425
  * the {@link Cogl.PipelineFilter.NEAREST} criterion on each one and take
426
426
  * their weighted average
427
427
  */
428
- NEAREST_MIPMAP_LINEAR,
428
+ NEAREST_MIPMAP_LINEAR = 9986,
429
429
  /**
430
430
  * Select the two mimap levels
431
431
  * whose texel size most closely matches the current pixel, use
432
432
  * the {@link Cogl.PipelineFilter.LINEAR} criterion on each one and take
433
433
  * their weighted average
434
434
  */
435
- LINEAR_MIPMAP_LINEAR,
435
+ LINEAR_MIPMAP_LINEAR = 9987,
436
436
  }
437
437
 
438
438
 
@@ -453,15 +453,15 @@ export namespace Cogl {
453
453
  * The texture will be repeated. This
454
454
  * is useful for example to draw a tiled background.
455
455
  */
456
- REPEAT,
457
- MIRRORED_REPEAT,
456
+ REPEAT = 10497,
457
+ MIRRORED_REPEAT = 33648,
458
458
  /**
459
459
  * The coordinates outside the
460
460
  * range 0→1 will sample copies of the edge pixels of the
461
461
  * texture. This is useful to avoid artifacts if only one copy of
462
462
  * the texture is being rendered.
463
463
  */
464
- CLAMP_TO_EDGE,
464
+ CLAMP_TO_EDGE = 33071,
465
465
  /**
466
466
  * Cogl will try to automatically
467
467
  * decide which of the above two to use. For `cogl_rectangle()`, it
@@ -472,7 +472,7 @@ export namespace Cogl {
472
472
  * layers that have point sprite coordinate generation enabled. This
473
473
  * is the default value.
474
474
  */
475
- AUTOMATIC,
475
+ AUTOMATIC = 519,
476
476
  }
477
477
 
478
478
 
@@ -480,8 +480,8 @@ export namespace Cogl {
480
480
  * @gir-type Enum
481
481
  */
482
482
  enum RendererError {
483
- XLIB_DISPLAY_OPEN,
484
- BAD_CONSTRAINT,
483
+ XLIB_DISPLAY_OPEN = 0,
484
+ BAD_CONSTRAINT = 1,
485
485
  }
486
486
 
487
487
 
@@ -508,11 +508,11 @@ export namespace Cogl {
508
508
  /**
509
509
  * A program for processing vertices
510
510
  */
511
- VERTEX,
511
+ VERTEX = 0,
512
512
  /**
513
513
  * A program for processing fragments
514
514
  */
515
- FRAGMENT,
515
+ FRAGMENT = 1,
516
516
  }
517
517
 
518
518
 
@@ -525,15 +525,15 @@ export namespace Cogl {
525
525
  /**
526
526
  * draw to both stereo buffers
527
527
  */
528
- BOTH,
528
+ BOTH = 0,
529
529
  /**
530
530
  * draw only to the left stereo buffer
531
531
  */
532
- LEFT,
532
+ LEFT = 1,
533
533
  /**
534
534
  * draw only to the left stereo buffer
535
535
  */
536
- RIGHT,
536
+ RIGHT = 2,
537
537
  }
538
538
 
539
539
 
@@ -563,12 +563,12 @@ export namespace Cogl {
563
563
  * You tried to use a feature or
564
564
  * configuration not currently available.
565
565
  */
566
- UNSUPPORTED,
566
+ UNSUPPORTED = 0,
567
567
  /**
568
568
  * You tried to allocate a resource
569
569
  * such as a texture and there wasn't enough memory.
570
570
  */
571
- NO_MEMORY,
571
+ NO_MEMORY = 1,
572
572
  }
573
573
 
574
574
 
@@ -581,25 +581,25 @@ export namespace Cogl {
581
581
  /**
582
582
  * Only the alpha component
583
583
  */
584
- A,
584
+ A = 1,
585
585
  /**
586
586
  * Red and green components. Note that
587
587
  * this can only be used if the {@link Cogl.FeatureID.OGL_FEATURE_ID_TEXTURE_RG} feature
588
588
  * is advertised.
589
589
  */
590
- RG,
590
+ RG = 2,
591
591
  /**
592
592
  * Red, green and blue components
593
593
  */
594
- RGB,
594
+ RGB = 3,
595
595
  /**
596
596
  * Red, green, blue and alpha components
597
597
  */
598
- RGBA,
598
+ RGBA = 4,
599
599
  /**
600
600
  * Only a depth component
601
601
  */
602
- DEPTH,
602
+ DEPTH = 5,
603
603
  }
604
604
 
605
605
 
@@ -612,17 +612,17 @@ export namespace Cogl {
612
612
  /**
613
613
  * Unsupported size
614
614
  */
615
- SIZE,
615
+ SIZE = 0,
616
616
  /**
617
617
  * Unsupported format
618
618
  */
619
- FORMAT,
620
- BAD_PARAMETER,
619
+ FORMAT = 1,
620
+ BAD_PARAMETER = 2,
621
621
  /**
622
622
  * A primitive texture type that is
623
623
  * unsupported by the driver was used
624
624
  */
625
- TYPE,
625
+ TYPE = 3,
626
626
  }
627
627
 
628
628
 
@@ -636,35 +636,35 @@ export namespace Cogl {
636
636
  * FIXME, equivalent to
637
637
  * <constant>GL_POINTS</constant>
638
638
  */
639
- POINTS,
639
+ POINTS = 0,
640
640
  /**
641
641
  * FIXME, equivalent to <constant>GL_LINES</constant>
642
642
  */
643
- LINES,
643
+ LINES = 1,
644
644
  /**
645
645
  * FIXME, equivalent to
646
646
  * <constant>GL_LINE_LOOP</constant>
647
647
  */
648
- LINE_LOOP,
648
+ LINE_LOOP = 2,
649
649
  /**
650
650
  * FIXME, equivalent to
651
651
  * <constant>GL_LINE_STRIP</constant>
652
652
  */
653
- LINE_STRIP,
653
+ LINE_STRIP = 3,
654
654
  /**
655
655
  * FIXME, equivalent to
656
656
  * <constant>GL_TRIANGLES</constant>
657
657
  */
658
- TRIANGLES,
658
+ TRIANGLES = 4,
659
659
  /**
660
660
  * FIXME, equivalent to
661
661
  * <constant>GL_TRIANGLE_STRIP</constant>
662
662
  */
663
- TRIANGLE_STRIP,
663
+ TRIANGLE_STRIP = 5,
664
664
  /**
665
665
  * FIXME, equivalent to <constant>GL_TRIANGLE_FAN</constant>
666
666
  */
667
- TRIANGLE_FAN,
667
+ TRIANGLE_FAN = 6,
668
668
  }
669
669
 
670
670
 
@@ -678,11 +678,11 @@ export namespace Cogl {
678
678
  /**
679
679
  * Vertices are in a clockwise order
680
680
  */
681
- CLOCKWISE,
681
+ CLOCKWISE = 0,
682
682
  /**
683
683
  * Vertices are in a counter-clockwise order
684
684
  */
685
- COUNTER_CLOCKWISE,
685
+ COUNTER_CLOCKWISE = 1,
686
686
  }
687
687
 
688
688
 
@@ -690,37 +690,59 @@ export namespace Cogl {
690
690
  * @gir-type Enum
691
691
  */
692
692
  enum WinsysFeature {
693
- VBLANK_COUNTER,
694
- VBLANK_WAIT,
695
- TEXTURE_FROM_PIXMAP,
696
- SWAP_BUFFERS_EVENT,
697
- SWAP_REGION,
698
- SWAP_REGION_THROTTLE,
699
- SWAP_REGION_SYNCHRONIZED,
700
- BUFFER_AGE,
701
- SYNC_AND_COMPLETE_EVENT,
702
- N_FEATURES,
693
+ VBLANK_COUNTER = 0,
694
+ VBLANK_WAIT = 1,
695
+ TEXTURE_FROM_PIXMAP = 2,
696
+ SWAP_BUFFERS_EVENT = 3,
697
+ SWAP_REGION = 4,
698
+ SWAP_REGION_THROTTLE = 5,
699
+ SWAP_REGION_SYNCHRONIZED = 6,
700
+ BUFFER_AGE = 7,
701
+ SYNC_AND_COMPLETE_EVENT = 8,
702
+ N_FEATURES = 9,
703
703
  }
704
704
 
705
705
 
706
+ /**
707
+ * @default 64
708
+ */
706
709
  const AFIRST_BIT: number;
707
710
 
711
+ /**
712
+ * @default 16
713
+ */
708
714
  const A_BIT: number;
709
715
 
716
+ /**
717
+ * @default 32
718
+ */
710
719
  const BGR_BIT: number;
711
720
 
721
+ /**
722
+ * @default 256
723
+ */
712
724
  const DEPTH_BIT: number;
713
725
 
714
726
  /**
715
727
  * The maximum number of planes of a pixel format (see also
716
728
  * `cogl_pixel_format_get_planes()`).
729
+ * @default 4
717
730
  */
718
731
  const PIXEL_FORMAT_MAX_PLANES: number;
719
732
 
733
+ /**
734
+ * @default 128
735
+ */
720
736
  const PREMULT_BIT: number;
721
737
 
738
+ /**
739
+ * @default 512
740
+ */
722
741
  const STENCIL_BIT: number;
723
742
 
743
+ /**
744
+ * @default 127
745
+ */
724
746
  const TEXTURE_MAX_WASTE: number;
725
747
 
726
748
  function blend_string_error_quark(): number;
@@ -773,6 +795,7 @@ export namespace Cogl {
773
795
  * @param dst_y Destination y position
774
796
  * @param width Width of region to copy
775
797
  * @param height Height of region to copy
798
+ * @throws GLib.Error
776
799
  */
777
800
  function blit_framebuffer(framebuffer: Framebuffer, dst: Framebuffer, src_x: number, src_y: number, dst_x: number, dst_y: number, width: number, height: number): boolean;
778
801
 
@@ -1184,6 +1207,7 @@ export namespace Cogl {
1184
1207
  * @returns A newly created {@link Cogl.Texture} or `null` on failure
1185
1208
  * @since 0.8
1186
1209
  * @deprecated since 1.18: Use specific constructors such as `cogl_texture_2d_new_from_file()`
1210
+ * @throws GLib.Error
1187
1211
  */
1188
1212
  function texture_new_from_file(filename: string, flags: TextureFlags, internal_format: PixelFormat): Texture;
1189
1213
 
@@ -1249,15 +1273,15 @@ export namespace Cogl {
1249
1273
  /**
1250
1274
  * Selects the primary color buffer
1251
1275
  */
1252
- COLOR,
1276
+ COLOR = 1,
1253
1277
  /**
1254
1278
  * Selects the depth buffer
1255
1279
  */
1256
- DEPTH,
1280
+ DEPTH = 2,
1257
1281
  /**
1258
1282
  * Selects the stencil buffer
1259
1283
  */
1260
- STENCIL,
1284
+ STENCIL = 4,
1261
1285
  }
1262
1286
 
1263
1287
 
@@ -1270,11 +1294,11 @@ export namespace Cogl {
1270
1294
  /**
1271
1295
  * FIXME
1272
1296
  */
1273
- WINDOW_BUFFER,
1297
+ WINDOW_BUFFER = 2,
1274
1298
  /**
1275
1299
  * FIXME
1276
1300
  */
1277
- OFFSCREEN_BUFFER,
1301
+ OFFSCREEN_BUFFER = 4,
1278
1302
  }
1279
1303
 
1280
1304
 
@@ -1282,8 +1306,8 @@ export namespace Cogl {
1282
1306
  * @gir-type Flags
1283
1307
  */
1284
1308
  enum EglImageFlags {
1285
- NONE,
1286
- NO_GET_DATA,
1309
+ NONE = 0,
1310
+ NO_GET_DATA = 1,
1287
1311
  }
1288
1312
 
1289
1313
 
@@ -1313,156 +1337,156 @@ export namespace Cogl {
1313
1337
  /**
1314
1338
  * Any format
1315
1339
  */
1316
- ANY,
1340
+ ANY = 0,
1317
1341
  /**
1318
1342
  * 8 bits alpha mask
1319
1343
  */
1320
- A_8,
1344
+ A_8 = 17,
1321
1345
  /**
1322
1346
  * RGB, 16 bits
1323
1347
  */
1324
- RGB_565,
1348
+ RGB_565 = 4,
1325
1349
  /**
1326
1350
  * RGBA, 16 bits
1327
1351
  */
1328
- RGBA_4444,
1352
+ RGBA_4444 = 21,
1329
1353
  /**
1330
1354
  * RGBA, 16 bits
1331
1355
  */
1332
- RGBA_5551,
1356
+ RGBA_5551 = 22,
1333
1357
  /**
1334
1358
  * Not currently supported
1335
1359
  */
1336
- YUV,
1360
+ YUV = 7,
1337
1361
  /**
1338
1362
  * Single luminance component
1339
1363
  */
1340
- G_8,
1364
+ G_8 = 8,
1341
1365
  /**
1342
1366
  * RG, 16 bits. Note that red-green textures
1343
1367
  * are only available if {@link Cogl.FeatureID.OGL_FEATURE_ID_TEXTURE_RG} is advertised.
1344
1368
  * See `cogl_texture_set_components()` for details.
1345
1369
  */
1346
- RG_88,
1370
+ RG_88 = 9,
1347
1371
  /**
1348
1372
  * RGB, 24 bits
1349
1373
  */
1350
- RGB_888,
1374
+ RGB_888 = 2,
1351
1375
  /**
1352
1376
  * BGR, 24 bits
1353
1377
  */
1354
- BGR_888,
1378
+ BGR_888 = 34,
1355
1379
  /**
1356
1380
  * RGBA, 32 bits
1357
1381
  */
1358
- RGBA_8888,
1382
+ RGBA_8888 = 19,
1359
1383
  /**
1360
1384
  * BGRA, 32 bits
1361
1385
  */
1362
- BGRA_8888,
1386
+ BGRA_8888 = 51,
1363
1387
  /**
1364
1388
  * ARGB, 32 bits
1365
1389
  */
1366
- ARGB_8888,
1390
+ ARGB_8888 = 83,
1367
1391
  /**
1368
1392
  * ABGR, 32 bits
1369
1393
  */
1370
- ABGR_8888,
1394
+ ABGR_8888 = 115,
1371
1395
  /**
1372
1396
  * RGBA, 32 bits, 10 bpc
1373
1397
  */
1374
- RGBA_1010102,
1398
+ RGBA_1010102 = 29,
1375
1399
  /**
1376
1400
  * BGRA, 32 bits, 10 bpc
1377
1401
  */
1378
- BGRA_1010102,
1379
- XRGB_2101010,
1402
+ BGRA_1010102 = 61,
1403
+ XRGB_2101010 = 77,
1380
1404
  /**
1381
1405
  * ARGB, 32 bits, 10 bpc
1382
1406
  */
1383
- ARGB_2101010,
1384
- XBGR_2101010,
1407
+ ARGB_2101010 = 93,
1408
+ XBGR_2101010 = 109,
1385
1409
  /**
1386
1410
  * ABGR, 32 bits, 10 bpc
1387
1411
  */
1388
- ABGR_2101010,
1412
+ ABGR_2101010 = 125,
1389
1413
  /**
1390
1414
  * RGBA half floating point, 64 bit
1391
1415
  */
1392
- RGBA_FP_16161616,
1416
+ RGBA_FP_16161616 = 27,
1393
1417
  /**
1394
1418
  * BGRA half floating point, 64 bit
1395
1419
  */
1396
- BGRA_FP_16161616,
1397
- XRGB_FP_16161616,
1420
+ BGRA_FP_16161616 = 59,
1421
+ XRGB_FP_16161616 = 75,
1398
1422
  /**
1399
1423
  * ARGB half floating point, 64 bit
1400
1424
  */
1401
- ARGB_FP_16161616,
1402
- XBGR_FP_16161616,
1425
+ ARGB_FP_16161616 = 91,
1426
+ XBGR_FP_16161616 = 107,
1403
1427
  /**
1404
1428
  * ABGR half floating point, 64 bit
1405
1429
  */
1406
- ABGR_FP_16161616,
1430
+ ABGR_FP_16161616 = 123,
1407
1431
  /**
1408
1432
  * Premultiplied RGBA, 32 bits
1409
1433
  */
1410
- RGBA_8888_PRE,
1434
+ RGBA_8888_PRE = 147,
1411
1435
  /**
1412
1436
  * Premultiplied BGRA, 32 bits
1413
1437
  */
1414
- BGRA_8888_PRE,
1438
+ BGRA_8888_PRE = 179,
1415
1439
  /**
1416
1440
  * Premultiplied ARGB, 32 bits
1417
1441
  */
1418
- ARGB_8888_PRE,
1442
+ ARGB_8888_PRE = 211,
1419
1443
  /**
1420
1444
  * Premultiplied ABGR, 32 bits
1421
1445
  */
1422
- ABGR_8888_PRE,
1446
+ ABGR_8888_PRE = 243,
1423
1447
  /**
1424
1448
  * Premultiplied RGBA, 16 bits
1425
1449
  */
1426
- RGBA_4444_PRE,
1450
+ RGBA_4444_PRE = 149,
1427
1451
  /**
1428
1452
  * Premultiplied RGBA, 16 bits
1429
1453
  */
1430
- RGBA_5551_PRE,
1454
+ RGBA_5551_PRE = 150,
1431
1455
  /**
1432
1456
  * Premultiplied RGBA, 32 bits, 10 bpc
1433
1457
  */
1434
- RGBA_1010102_PRE,
1458
+ RGBA_1010102_PRE = 157,
1435
1459
  /**
1436
1460
  * Premultiplied BGRA, 32 bits, 10 bpc
1437
1461
  */
1438
- BGRA_1010102_PRE,
1462
+ BGRA_1010102_PRE = 189,
1439
1463
  /**
1440
1464
  * Premultiplied ARGB, 32 bits, 10 bpc
1441
1465
  */
1442
- ARGB_2101010_PRE,
1466
+ ARGB_2101010_PRE = 221,
1443
1467
  /**
1444
1468
  * Premultiplied ABGR, 32 bits, 10 bpc
1445
1469
  */
1446
- ABGR_2101010_PRE,
1470
+ ABGR_2101010_PRE = 253,
1447
1471
  /**
1448
1472
  * Premultiplied RGBA half floating point, 64 bit
1449
1473
  */
1450
- RGBA_FP_16161616_PRE,
1474
+ RGBA_FP_16161616_PRE = 155,
1451
1475
  /**
1452
1476
  * Premultiplied BGRA half floating point, 64 bit
1453
1477
  */
1454
- BGRA_FP_16161616_PRE,
1478
+ BGRA_FP_16161616_PRE = 187,
1455
1479
  /**
1456
1480
  * Premultiplied ARGB half floating point, 64 bit
1457
1481
  */
1458
- ARGB_FP_16161616_PRE,
1482
+ ARGB_FP_16161616_PRE = 219,
1459
1483
  /**
1460
1484
  * Premultiplied ABGR half floating point, 64 bit
1461
1485
  */
1462
- ABGR_FP_16161616_PRE,
1463
- DEPTH_16,
1464
- DEPTH_32,
1465
- DEPTH_24_STENCIL_8,
1486
+ ABGR_FP_16161616_PRE = 251,
1487
+ DEPTH_16 = 265,
1488
+ DEPTH_32 = 259,
1489
+ DEPTH_24_STENCIL_8 = 771,
1466
1490
  }
1467
1491
 
1468
1492
 
@@ -1475,7 +1499,7 @@ export namespace Cogl {
1475
1499
  /**
1476
1500
  * Read from the color buffer
1477
1501
  */
1478
- READ_PIXELS_COLOR_BUFFER,
1502
+ READ_PIXELS_COLOR_BUFFER = 1,
1479
1503
  }
1480
1504
 
1481
1505
 
@@ -1488,7 +1512,7 @@ export namespace Cogl {
1488
1512
  /**
1489
1513
  * No flags specified
1490
1514
  */
1491
- NONE,
1515
+ NONE = 0,
1492
1516
  /**
1493
1517
  * Disables the automatic generation of
1494
1518
  * the mipmap pyramid from the base level image whenever it is
@@ -1496,16 +1520,16 @@ export namespace Cogl {
1496
1520
  * rendered with a mipmap filter so it should be free to leave out
1497
1521
  * this flag when using other filtering modes
1498
1522
  */
1499
- NO_AUTO_MIPMAP,
1523
+ NO_AUTO_MIPMAP = 1,
1500
1524
  /**
1501
1525
  * Disables the slicing of the texture
1502
1526
  */
1503
- NO_SLICING,
1527
+ NO_SLICING = 2,
1504
1528
  /**
1505
1529
  * Disables the insertion of the texture inside
1506
1530
  * the texture atlas used by Cogl
1507
1531
  */
1508
- NO_ATLAS,
1532
+ NO_ATLAS = 4,
1509
1533
  }
1510
1534
 
1511
1535
 
@@ -1545,27 +1569,32 @@ export namespace Cogl {
1545
1569
  * Parses an image file enough to extract the width and height
1546
1570
  * of the bitmap.
1547
1571
  * @param filename the file to check
1572
+ * @since 1.0
1548
1573
  */
1549
1574
  static get_size_from_file(filename: string): [boolean, number, number];
1550
1575
 
1551
1576
  // Methods
1552
1577
  /**
1553
1578
  * @returns the {@link Cogl.PixelFormat} that the data for the bitmap is in.
1579
+ * @since 1.10
1554
1580
  */
1555
1581
  get_format(): PixelFormat;
1556
1582
 
1557
1583
  /**
1558
1584
  * @returns the height of the bitmap
1585
+ * @since 1.10
1559
1586
  */
1560
1587
  get_height(): number;
1561
1588
 
1562
1589
  /**
1563
1590
  * @returns the rowstride of the bitmap. This is the number of bytes between the address of start of one row to the address of the next row in the image.
1591
+ * @since 1.10
1564
1592
  */
1565
1593
  get_rowstride(): number;
1566
1594
 
1567
1595
  /**
1568
1596
  * @returns the width of the bitmap
1597
+ * @since 1.10
1569
1598
  */
1570
1599
  get_width(): number;
1571
1600
  }
@@ -1672,6 +1701,7 @@ export namespace Cogl {
1672
1701
  * Gets the frame counter for the {@link Cogl.Onscreen} that corresponds
1673
1702
  * to this frame.
1674
1703
  * @returns The frame counter value
1704
+ * @since 1.14
1675
1705
  */
1676
1706
  get_frame_counter(): number;
1677
1707
 
@@ -1687,6 +1717,7 @@ export namespace Cogl {
1687
1717
  * <note>Some buggy Mesa drivers up to 9.0.1 may
1688
1718
  * incorrectly report non-monotonic timestamps.</note>
1689
1719
  * @returns the presentation time for the frame
1720
+ * @since 1.14
1690
1721
  */
1691
1722
  get_presentation_time_us(): number;
1692
1723
 
@@ -1700,6 +1731,7 @@ export namespace Cogl {
1700
1731
  * more reliable than using `cogl_frame_info_get_output()` followed by
1701
1732
  * `cogl_output_get_refresh_rate()`.</note>
1702
1733
  * @returns the refresh rate in Hertz
1734
+ * @since 1.14
1703
1735
  */
1704
1736
  get_refresh_rate(): number;
1705
1737
 
@@ -1804,6 +1836,7 @@ export namespace Cogl {
1804
1836
  * used. The disadvantage of relying on automatic allocation is that the
1805
1837
  * program will abort with an error message if there is an error during
1806
1838
  * automatic allocation.</note>
1839
+ * @since 1.8
1807
1840
  * @virtual
1808
1841
  */
1809
1842
  vfunc_allocate(): boolean;
@@ -1826,6 +1859,8 @@ export namespace Cogl {
1826
1859
  * program will abort with an error message if there is an error during
1827
1860
  * automatic allocation.</note>
1828
1861
  * @returns `true` if there were no error allocating the framebuffer, else `false`.
1862
+ * @since 1.8
1863
+ * @throws GLib.Error
1829
1864
  */
1830
1865
  allocate(): boolean;
1831
1866
 
@@ -1834,6 +1869,7 @@ export namespace Cogl {
1834
1869
  * that includes the color buffer then the specified `color` is used.
1835
1870
  * @param buffers A mask of {@link Cogl.BufferBit}<!-- -->'s identifying which auxiliary buffers to clear
1836
1871
  * @param color The color to clear the color buffer too if specified in `buffers`.
1872
+ * @since 1.8
1837
1873
  */
1838
1874
  clear(buffers: bigint | number, color: Color): void;
1839
1875
 
@@ -1845,6 +1881,7 @@ export namespace Cogl {
1845
1881
  * @param green The green component of color to clear the color buffer too if specified in `buffers`.
1846
1882
  * @param blue The blue component of color to clear the color buffer too if specified in `buffers`.
1847
1883
  * @param alpha The alpha component of color to clear the color buffer too if specified in `buffers`.
1884
+ * @since 1.8
1848
1885
  */
1849
1886
  clear4f(buffers: bigint | number, red: number, green: number, blue: number, alpha: number): void;
1850
1887
 
@@ -1866,6 +1903,7 @@ export namespace Cogl {
1866
1903
  * framebuffer, and it's not meaningful to try and discard the color buffer of
1867
1904
  * a {@link Cogl.Offscreen} framebuffer since they are single-buffered.
1868
1905
  * @param buffers A {@link Cogl.BufferBit} mask of which ancillary buffers you want to discard.
1906
+ * @since 1.8
1869
1907
  */
1870
1908
  discard_buffers(buffers: bigint | number): void;
1871
1909
 
@@ -1915,6 +1953,7 @@ export namespace Cogl {
1915
1953
  * @param y_2 y coordinate lower right on screen.
1916
1954
  * @param tex_coords An array containing groups of 4 float values: [s_1, t_1, s_2, t_2] that are interpreted as two texture coordinates; one for the top left texel, and one for the bottom right texel. Each value should be between 0.0 and 1.0, where the coordinate (0.0, 0.0) represents the top left of the texture, and (1.0, 1.0) the bottom right.
1917
1955
  * @param tex_coords_len The length of the `tex_coords` array. (For one layer and one group of texture coordinates, this would be 4)
1956
+ * @since 1.10
1918
1957
  */
1919
1958
  draw_multitextured_rectangle(pipeline: Pipeline, x_1: number, y_1: number, x_2: number, y_2: number, tex_coords: number[], tex_coords_len: number): void;
1920
1959
 
@@ -1935,6 +1974,7 @@ export namespace Cogl {
1935
1974
  * @param y_1 Y coordinate of the top-left corner
1936
1975
  * @param x_2 X coordinate of the bottom-right corner
1937
1976
  * @param y_2 Y coordinate of the bottom-right corner
1977
+ * @since 1.10
1938
1978
  */
1939
1979
  draw_rectangle(pipeline: Pipeline, x_1: number, y_1: number, x_2: number, y_2: number): void;
1940
1980
 
@@ -1961,6 +2001,7 @@ export namespace Cogl {
1961
2001
  * @param pipeline A {@link Cogl.Pipeline} state object
1962
2002
  * @param coordinates an array of coordinates containing groups of 4 float values: [x_1, y_1, x_2, y_2] that are interpreted as two position coordinates; one for the top left of the rectangle (x1, y1), and one for the bottom right of the rectangle (x2, y2).
1963
2003
  * @param n_rectangles number of rectangles defined in `coordinates`.
2004
+ * @since 1.10
1964
2005
  */
1965
2006
  draw_rectangles(pipeline: Pipeline, coordinates: number[], n_rectangles: number): void;
1966
2007
 
@@ -2000,6 +2041,7 @@ export namespace Cogl {
2000
2041
  * @param t_1 T texture coordinate of the top-left coorner
2001
2042
  * @param s_2 S texture coordinate of the bottom-right coorner
2002
2043
  * @param t_2 T texture coordinate of the bottom-right coorner
2044
+ * @since 1.10
2003
2045
  */
2004
2046
  draw_textured_rectangle(pipeline: Pipeline, x_1: number, y_1: number, x_2: number, y_2: number, s_1: number, t_1: number, s_2: number, t_2: number): void;
2005
2047
 
@@ -2041,6 +2083,7 @@ export namespace Cogl {
2041
2083
  * @param pipeline A {@link Cogl.Pipeline} state object
2042
2084
  * @param coordinates an array containing groups of 8 float values: [x_1, y_1, x_2, y_2, s_1, t_1, s_2, t_2] that have the same meaning as the arguments for `cogl_framebuffer_draw_textured_rectangle()`.
2043
2085
  * @param n_rectangles number of rectangles to `coordinates` to draw
2086
+ * @since 1.10
2044
2087
  */
2045
2088
  draw_textured_rectangles(pipeline: Pipeline, coordinates: number[], n_rectangles: number): void;
2046
2089
 
@@ -2054,6 +2097,7 @@ export namespace Cogl {
2054
2097
  * One example might be for benchmarking purposes to be sure timing
2055
2098
  * measurements reflect the time that the GPU is busy for not just the time it
2056
2099
  * takes to queue rendering commands.
2100
+ * @since 1.10
2057
2101
  */
2058
2102
  finish(): void;
2059
2103
 
@@ -2075,18 +2119,21 @@ export namespace Cogl {
2075
2119
  * @param top Y position of the top clipping plane where it intersects the near clipping plane
2076
2120
  * @param z_near The distance to the near clipping plane (Must be positive)
2077
2121
  * @param z_far The distance to the far clipping plane (Must be positive)
2122
+ * @since 1.10
2078
2123
  */
2079
2124
  frustum(left: number, right: number, bottom: number, top: number, z_near: number, z_far: number): void;
2080
2125
 
2081
2126
  /**
2082
2127
  * Retrieves the number of alpha bits of `framebuffer`
2083
2128
  * @returns the number of bits
2129
+ * @since 1.8
2084
2130
  */
2085
2131
  get_alpha_bits(): number;
2086
2132
 
2087
2133
  /**
2088
2134
  * Retrieves the number of blue bits of `framebuffer`
2089
2135
  * @returns the number of bits
2136
+ * @since 1.8
2090
2137
  */
2091
2138
  get_blue_bits(): number;
2092
2139
 
@@ -2095,12 +2142,14 @@ export namespace Cogl {
2095
2142
  * instantiated within. This is the {@link Cogl.Context} that was passed to
2096
2143
  * `cogl_onscreen_new()` for example.
2097
2144
  * @returns The {@link Cogl.Context} that the given `framebuffer` was instantiated within.
2145
+ * @since 1.8
2098
2146
  */
2099
2147
  get_context(): Context;
2100
2148
 
2101
2149
  /**
2102
2150
  * Retrieves the number of depth bits of `framebuffer`
2103
2151
  * @returns the number of bits
2152
+ * @since 2.0
2104
2153
  */
2105
2154
  get_depth_bits(): number;
2106
2155
 
@@ -2108,6 +2157,7 @@ export namespace Cogl {
2108
2157
  * Queries whether depth buffer writing is enabled for `framebuffer`. This
2109
2158
  * can be controlled via `cogl_framebuffer_set_depth_write_enabled()`.
2110
2159
  * @returns `true` if depth writing is enabled or `false` if not.
2160
+ * @since 1.18
2111
2161
  */
2112
2162
  get_depth_write_enabled(): boolean;
2113
2163
 
@@ -2119,18 +2169,21 @@ export namespace Cogl {
2119
2169
  * display pipeline does not support dithering. This value only represents
2120
2170
  * the user's request for dithering.</note>
2121
2171
  * @returns `true` if dithering has been requested or `false` if not.
2172
+ * @since 1.8
2122
2173
  */
2123
2174
  get_dither_enabled(): boolean;
2124
2175
 
2125
2176
  /**
2126
2177
  * Retrieves the number of green bits of `framebuffer`
2127
2178
  * @returns the number of bits
2179
+ * @since 1.8
2128
2180
  */
2129
2181
  get_green_bits(): number;
2130
2182
 
2131
2183
  /**
2132
2184
  * Queries the current height of the given `framebuffer`.
2133
2185
  * @returns The height of `framebuffer`.
2186
+ * @since 1.8
2134
2187
  */
2135
2188
  get_height(): number;
2136
2189
 
@@ -2138,17 +2191,20 @@ export namespace Cogl {
2138
2191
 
2139
2192
  /**
2140
2193
  * Stores the current model-view matrix in `matrix`.
2194
+ * @since 1.10
2141
2195
  */
2142
2196
  get_modelview_matrix(): Graphene.Matrix;
2143
2197
 
2144
2198
  /**
2145
2199
  * Stores the current projection matrix in `matrix`.
2200
+ * @since 1.10
2146
2201
  */
2147
2202
  get_projection_matrix(): Graphene.Matrix;
2148
2203
 
2149
2204
  /**
2150
2205
  * Retrieves the number of red bits of `framebuffer`
2151
2206
  * @returns the number of bits
2207
+ * @since 1.8
2152
2208
  */
2153
2209
  get_red_bits(): number;
2154
2210
 
@@ -2166,6 +2222,7 @@ export namespace Cogl {
2166
2222
  * framebuffer has been allocated the value will reflect the actual
2167
2223
  * number of samples that will be made by the GPU.
2168
2224
  * @returns The number of point samples made per pixel when rasterizing geometry or 0 if single-sample rendering has been chosen.
2225
+ * @since 1.10
2169
2226
  */
2170
2227
  get_samples_per_pixel(): number;
2171
2228
 
@@ -2173,6 +2230,7 @@ export namespace Cogl {
2173
2230
  * Gets the current {@link Cogl.StereoMode}, which defines which stereo buffers
2174
2231
  * should be drawn to. See `cogl_framebuffer_set_stereo_mode()`.
2175
2232
  * @returns A {@link Cogl.StereoMode}
2233
+ * @since 1.20
2176
2234
  */
2177
2235
  get_stereo_mode(): StereoMode;
2178
2236
 
@@ -2181,6 +2239,7 @@ export namespace Cogl {
2181
2239
  * using `cogl_framebuffer_set_viewport()` or the default values which are 0, 0,
2182
2240
  * framebuffer_width and framebuffer_height. The values are written into the
2183
2241
  * given `viewport` array.
2242
+ * @since 1.8
2184
2243
  */
2185
2244
  get_viewport4fv(): number[];
2186
2245
 
@@ -2188,6 +2247,7 @@ export namespace Cogl {
2188
2247
  * Queries the height of the viewport as set using `cogl_framebuffer_set_viewport()`
2189
2248
  * or the default value which is the height of the framebuffer.
2190
2249
  * @returns The height of the viewport.
2250
+ * @since 1.8
2191
2251
  */
2192
2252
  get_viewport_height(): number;
2193
2253
 
@@ -2195,6 +2255,7 @@ export namespace Cogl {
2195
2255
  * Queries the width of the viewport as set using `cogl_framebuffer_set_viewport()`
2196
2256
  * or the default value which is the width of the framebuffer.
2197
2257
  * @returns The width of the viewport.
2258
+ * @since 1.8
2198
2259
  */
2199
2260
  get_viewport_width(): number;
2200
2261
 
@@ -2202,6 +2263,7 @@ export namespace Cogl {
2202
2263
  * Queries the x coordinate of the viewport origin as set using `cogl_framebuffer_set_viewport()`
2203
2264
  * or the default value which is 0.
2204
2265
  * @returns The x coordinate of the viewport origin.
2266
+ * @since 1.8
2205
2267
  */
2206
2268
  get_viewport_x(): number;
2207
2269
 
@@ -2209,17 +2271,20 @@ export namespace Cogl {
2209
2271
  * Queries the y coordinate of the viewport origin as set using `cogl_framebuffer_set_viewport()`
2210
2272
  * or the default value which is 0.
2211
2273
  * @returns The y coordinate of the viewport origin.
2274
+ * @since 1.8
2212
2275
  */
2213
2276
  get_viewport_y(): number;
2214
2277
 
2215
2278
  /**
2216
2279
  * Queries the current width of the given `framebuffer`.
2217
2280
  * @returns The width of `framebuffer`.
2281
+ * @since 1.8
2218
2282
  */
2219
2283
  get_width(): number;
2220
2284
 
2221
2285
  /**
2222
2286
  * Resets the current model-view matrix to the identity matrix.
2287
+ * @since 1.10
2223
2288
  */
2224
2289
  identity_matrix(): void;
2225
2290
 
@@ -2232,6 +2297,7 @@ export namespace Cogl {
2232
2297
  * @param y_2 The y coordinate for the second horizontal clipping plane
2233
2298
  * @param near The <emphasis>distance</emphasis> to the near clipping plane (will be <emphasis>negative</emphasis> if the plane is behind the viewer)
2234
2299
  * @param far The <emphasis>distance</emphasis> to the far clipping plane (will be <emphasis>negative</emphasis> if the plane is behind the viewer)
2300
+ * @since 1.10
2235
2301
  */
2236
2302
  orthographic(x_1: number, y_1: number, x_2: number, y_2: number, near: number, far: number): void;
2237
2303
 
@@ -2247,6 +2313,7 @@ export namespace Cogl {
2247
2313
  * @param aspect The (width over height) aspect ratio for display
2248
2314
  * @param z_near The distance to the near clipping plane (Must be positive, and must not be 0)
2249
2315
  * @param z_far The distance to the far clipping plane (Must be positive)
2316
+ * @since 1.10
2250
2317
  */
2251
2318
  perspective(fov_y: number, aspect: number, z_near: number, z_far: number): void;
2252
2319
 
@@ -2254,17 +2321,20 @@ export namespace Cogl {
2254
2321
  * Reverts the clipping region to the state before the last call to
2255
2322
  * `cogl_framebuffer_push_scissor_clip()`, `cogl_framebuffer_push_rectangle_clip()`
2256
2323
  * `cogl_framebuffer_push_path_clip()`, or `cogl_framebuffer_push_primitive_clip()`.
2324
+ * @since 1.10
2257
2325
  */
2258
2326
  pop_clip(): void;
2259
2327
 
2260
2328
  /**
2261
2329
  * Restores the model-view matrix on the top of the matrix stack.
2330
+ * @since 1.10
2262
2331
  */
2263
2332
  pop_matrix(): void;
2264
2333
 
2265
2334
  /**
2266
2335
  * Copies the current model-view matrix onto the matrix stack. The matrix
2267
2336
  * can later be restored with `cogl_framebuffer_pop_matrix()`.
2337
+ * @since 1.10
2268
2338
  */
2269
2339
  push_matrix(): void;
2270
2340
 
@@ -2281,6 +2351,7 @@ export namespace Cogl {
2281
2351
  * @param y_1 y coordinate for top left corner of the clip rectangle
2282
2352
  * @param x_2 x coordinate for bottom right corner of the clip rectangle
2283
2353
  * @param y_2 y coordinate for bottom right corner of the clip rectangle
2354
+ * @since 1.10
2284
2355
  */
2285
2356
  push_rectangle_clip(x_1: number, y_1: number, x_2: number, y_2: number): void;
2286
2357
 
@@ -2302,6 +2373,7 @@ export namespace Cogl {
2302
2373
  * @param y top edge of the clip rectangle in window coordinates
2303
2374
  * @param width width of the clip rectangle
2304
2375
  * @param height height of the clip rectangle
2376
+ * @since 1.10
2305
2377
  */
2306
2378
  push_scissor_clip(x: number, y: number, width: number, height: number): void;
2307
2379
 
@@ -2339,6 +2411,7 @@ export namespace Cogl {
2339
2411
  * @param format The pixel format to store the data in
2340
2412
  * @param pixels The address of the buffer to store the data in
2341
2413
  * @returns `true` if the read succeeded or `false` otherwise.
2414
+ * @since 1.10
2342
2415
  */
2343
2416
  read_pixels(x: number, y: number, width: number, height: number, format: PixelFormat, pixels: number): boolean;
2344
2417
 
@@ -2358,6 +2431,7 @@ export namespace Cogl {
2358
2431
  * @param source Identifies which auxiliary buffer you want to read (only COGL_READ_PIXELS_COLOR_BUFFER supported currently)
2359
2432
  * @param bitmap The bitmap to store the results in.
2360
2433
  * @returns `true` if the read succeeded or `false` otherwise. The function is only likely to fail if the bitmap points to a pixel buffer and it could not be mapped.
2434
+ * @since 1.10
2361
2435
  */
2362
2436
  read_pixels_into_bitmap(x: number, y: number, source: ReadPixelsFlags, bitmap: Bitmap): boolean;
2363
2437
 
@@ -2382,6 +2456,7 @@ export namespace Cogl {
2382
2456
  * If you are performing incremental updates to a framebuffer you
2383
2457
  * should consider using `cogl_framebuffer_resolve_samples_region()`
2384
2458
  * instead to avoid resolving redundant pixels.
2459
+ * @since 1.8
2385
2460
  */
2386
2461
  resolve_samples(): void;
2387
2462
 
@@ -2411,6 +2486,7 @@ export namespace Cogl {
2411
2486
  * @param y top-left y coordinate of region to resolve
2412
2487
  * @param width width of region to resolve
2413
2488
  * @param height height of region to resolve
2489
+ * @since 1.8
2414
2490
  */
2415
2491
  resolve_samples_region(x: number, y: number, width: number, height: number): void;
2416
2492
 
@@ -2424,6 +2500,7 @@ export namespace Cogl {
2424
2500
  * @param x X-component of vertex to rotate around.
2425
2501
  * @param y Y-component of vertex to rotate around.
2426
2502
  * @param z Z-component of vertex to rotate around.
2503
+ * @since 1.10
2427
2504
  */
2428
2505
  rotate(angle: number, x: number, y: number, z: number): void;
2429
2506
 
@@ -2431,6 +2508,7 @@ export namespace Cogl {
2431
2508
  * Multiplies the current model-view matrix by one that rotates
2432
2509
  * according to the rotation described by `euler`.
2433
2510
  * @param euler A {@link Graphene.Euler}
2511
+ * @since 2.0
2434
2512
  */
2435
2513
  rotate_euler(euler: Graphene.Euler): void;
2436
2514
 
@@ -2440,6 +2518,7 @@ export namespace Cogl {
2440
2518
  * @param x Amount to scale along the x-axis
2441
2519
  * @param y Amount to scale along the y-axis
2442
2520
  * @param z Amount to scale along the z-axis
2521
+ * @since 1.10
2443
2522
  */
2444
2523
  scale(x: number, y: number, z: number): void;
2445
2524
 
@@ -2451,6 +2530,7 @@ export namespace Cogl {
2451
2530
  *
2452
2531
  * Depth buffer writing is enabled by default.
2453
2532
  * @param depth_write_enabled `true` to enable depth writing or `false` to disable
2533
+ * @since 1.18
2454
2534
  */
2455
2535
  set_depth_write_enabled(depth_write_enabled: boolean): void;
2456
2536
 
@@ -2469,18 +2549,21 @@ export namespace Cogl {
2469
2549
  *
2470
2550
  * Dithering is enabled by default.
2471
2551
  * @param dither_enabled `true` to enable dithering or `false` to disable
2552
+ * @since 1.8
2472
2553
  */
2473
2554
  set_dither_enabled(dither_enabled: boolean): void;
2474
2555
 
2475
2556
  /**
2476
2557
  * Sets `matrix` as the new model-view matrix.
2477
2558
  * @param matrix the new model-view matrix
2559
+ * @since 1.10
2478
2560
  */
2479
2561
  set_modelview_matrix(matrix: Graphene.Matrix): void;
2480
2562
 
2481
2563
  /**
2482
2564
  * Sets `matrix` as the new projection matrix.
2483
2565
  * @param matrix the new projection matrix
2566
+ * @since 1.10
2484
2567
  */
2485
2568
  set_projection_matrix(matrix: Graphene.Matrix): void;
2486
2569
 
@@ -2518,6 +2601,7 @@ export namespace Cogl {
2518
2601
  * framebuffer has changed this can lead to redundant work being
2519
2602
  * done.</note>
2520
2603
  * @param samples_per_pixel The minimum number of samples per pixel
2604
+ * @since 1.8
2521
2605
  */
2522
2606
  set_samples_per_pixel(samples_per_pixel: number): void;
2523
2607
 
@@ -2530,6 +2614,7 @@ export namespace Cogl {
2530
2614
  * enabled. (See `cogl_onscreen_template_set_stereo_enabled()`,
2531
2615
  * `cogl_framebuffer_get_is_stereo()`.)
2532
2616
  * @param stereo_mode A {@link Cogl.StereoMode} specifying which stereo buffers should be drawn tow.
2617
+ * @since 1.20
2533
2618
  */
2534
2619
  set_stereo_mode(stereo_mode: StereoMode): void;
2535
2620
 
@@ -2553,12 +2638,14 @@ export namespace Cogl {
2553
2638
  * @param y The top-left y coordinate of the viewport origin (only integers supported currently)
2554
2639
  * @param width The width of the viewport (only integers supported currently)
2555
2640
  * @param height The height of the viewport (only integers supported currently)
2641
+ * @since 1.8
2556
2642
  */
2557
2643
  set_viewport(x: number, y: number, width: number, height: number): void;
2558
2644
 
2559
2645
  /**
2560
2646
  * Multiplies the current model-view matrix by the given matrix.
2561
2647
  * @param matrix the matrix to multiply with the current model-view
2648
+ * @since 1.10
2562
2649
  */
2563
2650
  transform(matrix: Graphene.Matrix): void;
2564
2651
 
@@ -2568,6 +2655,7 @@ export namespace Cogl {
2568
2655
  * @param x Distance to translate along the x-axis
2569
2656
  * @param y Distance to translate along the y-axis
2570
2657
  * @param z Distance to translate along the z-axis
2658
+ * @since 1.10
2571
2659
  */
2572
2660
  translate(x: number, y: number, z: number): void;
2573
2661
  }
@@ -2741,6 +2829,7 @@ export namespace Cogl {
2741
2829
  * explicitly checked to determine if Cogl is currently tracking the
2742
2830
  * age of {@link Cogl.Onscreen} back buffer contents. If this feature is
2743
2831
  * missing then this function will always return 0.</note>
2832
+ * @since 1.14
2744
2833
  * @virtual
2745
2834
  */
2746
2835
  vfunc_get_buffer_age(): number;
@@ -2797,6 +2886,7 @@ export namespace Cogl {
2797
2886
  * @param rectangles An array of integer 4-tuples representing damaged rectangles as (x, y, width, height) tuples.
2798
2887
  * @param n_rectangles The number of 4-tuples to be read from `rectangles`
2799
2888
  * @param info
2889
+ * @since 1.16
2800
2890
  * @virtual
2801
2891
  */
2802
2892
  vfunc_swap_buffers_with_damage(rectangles: number, n_rectangles: number, info: FrameInfo): void;
@@ -2814,6 +2904,7 @@ export namespace Cogl {
2814
2904
  * @param rectangles An array of integer 4-tuples representing rectangles as (x, y, width, height) tuples.
2815
2905
  * @param n_rectangles The number of 4-tuples to be read from `rectangles`
2816
2906
  * @param info
2907
+ * @since 1.10
2817
2908
  * @virtual
2818
2909
  */
2819
2910
  vfunc_swap_region(rectangles: number, n_rectangles: number, info: FrameInfo): void;
@@ -2839,6 +2930,7 @@ export namespace Cogl {
2839
2930
  * @param callback A callback function to call for dirty events
2840
2931
  * @param destroy An optional callback to destroy `user_data` when the `callback` is removed or `onscreen` is freed.
2841
2932
  * @returns a {@link Cogl.OnscreenDirtyClosure} pointer that can be used to remove the callback and associated `user_data` later.
2933
+ * @since 1.16
2842
2934
  */
2843
2935
  add_dirty_callback(callback: OnscreenDirtyCallback, destroy: UserDataDestroyCallback | null): OnscreenDirtyClosure;
2844
2936
 
@@ -2869,6 +2961,7 @@ export namespace Cogl {
2869
2961
  * @param callback A callback function to call for frame events
2870
2962
  * @param destroy An optional callback to destroy `user_data` when the `callback` is removed or `onscreen` is freed.
2871
2963
  * @returns a {@link Cogl.FrameClosure} pointer that can be used to remove the callback and associated `user_data` later.
2964
+ * @since 1.14
2872
2965
  */
2873
2966
  add_frame_callback(callback: FrameCallback, destroy: UserDataDestroyCallback | null): FrameClosure;
2874
2967
 
@@ -2912,6 +3005,7 @@ export namespace Cogl {
2912
3005
  * age of {@link Cogl.Onscreen} back buffer contents. If this feature is
2913
3006
  * missing then this function will always return 0.</note>
2914
3007
  * @returns The age of the buffer contents or 0 when the buffer contents are undefined.
3008
+ * @since 1.14
2915
3009
  */
2916
3010
  get_buffer_age(): number;
2917
3011
 
@@ -2921,6 +3015,7 @@ export namespace Cogl {
2921
3015
  * `cogl_onscreen_swap_buffers()` or `cogl_onscreen_swap_region()`
2922
3016
  * is called.
2923
3017
  * @returns the current frame counter value
3018
+ * @since 1.14
2924
3019
  */
2925
3020
  get_frame_counter(): number;
2926
3021
 
@@ -2939,6 +3034,7 @@ export namespace Cogl {
2939
3034
  * requests e.g. to show an already visible window. This also means
2940
3035
  * that it's acceptable to alternatively use native APIs to show and
2941
3036
  * hide windows without confusing Cogl.</note>
3037
+ * @since 2.0
2942
3038
  */
2943
3039
  hide(): void;
2944
3040
 
@@ -2960,6 +3056,7 @@ export namespace Cogl {
2960
3056
  * `cogl_onscreen_add_dirty_callback()` to destroy the user data then
2961
3057
  * this will also get called.
2962
3058
  * @param closure A {@link Cogl.OnscreenDirtyClosure} returned from `cogl_onscreen_add_dirty_callback()`
3059
+ * @since 1.16
2963
3060
  */
2964
3061
  remove_dirty_callback(closure: OnscreenDirtyClosure): void;
2965
3062
 
@@ -2971,6 +3068,7 @@ export namespace Cogl {
2971
3068
  * `cogl_onscreen_add_frame_callback()` to destroy the user data then
2972
3069
  * this will get called.
2973
3070
  * @param closure A {@link Cogl.FrameClosure} returned from `cogl_onscreen_add_frame_callback()`
3071
+ * @since 1.14
2974
3072
  */
2975
3073
  remove_frame_callback(closure: FrameClosure): void;
2976
3074
 
@@ -2995,6 +3093,7 @@ export namespace Cogl {
2995
3093
  * requests e.g. to show an already visible window. This also means
2996
3094
  * that it's acceptable to alternatively use native APIs to show and
2997
3095
  * hide windows without confusing Cogl.</note>
3096
+ * @since 2.0
2998
3097
  */
2999
3098
  show(): void;
3000
3099
 
@@ -3014,6 +3113,7 @@ export namespace Cogl {
3014
3113
  * render a full buffer for every frame.</note>
3015
3114
  * @param frame_info
3016
3115
  * @param user_data
3116
+ * @since 1.10
3017
3117
  */
3018
3118
  swap_buffers(frame_info: FrameInfo, user_data: null): void;
3019
3119
 
@@ -3059,6 +3159,7 @@ export namespace Cogl {
3059
3159
  * @param n_rectangles The number of 4-tuples to be read from `rectangles`
3060
3160
  * @param info
3061
3161
  * @param user_data
3162
+ * @since 1.16
3062
3163
  */
3063
3164
  swap_buffers_with_damage(rectangles: number, n_rectangles: number, info: FrameInfo, user_data: null): void;
3064
3165
 
@@ -3076,6 +3177,7 @@ export namespace Cogl {
3076
3177
  * @param n_rectangles The number of 4-tuples to be read from `rectangles`
3077
3178
  * @param info
3078
3179
  * @param user_data
3180
+ * @since 1.10
3079
3181
  */
3080
3182
  swap_region(rectangles: number, n_rectangles: number, info: FrameInfo, user_data: null): void;
3081
3183
  }
@@ -3121,32 +3223,38 @@ export namespace Cogl {
3121
3223
  * keep track of a pipelines ancestry which we may use to help minimize GPU
3122
3224
  * state changes.
3123
3225
  * @returns a pointer to the newly allocated {@link Cogl.Pipeline}
3226
+ * @since 2.0
3124
3227
  */
3125
3228
  copy(): Pipeline;
3126
3229
 
3127
3230
  /**
3128
3231
  * Iterates all the layer indices of the given `pipeline`.
3129
3232
  * @param callback A {@link Cogl.PipelineLayerCallback} to be called for each layer index
3233
+ * @since 2.0
3130
3234
  */
3131
3235
  foreach_layer(callback: PipelineLayerCallback): void;
3132
3236
 
3133
3237
  /**
3134
3238
  * @returns The alpha test function of `pipeline`.
3239
+ * @since 2.0
3135
3240
  */
3136
3241
  get_alpha_test_function(): PipelineAlphaFunc;
3137
3242
 
3138
3243
  /**
3139
3244
  * @returns The alpha test reference value of `pipeline`.
3245
+ * @since 2.0
3140
3246
  */
3141
3247
  get_alpha_test_reference(): number;
3142
3248
 
3143
3249
  /**
3144
3250
  * Retrieves the current pipeline color.
3251
+ * @since 2.0
3145
3252
  */
3146
3253
  get_color(): Color;
3147
3254
 
3148
3255
  /**
3149
3256
  * @returns the cull face mode that was previously set with `cogl_pipeline_set_cull_face_mode()`. Status: Unstable
3257
+ * @since 2.0
3150
3258
  */
3151
3259
  get_cull_face_mode(): PipelineCullFaceMode;
3152
3260
 
@@ -3159,6 +3267,7 @@ export namespace Cogl {
3159
3267
  * {@link Cogl.Winding.CLOCKWISE} sets them to be clockwise. The default is
3160
3268
  * {@link Cogl.Winding.COUNTER_CLOCKWISE}.
3161
3269
  * @returns The `pipeline` front face winding Status: Unstable
3270
+ * @since 2.0
3162
3271
  */
3163
3272
  get_front_face_winding(): Winding;
3164
3273
 
@@ -3171,6 +3280,7 @@ export namespace Cogl {
3171
3280
  * changed using `cogl_pipeline_set_layer_filters()`.
3172
3281
  * @param layer_index the layer number to change.
3173
3282
  * @returns The magnification {@link Cogl.PipelineFilter} for the specified layer.
3283
+ * @since 1.10
3174
3284
  */
3175
3285
  get_layer_mag_filter(layer_index: number): PipelineFilter;
3176
3286
 
@@ -3183,6 +3293,7 @@ export namespace Cogl {
3183
3293
  * changed using `cogl_pipeline_set_layer_filters()`.
3184
3294
  * @param layer_index the layer number to change.
3185
3295
  * @returns The minification {@link Cogl.PipelineFilter} for the specified layer.
3296
+ * @since 1.10
3186
3297
  */
3187
3298
  get_layer_min_filter(layer_index: number): PipelineFilter;
3188
3299
 
@@ -3191,12 +3302,14 @@ export namespace Cogl {
3191
3302
  * texture layer.
3192
3303
  * @param layer_index the layer number to check.
3193
3304
  * @returns whether the texture coordinates will be replaced with point sprite coordinates.
3305
+ * @since 2.0
3194
3306
  */
3195
3307
  get_layer_point_sprite_coords_enabled(layer_index: number): boolean;
3196
3308
 
3197
3309
  /**
3198
3310
  * @param layer_index the index of the layer
3199
3311
  * @returns the texture that was set for the given layer of the pipeline or `null` if no texture was set.
3312
+ * @since 1.10
3200
3313
  */
3201
3314
  get_layer_texture(layer_index: number): Texture;
3202
3315
 
@@ -3205,6 +3318,7 @@ export namespace Cogl {
3205
3318
  * layer.
3206
3319
  * @param layer_index the layer number to change.
3207
3320
  * @returns the wrap mode for the 's' coordinate of texture lookups on this layer.
3321
+ * @since 1.6
3208
3322
  */
3209
3323
  get_layer_wrap_mode_s(layer_index: number): PipelineWrapMode;
3210
3324
 
@@ -3213,17 +3327,20 @@ export namespace Cogl {
3213
3327
  * layer.
3214
3328
  * @param layer_index the layer number to change.
3215
3329
  * @returns the wrap mode for the 't' coordinate of texture lookups on this layer.
3330
+ * @since 1.6
3216
3331
  */
3217
3332
  get_layer_wrap_mode_t(layer_index: number): PipelineWrapMode;
3218
3333
 
3219
3334
  /**
3220
3335
  * Retrieves the number of layers defined for the given `pipeline`
3221
3336
  * @returns the number of layers
3337
+ * @since 2.0
3222
3338
  */
3223
3339
  get_n_layers(): number;
3224
3340
 
3225
3341
  /**
3226
3342
  * @returns `true` if the pipeline has per-vertex point size enabled or `false` otherwise. The per-vertex point size can be enabled with `cogl_pipeline_set_per_vertex_point_size()`.
3343
+ * @since 2.0
3227
3344
  */
3228
3345
  get_per_vertex_point_size(): boolean;
3229
3346
 
@@ -3231,6 +3348,7 @@ export namespace Cogl {
3231
3348
  * Get the size of points drawn when {@link Cogl.VerticesMode.POINTS} is
3232
3349
  * used with the vertex buffer API.
3233
3350
  * @returns the point size of the `pipeline`.
3351
+ * @since 2.0
3234
3352
  */
3235
3353
  get_point_size(): number;
3236
3354
 
@@ -3246,6 +3364,7 @@ export namespace Cogl {
3246
3364
  * before calling this function.
3247
3365
  * @param uniform_name The name of a uniform
3248
3366
  * @returns A integer representing the location of the given uniform.
3367
+ * @since 2.0
3249
3368
  */
3250
3369
  get_uniform_location(uniform_name: string): number;
3251
3370
 
@@ -3253,12 +3372,14 @@ export namespace Cogl {
3253
3372
  * Queries what user program has been associated with the given
3254
3373
  * `pipeline` using `cogl_pipeline_set_user_program()`.
3255
3374
  * @returns The current user program or `null`.
3375
+ * @since 2.0
3256
3376
  */
3257
3377
  get_user_program(): Handle;
3258
3378
 
3259
3379
  /**
3260
3380
  * This function removes a layer from your pipeline
3261
3381
  * @param layer_index Specifies the layer you want to remove
3382
+ * @since 1.10
3262
3383
  */
3263
3384
  remove_layer(layer_index: number): void;
3264
3385
 
@@ -3272,6 +3393,7 @@ export namespace Cogl {
3272
3393
  * The default is {@link Cogl.PipelineAlphaFunc.ALWAYS}
3273
3394
  * @param alpha_func A `CoglPipelineAlphaFunc` constant
3274
3395
  * @param alpha_reference A reference point that the chosen alpha function uses to compare incoming fragments to.
3396
+ * @since 2.0
3275
3397
  */
3276
3398
  set_alpha_test_function(alpha_func: PipelineAlphaFunc, alpha_reference: number): void;
3277
3399
 
@@ -3343,6 +3465,8 @@ export namespace Cogl {
3343
3465
  * is in premultiplied form.
3344
3466
  * @param blend_string A <link linkend="cogl-Blend-Strings">Cogl blend string</link> describing the desired blend function.
3345
3467
  * @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).
3468
+ * @since 2.0
3469
+ * @throws GLib.Error
3346
3470
  */
3347
3471
  set_blend(blend_string: string): boolean;
3348
3472
 
@@ -3350,6 +3474,7 @@ export namespace Cogl {
3350
3474
  * When blending is setup to reference a CONSTANT blend factor then
3351
3475
  * blending will depend on the constant set with this function.
3352
3476
  * @param constant_color The constant color you want
3477
+ * @since 2.0
3353
3478
  */
3354
3479
  set_blend_constant(constant_color: Color): void;
3355
3480
 
@@ -3363,6 +3488,7 @@ export namespace Cogl {
3363
3488
  *
3364
3489
  * The default value is (1.0, 1.0, 1.0, 1.0)
3365
3490
  * @param color The components of the color
3491
+ * @since 2.0
3366
3492
  */
3367
3493
  set_color(color: Color): void;
3368
3494
 
@@ -3374,6 +3500,7 @@ export namespace Cogl {
3374
3500
  * @param green The green component
3375
3501
  * @param blue The blue component
3376
3502
  * @param alpha The alpha component
3503
+ * @since 2.0
3377
3504
  */
3378
3505
  set_color4f(red: number, green: number, blue: number, alpha: number): void;
3379
3506
 
@@ -3385,6 +3512,7 @@ export namespace Cogl {
3385
3512
  * @param green The green component
3386
3513
  * @param blue The blue component
3387
3514
  * @param alpha The alpha component
3515
+ * @since 2.0
3388
3516
  */
3389
3517
  set_color4ub(red: number, green: number, blue: number, alpha: number): void;
3390
3518
 
@@ -3404,6 +3532,7 @@ export namespace Cogl {
3404
3532
  *
3405
3533
  * Status: Unstable
3406
3534
  * @param cull_face_mode The new mode to set
3535
+ * @since 2.0
3407
3536
  */
3408
3537
  set_cull_face_mode(cull_face_mode: PipelineCullFaceMode): void;
3409
3538
 
@@ -3418,6 +3547,7 @@ export namespace Cogl {
3418
3547
  *
3419
3548
  * Status: Unstable
3420
3549
  * @param front_winding the winding order
3550
+ * @since 2.0
3421
3551
  */
3422
3552
  set_front_face_winding(front_winding: Winding): void;
3423
3553
 
@@ -3501,6 +3631,8 @@ export namespace Cogl {
3501
3631
  * @param layer_index Specifies the layer you want define a combine function for
3502
3632
  * @param blend_string A <link linkend="cogl-Blend-Strings">Cogl blend string</link> describing the desired texture combine function.
3503
3633
  * @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
3634
+ * @since 2.0
3635
+ * @throws GLib.Error
3504
3636
  */
3505
3637
  set_layer_combine(layer_index: number, blend_string: string): boolean;
3506
3638
 
@@ -3509,6 +3641,7 @@ export namespace Cogl {
3509
3641
  * description then you can use this function to define its value.
3510
3642
  * @param layer_index Specifies the layer you want to specify a constant used for texture combining
3511
3643
  * @param constant The constant color you want
3644
+ * @since 2.0
3512
3645
  */
3513
3646
  set_layer_combine_constant(layer_index: number, constant: Color): void;
3514
3647
 
@@ -3523,6 +3656,7 @@ export namespace Cogl {
3523
3656
  * @param layer_index the layer number to change.
3524
3657
  * @param min_filter the filter used when scaling a texture down.
3525
3658
  * @param mag_filter the filter used when magnifying a texture.
3659
+ * @since 1.10
3526
3660
  */
3527
3661
  set_layer_filters(layer_index: number, min_filter: PipelineFilter, mag_filter: PipelineFilter): void;
3528
3662
 
@@ -3531,6 +3665,7 @@ export namespace Cogl {
3531
3665
  * and rotate a single layer of a pipeline used to fill your geometry.
3532
3666
  * @param layer_index the index for the layer inside `pipeline`
3533
3667
  * @param matrix the transformation matrix for the layer
3668
+ * @since 1.10
3534
3669
  */
3535
3670
  set_layer_matrix(layer_index: number, matrix: Graphene.Matrix): void;
3536
3671
 
@@ -3550,6 +3685,7 @@ export namespace Cogl {
3550
3685
  * specify the texture type so that any pipeline copies can share the
3551
3686
  * internal texture type state for efficiency.
3552
3687
  * @param layer_index The layer number to modify
3688
+ * @since 1.10
3553
3689
  */
3554
3690
  set_layer_null_texture(layer_index: number): void;
3555
3691
 
@@ -3563,6 +3699,8 @@ export namespace Cogl {
3563
3699
  * @param layer_index the layer number to change.
3564
3700
  * @param enable whether to enable point sprite coord generation.
3565
3701
  * @returns `true` if the function succeeds, `false` otherwise.
3702
+ * @since 2.0
3703
+ * @throws GLib.Error
3566
3704
  */
3567
3705
  set_layer_point_sprite_coords_enabled(layer_index: number, enable: boolean): boolean;
3568
3706
 
@@ -3579,6 +3717,7 @@ export namespace Cogl {
3579
3717
  * `cogl_pipeline_set_layer_wrap_mode_t()` separately.
3580
3718
  * @param layer_index the layer number to change.
3581
3719
  * @param mode the new wrap mode
3720
+ * @since 2.0
3582
3721
  */
3583
3722
  set_layer_wrap_mode(layer_index: number, mode: PipelineWrapMode): void;
3584
3723
 
@@ -3586,6 +3725,7 @@ export namespace Cogl {
3586
3725
  * Sets the wrap mode for the 's' coordinate of texture lookups on this layer.
3587
3726
  * @param layer_index the layer number to change.
3588
3727
  * @param mode the new wrap mode
3728
+ * @since 2.0
3589
3729
  */
3590
3730
  set_layer_wrap_mode_s(layer_index: number, mode: PipelineWrapMode): void;
3591
3731
 
@@ -3593,6 +3733,7 @@ export namespace Cogl {
3593
3733
  * Sets the wrap mode for the 't' coordinate of texture lookups on this layer.
3594
3734
  * @param layer_index the layer number to change.
3595
3735
  * @param mode the new wrap mode
3736
+ * @since 2.0
3596
3737
  */
3597
3738
  set_layer_wrap_mode_t(layer_index: number, mode: PipelineWrapMode): void;
3598
3739
 
@@ -3609,6 +3750,8 @@ export namespace Cogl {
3609
3750
  * undefined.
3610
3751
  * @param enable whether to enable per-vertex point size
3611
3752
  * @returns `true` if the change succeeded or `false` otherwise
3753
+ * @since 2.0
3754
+ * @throws GLib.Error
3612
3755
  */
3613
3756
  set_per_vertex_point_size(enable: boolean): boolean;
3614
3757
 
@@ -3626,6 +3769,7 @@ export namespace Cogl {
3626
3769
  * if an application wants to draw points it must make sure to use a
3627
3770
  * pipeline that has an explicit point size set on it.
3628
3771
  * @param point_size the new point size.
3772
+ * @since 2.0
3629
3773
  */
3630
3774
  set_point_size(point_size: number): void;
3631
3775
 
@@ -3642,6 +3786,7 @@ export namespace Cogl {
3642
3786
  * uniform.
3643
3787
  * @param uniform_location The uniform's location identifier
3644
3788
  * @param value The new value for the uniform
3789
+ * @since 2.0
3645
3790
  */
3646
3791
  set_uniform_1f(uniform_location: number, value: number): void;
3647
3792
 
@@ -3658,6 +3803,7 @@ export namespace Cogl {
3658
3803
  * uniform or a sampler uniform.
3659
3804
  * @param uniform_location The uniform's location identifier
3660
3805
  * @param value The new value for the uniform
3806
+ * @since 2.0
3661
3807
  */
3662
3808
  set_uniform_1i(uniform_location: number, value: number): void;
3663
3809
 
@@ -3678,6 +3824,7 @@ export namespace Cogl {
3678
3824
  * @param n_components The number of components in the corresponding uniform's type
3679
3825
  * @param count The number of values to set
3680
3826
  * @param value Pointer to the new values to set
3827
+ * @since 2.0
3681
3828
  */
3682
3829
  set_uniform_float(uniform_location: number, n_components: number, count: number, value: number): void;
3683
3830
 
@@ -3698,6 +3845,7 @@ export namespace Cogl {
3698
3845
  * @param n_components The number of components in the corresponding uniform's type
3699
3846
  * @param count The number of values to set
3700
3847
  * @param value Pointer to the new values to set
3848
+ * @since 2.0
3701
3849
  */
3702
3850
  set_uniform_int(uniform_location: number, n_components: number, count: number, value: number): void;
3703
3851
 
@@ -3724,6 +3872,7 @@ export namespace Cogl {
3724
3872
  * @param count The number of values to set
3725
3873
  * @param transpose Whether to transpose the matrix
3726
3874
  * @param value Pointer to the new values to set
3875
+ * @since 2.0
3727
3876
  */
3728
3877
  set_uniform_matrix(uniform_location: number, dimensions: number, count: number, transpose: boolean, value: number): void;
3729
3878
 
@@ -3764,6 +3913,7 @@ export namespace Cogl {
3764
3913
  * meantime we hope this will handle most practical GLSL and ARBfp
3765
3914
  * requirements.
3766
3915
  * @param program A {@link Cogl.Handle} to a linked CoglProgram
3916
+ * @since 2.0
3767
3917
  */
3768
3918
  set_user_program(program: Handle): void;
3769
3919
  }
@@ -3819,6 +3969,7 @@ export namespace Cogl {
3819
3969
  * the texture, or if the texture is attached to a {@link Cogl.Offscreen}
3820
3970
  * framebuffer and rendered too.</note>
3821
3971
  * @returns `true` if the texture was successfully allocated, otherwise `false` and `error` will be updated if it wasn't `null`.
3972
+ * @throws GLib.Error
3822
3973
  */
3823
3974
  allocate(): boolean;
3824
3975
 
@@ -3830,6 +3981,7 @@ export namespace Cogl {
3830
3981
  * is {@link Cogl.TextureComponents.RGBA}. The other constructors which take
3831
3982
  * a %CoglBitmap or a data pointer default to the same components as
3832
3983
  * the pixel format of the data.
3984
+ * @since 1.18
3833
3985
  */
3834
3986
  get_components(): TextureComponents;
3835
3987
 
@@ -3876,6 +4028,7 @@ export namespace Cogl {
3876
4028
  *
3877
4029
  * By default the pre-multipled state is `TRUE`.
3878
4030
  * @returns `true` if red, green and blue components are internally stored pre-multiplied by the alpha value or `false` if not.
4031
+ * @since 1.18
3879
4032
  */
3880
4033
  get_premultiplied(): boolean;
3881
4034
 
@@ -3913,6 +4066,7 @@ export namespace Cogl {
3913
4066
  * an image format as long as {@link Cogl.TextureComponents.RG} isn't used
3914
4067
  * as the texture's components.
3915
4068
  * @param components
4069
+ * @since 1.18
3916
4070
  */
3917
4071
  set_components(components: TextureComponents): void;
3918
4072
 
@@ -3964,6 +4118,7 @@ export namespace Cogl {
3964
4118
  * @param data the source data, pointing to the first top-left pixel to set
3965
4119
  * @param level The mipmap level to update (Normally 0 for the largest, base texture)
3966
4120
  * @returns `true` if the data upload was successful, and `false` otherwise
4121
+ * @throws GLib.Error
3967
4122
  */
3968
4123
  set_data(format: PixelFormat, rowstride: number, data: Uint8Array | string, level: number): boolean;
3969
4124
 
@@ -3990,6 +4145,7 @@ export namespace Cogl {
3990
4145
  *
3991
4146
  * By default the `premultipled` state is `TRUE`.
3992
4147
  * @param premultiplied Whether any internally stored red, green or blue components are pre-multiplied by an alpha component.
4148
+ * @since 1.18
3993
4149
  */
3994
4150
  set_premultiplied(premultiplied: boolean): void;
3995
4151
 
@@ -4027,6 +4183,7 @@ export namespace Cogl {
4027
4183
  * @param dst_height height of destination region to write. (Must be less than or equal to the bitmap height)
4028
4184
  * @param bitmap The source bitmap to read from
4029
4185
  * @returns `true` if the subregion upload was successful, and `false` otherwise
4186
+ * @since 1.8
4030
4187
  */
4031
4188
  set_region_from_bitmap(src_x: number, src_y: number, dst_x: number, dst_y: number, dst_width: number, dst_height: number, bitmap: Bitmap): boolean;
4032
4189
  }
@@ -4074,6 +4231,7 @@ export namespace Cogl {
4074
4231
  * the texture, or if the texture is attached to a {@link Cogl.Offscreen}
4075
4232
  * framebuffer and rendered too.</note>
4076
4233
  * @returns `true` if the texture was successfully allocated, otherwise `false` and `error` will be updated if it wasn't `null`.
4234
+ * @throws GLib.Error
4077
4235
  */
4078
4236
  allocate(): boolean;
4079
4237
 
@@ -4085,6 +4243,7 @@ export namespace Cogl {
4085
4243
  * is {@link Cogl.TextureComponents.RGBA}. The other constructors which take
4086
4244
  * a %CoglBitmap or a data pointer default to the same components as
4087
4245
  * the pixel format of the data.
4246
+ * @since 1.18
4088
4247
  */
4089
4248
  get_components(): TextureComponents;
4090
4249
 
@@ -4131,6 +4290,7 @@ export namespace Cogl {
4131
4290
  *
4132
4291
  * By default the pre-multipled state is `TRUE`.
4133
4292
  * @returns `true` if red, green and blue components are internally stored pre-multiplied by the alpha value or `false` if not.
4293
+ * @since 1.18
4134
4294
  */
4135
4295
  get_premultiplied(): boolean;
4136
4296
 
@@ -4168,6 +4328,7 @@ export namespace Cogl {
4168
4328
  * an image format as long as {@link Cogl.TextureComponents.RG} isn't used
4169
4329
  * as the texture's components.
4170
4330
  * @param components
4331
+ * @since 1.18
4171
4332
  */
4172
4333
  set_components(components: TextureComponents): void;
4173
4334
 
@@ -4219,6 +4380,7 @@ export namespace Cogl {
4219
4380
  * @param data the source data, pointing to the first top-left pixel to set
4220
4381
  * @param level The mipmap level to update (Normally 0 for the largest, base texture)
4221
4382
  * @returns `true` if the data upload was successful, and `false` otherwise
4383
+ * @throws GLib.Error
4222
4384
  */
4223
4385
  set_data(format: PixelFormat, rowstride: number, data: Uint8Array | string, level: number): boolean;
4224
4386
 
@@ -4245,6 +4407,7 @@ export namespace Cogl {
4245
4407
  *
4246
4408
  * By default the `premultipled` state is `TRUE`.
4247
4409
  * @param premultiplied Whether any internally stored red, green or blue components are pre-multiplied by an alpha component.
4410
+ * @since 1.18
4248
4411
  */
4249
4412
  set_premultiplied(premultiplied: boolean): void;
4250
4413
 
@@ -4282,6 +4445,7 @@ export namespace Cogl {
4282
4445
  * @param dst_height height of destination region to write. (Must be less than or equal to the bitmap height)
4283
4446
  * @param bitmap The source bitmap to read from
4284
4447
  * @returns `true` if the subregion upload was successful, and `false` otherwise
4448
+ * @since 1.8
4285
4449
  */
4286
4450
  set_region_from_bitmap(src_x: number, src_y: number, dst_x: number, dst_y: number, dst_width: number, dst_height: number, bitmap: Bitmap): boolean;
4287
4451
  }
@@ -4310,6 +4474,7 @@ export namespace Cogl {
4310
4474
  * parameter, when using {@link Cogl.Color}<!-- -->s as keys in a {@link GLib.HashTable}.
4311
4475
  * @param v1 a {@link Cogl.Color}
4312
4476
  * @param v2 a {@link Cogl.Color}
4477
+ * @since 1.0
4313
4478
  */
4314
4479
  static equal(v1: null, v2: null): boolean;
4315
4480
 
@@ -4319,6 +4484,7 @@ export namespace Cogl {
4319
4484
  * @param hue hue value, in the 0 .. 360 range
4320
4485
  * @param saturation saturation value, in the 0 .. 1 range
4321
4486
  * @param luminance luminance value, in the 0 .. 1 range
4487
+ * @since 1.16
4322
4488
  */
4323
4489
  static init_from_hsl(hue: number, saturation: number, luminance: number): Color;
4324
4490
 
@@ -4326,11 +4492,13 @@ export namespace Cogl {
4326
4492
  /**
4327
4493
  * Creates a copy of `color`
4328
4494
  * @returns a newly-allocated {@link Cogl.Color}. Use `cogl_color_free()` to free the allocate resources
4495
+ * @since 1.0
4329
4496
  */
4330
4497
  copy(): Color;
4331
4498
 
4332
4499
  /**
4333
4500
  * Frees the resources allocated by `cogl_color_new()` and `cogl_color_copy()`
4501
+ * @since 1.0
4334
4502
  */
4335
4503
  free(): void;
4336
4504
 
@@ -4338,6 +4506,7 @@ export namespace Cogl {
4338
4506
  * Retrieves the alpha channel of `color` as a fixed point
4339
4507
  * value between 0 and 1.0.
4340
4508
  * @returns the alpha channel of the passed color
4509
+ * @since 1.0
4341
4510
  */
4342
4511
  get_alpha(): number;
4343
4512
 
@@ -4345,6 +4514,7 @@ export namespace Cogl {
4345
4514
  * Retrieves the alpha channel of `color` as a byte value
4346
4515
  * between 0 and 255
4347
4516
  * @returns the alpha channel of the passed color
4517
+ * @since 1.0
4348
4518
  */
4349
4519
  get_alpha_byte(): number;
4350
4520
 
@@ -4352,6 +4522,7 @@ export namespace Cogl {
4352
4522
  * Retrieves the alpha channel of `color` as a floating point
4353
4523
  * value between 0.0 and 1.0
4354
4524
  * @returns the alpha channel of the passed color
4525
+ * @since 1.0
4355
4526
  */
4356
4527
  get_alpha_float(): number;
4357
4528
 
@@ -4359,6 +4530,7 @@ export namespace Cogl {
4359
4530
  * Retrieves the blue channel of `color` as a fixed point
4360
4531
  * value between 0 and 1.0.
4361
4532
  * @returns the blue channel of the passed color
4533
+ * @since 1.0
4362
4534
  */
4363
4535
  get_blue(): number;
4364
4536
 
@@ -4366,6 +4538,7 @@ export namespace Cogl {
4366
4538
  * Retrieves the blue channel of `color` as a byte value
4367
4539
  * between 0 and 255
4368
4540
  * @returns the blue channel of the passed color
4541
+ * @since 1.0
4369
4542
  */
4370
4543
  get_blue_byte(): number;
4371
4544
 
@@ -4373,6 +4546,7 @@ export namespace Cogl {
4373
4546
  * Retrieves the blue channel of `color` as a floating point
4374
4547
  * value between 0.0 and 1.0
4375
4548
  * @returns the blue channel of the passed color
4549
+ * @since 1.0
4376
4550
  */
4377
4551
  get_blue_float(): number;
4378
4552
 
@@ -4380,6 +4554,7 @@ export namespace Cogl {
4380
4554
  * Retrieves the green channel of `color` as a fixed point
4381
4555
  * value between 0 and 1.0.
4382
4556
  * @returns the green channel of the passed color
4557
+ * @since 1.0
4383
4558
  */
4384
4559
  get_green(): number;
4385
4560
 
@@ -4387,6 +4562,7 @@ export namespace Cogl {
4387
4562
  * Retrieves the green channel of `color` as a byte value
4388
4563
  * between 0 and 255
4389
4564
  * @returns the green channel of the passed color
4565
+ * @since 1.0
4390
4566
  */
4391
4567
  get_green_byte(): number;
4392
4568
 
@@ -4394,6 +4570,7 @@ export namespace Cogl {
4394
4570
  * Retrieves the green channel of `color` as a floating point
4395
4571
  * value between 0.0 and 1.0
4396
4572
  * @returns the green channel of the passed color
4573
+ * @since 1.0
4397
4574
  */
4398
4575
  get_green_float(): number;
4399
4576
 
@@ -4401,6 +4578,7 @@ export namespace Cogl {
4401
4578
  * Retrieves the red channel of `color` as a fixed point
4402
4579
  * value between 0 and 1.0.
4403
4580
  * @returns the red channel of the passed color
4581
+ * @since 1.0
4404
4582
  */
4405
4583
  get_red(): number;
4406
4584
 
@@ -4408,6 +4586,7 @@ export namespace Cogl {
4408
4586
  * Retrieves the red channel of `color` as a byte value
4409
4587
  * between 0 and 255
4410
4588
  * @returns the red channel of the passed color
4589
+ * @since 1.0
4411
4590
  */
4412
4591
  get_red_byte(): number;
4413
4592
 
@@ -4415,6 +4594,7 @@ export namespace Cogl {
4415
4594
  * Retrieves the red channel of `color` as a floating point
4416
4595
  * value between 0.0 and 1.0
4417
4596
  * @returns the red channel of the passed color
4597
+ * @since 1.0
4418
4598
  */
4419
4599
  get_red_float(): number;
4420
4600
 
@@ -4424,12 +4604,14 @@ export namespace Cogl {
4424
4604
  * @param green value of the green channel, between 0 and 1.0
4425
4605
  * @param blue value of the blue channel, between 0 and 1.0
4426
4606
  * @param alpha value of the alpha channel, between 0 and 1.0
4607
+ * @since 1.4
4427
4608
  */
4428
4609
  init_from_4f(red: number, green: number, blue: number, alpha: number): void;
4429
4610
 
4430
4611
  /**
4431
4612
  * Sets the values of the passed channels into a {@link Cogl.Color}
4432
4613
  * @param color_array a pointer to an array of 4 float color components
4614
+ * @since 1.4
4433
4615
  */
4434
4616
  init_from_4fv(color_array: number): void;
4435
4617
 
@@ -4439,6 +4621,7 @@ export namespace Cogl {
4439
4621
  * @param green value of the green channel, between 0 and 255
4440
4622
  * @param blue value of the blue channel, between 0 and 255
4441
4623
  * @param alpha value of the alpha channel, between 0 and 255
4624
+ * @since 1.4
4442
4625
  */
4443
4626
  init_from_4ub(red: number, green: number, blue: number, alpha: number): void;
4444
4627
 
@@ -4446,78 +4629,91 @@ export namespace Cogl {
4446
4629
  * Converts a non-premultiplied color to a pre-multiplied color. For
4447
4630
  * example, semi-transparent red is (1.0, 0, 0, 0.5) when non-premultiplied
4448
4631
  * and (0.5, 0, 0, 0.5) when premultiplied.
4632
+ * @since 1.0
4449
4633
  */
4450
4634
  premultiply(): void;
4451
4635
 
4452
4636
  /**
4453
4637
  * Sets the alpha channel of `color` to `alpha`.
4454
4638
  * @param alpha a float value between 0.0f and 1.0f
4639
+ * @since 1.4
4455
4640
  */
4456
4641
  set_alpha(alpha: number): void;
4457
4642
 
4458
4643
  /**
4459
4644
  * Sets the alpha channel of `color` to `alpha`.
4460
4645
  * @param alpha a byte value between 0 and 255
4646
+ * @since 1.4
4461
4647
  */
4462
4648
  set_alpha_byte(alpha: number): void;
4463
4649
 
4464
4650
  /**
4465
4651
  * Sets the alpha channel of `color` to `alpha`.
4466
4652
  * @param alpha a float value between 0.0f and 1.0f
4653
+ * @since 1.4
4467
4654
  */
4468
4655
  set_alpha_float(alpha: number): void;
4469
4656
 
4470
4657
  /**
4471
4658
  * Sets the blue channel of `color` to `blue`.
4472
4659
  * @param blue a float value between 0.0f and 1.0f
4660
+ * @since 1.4
4473
4661
  */
4474
4662
  set_blue(blue: number): void;
4475
4663
 
4476
4664
  /**
4477
4665
  * Sets the blue channel of `color` to `blue`.
4478
4666
  * @param blue a byte value between 0 and 255
4667
+ * @since 1.4
4479
4668
  */
4480
4669
  set_blue_byte(blue: number): void;
4481
4670
 
4482
4671
  /**
4483
4672
  * Sets the blue channel of `color` to `blue`.
4484
4673
  * @param blue a float value between 0.0f and 1.0f
4674
+ * @since 1.4
4485
4675
  */
4486
4676
  set_blue_float(blue: number): void;
4487
4677
 
4488
4678
  /**
4489
4679
  * Sets the green channel of `color` to `green`.
4490
4680
  * @param green a float value between 0.0f and 1.0f
4681
+ * @since 1.4
4491
4682
  */
4492
4683
  set_green(green: number): void;
4493
4684
 
4494
4685
  /**
4495
4686
  * Sets the green channel of `color` to `green`.
4496
4687
  * @param green a byte value between 0 and 255
4688
+ * @since 1.4
4497
4689
  */
4498
4690
  set_green_byte(green: number): void;
4499
4691
 
4500
4692
  /**
4501
4693
  * Sets the green channel of `color` to `green`.
4502
4694
  * @param green a float value between 0.0f and 1.0f
4695
+ * @since 1.4
4503
4696
  */
4504
4697
  set_green_float(green: number): void;
4505
4698
 
4506
4699
  /**
4507
4700
  * Sets the red channel of `color` to `red`.
4508
4701
  * @param red a float value between 0.0f and 1.0f
4702
+ * @since 1.4
4509
4703
  */
4510
4704
  set_red(red: number): void;
4511
4705
 
4512
4706
  /**
4513
4707
  * Sets the red channel of `color` to `red`.
4514
4708
  * @param red a byte value between 0 and 255
4709
+ * @since 1.4
4515
4710
  */
4516
4711
  set_red_byte(red: number): void;
4517
4712
 
4518
4713
  /**
4519
4714
  * Sets the red channel of `color` to `red`.
4520
4715
  * @param red a float value between 0.0f and 1.0f
4716
+ * @since 1.4
4521
4717
  */
4522
4718
  set_red_float(red: number): void;
4523
4719
 
@@ -4526,6 +4722,7 @@ export namespace Cogl {
4526
4722
  *
4527
4723
  * The `hue` value is in the 0 .. 360 range. The `luminance` and
4528
4724
  * `saturation` values are in the 0 .. 1 range.
4725
+ * @since 1.16
4529
4726
  */
4530
4727
  to_hsl(): [number, number, number];
4531
4728
 
@@ -4533,6 +4730,7 @@ export namespace Cogl {
4533
4730
  * Converts a pre-multiplied color to a non-premultiplied color. For
4534
4731
  * example, semi-transparent red is (0.5, 0, 0, 0.5) when premultiplied
4535
4732
  * and (1.0, 0, 0, 0.5) when non-premultiplied.
4733
+ * @since 1.4
4536
4734
  */
4537
4735
  unpremultiply(): void;
4538
4736
  }
@@ -4820,6 +5018,7 @@ export namespace Cogl {
4820
5018
  * the texture, or if the texture is attached to a {@link Cogl.Offscreen}
4821
5019
  * framebuffer and rendered too.</note>
4822
5020
  * @returns `true` if the texture was successfully allocated, otherwise `false` and `error` will be updated if it wasn't `null`.
5021
+ * @throws GLib.Error
4823
5022
  */
4824
5023
  allocate(): boolean;
4825
5024
 
@@ -4831,6 +5030,7 @@ export namespace Cogl {
4831
5030
  * is {@link Cogl.TextureComponents.RGBA}. The other constructors which take
4832
5031
  * a %CoglBitmap or a data pointer default to the same components as
4833
5032
  * the pixel format of the data.
5033
+ * @since 1.18
4834
5034
  */
4835
5035
  get_components(): TextureComponents;
4836
5036
 
@@ -4877,6 +5077,7 @@ export namespace Cogl {
4877
5077
  *
4878
5078
  * By default the pre-multipled state is `TRUE`.
4879
5079
  * @returns `true` if red, green and blue components are internally stored pre-multiplied by the alpha value or `false` if not.
5080
+ * @since 1.18
4880
5081
  */
4881
5082
  get_premultiplied(): boolean;
4882
5083
 
@@ -4914,6 +5115,7 @@ export namespace Cogl {
4914
5115
  * an image format as long as {@link Cogl.TextureComponents.RG} isn't used
4915
5116
  * as the texture's components.
4916
5117
  * @param components
5118
+ * @since 1.18
4917
5119
  */
4918
5120
  set_components(components: TextureComponents): void;
4919
5121
 
@@ -4965,6 +5167,7 @@ export namespace Cogl {
4965
5167
  * @param data the source data, pointing to the first top-left pixel to set
4966
5168
  * @param level The mipmap level to update (Normally 0 for the largest, base texture)
4967
5169
  * @returns `true` if the data upload was successful, and `false` otherwise
5170
+ * @throws GLib.Error
4968
5171
  */
4969
5172
  set_data(format: PixelFormat, rowstride: number, data: Uint8Array | string, level: number): boolean;
4970
5173
 
@@ -4991,6 +5194,7 @@ export namespace Cogl {
4991
5194
  *
4992
5195
  * By default the `premultipled` state is `TRUE`.
4993
5196
  * @param premultiplied Whether any internally stored red, green or blue components are pre-multiplied by an alpha component.
5197
+ * @since 1.18
4994
5198
  */
4995
5199
  set_premultiplied(premultiplied: boolean): void;
4996
5200
 
@@ -5028,6 +5232,7 @@ export namespace Cogl {
5028
5232
  * @param dst_height height of destination region to write. (Must be less than or equal to the bitmap height)
5029
5233
  * @param bitmap The source bitmap to read from
5030
5234
  * @returns `true` if the subregion upload was successful, and `false` otherwise
5235
+ * @since 1.8
5031
5236
  */
5032
5237
  set_region_from_bitmap(src_x: number, src_y: number, dst_x: number, dst_y: number, dst_width: number, dst_height: number, bitmap: Bitmap): boolean;
5033
5238
  }