@girs/cogl-13 13.0.0-4.0.0-beta.8 → 13.0.0-4.0.0-beta.9
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 +1 -1
- package/cogl-13.d.ts +116 -0
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for Cogl-13, generated from library version 13.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.
|
|
8
|
+
GJS TypeScript type definitions for Cogl-13, generated from library version 13.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.9.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
package/cogl-13.d.ts
CHANGED
|
@@ -19,6 +19,10 @@ export namespace Cogl {
|
|
|
19
19
|
* Cogl-13
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
|
+
export namespace AttributeType {
|
|
23
|
+
export const $gtype: GObject.GType<AttributeType>;
|
|
24
|
+
}
|
|
25
|
+
|
|
22
26
|
/**
|
|
23
27
|
* Data types for the components of a vertex attribute.
|
|
24
28
|
*/
|
|
@@ -46,6 +50,10 @@ export namespace Cogl {
|
|
|
46
50
|
*/
|
|
47
51
|
FLOAT,
|
|
48
52
|
}
|
|
53
|
+
export namespace BitmapError {
|
|
54
|
+
export const $gtype: GObject.GType<BitmapError>;
|
|
55
|
+
}
|
|
56
|
+
|
|
49
57
|
/**
|
|
50
58
|
* Error codes that can be thrown when performing bitmap
|
|
51
59
|
* operations. Note that gdk_pixbuf_new_from_file() can also throw
|
|
@@ -68,6 +76,10 @@ export namespace Cogl {
|
|
|
68
76
|
*/
|
|
69
77
|
CORRUPT_IMAGE,
|
|
70
78
|
}
|
|
79
|
+
export namespace BlendStringError {
|
|
80
|
+
export const $gtype: GObject.GType<BlendStringError>;
|
|
81
|
+
}
|
|
82
|
+
|
|
71
83
|
/**
|
|
72
84
|
* Error enumeration for the blend strings parser
|
|
73
85
|
*/
|
|
@@ -90,6 +102,10 @@ export namespace Cogl {
|
|
|
90
102
|
*/
|
|
91
103
|
GPU_UNSUPPORTED_ERROR,
|
|
92
104
|
}
|
|
105
|
+
export namespace DepthTestFunction {
|
|
106
|
+
export const $gtype: GObject.GType<DepthTestFunction>;
|
|
107
|
+
}
|
|
108
|
+
|
|
93
109
|
/**
|
|
94
110
|
* When using depth testing one of these functions is used to compare
|
|
95
111
|
* the depth of an incoming fragment against the depth value currently
|
|
@@ -139,6 +155,10 @@ export namespace Cogl {
|
|
|
139
155
|
*/
|
|
140
156
|
ALWAYS,
|
|
141
157
|
}
|
|
158
|
+
export namespace FeatureID {
|
|
159
|
+
export const $gtype: GObject.GType<FeatureID>;
|
|
160
|
+
}
|
|
161
|
+
|
|
142
162
|
/**
|
|
143
163
|
* All the capabilities that can vary between different GPUs supported
|
|
144
164
|
* by Cogl. Applications that depend on any of these features should explicitly
|
|
@@ -182,6 +202,10 @@ export namespace Cogl {
|
|
|
182
202
|
OGL_FEATURE_ID_BLIT_FRAMEBUFFER,
|
|
183
203
|
OGL_FEATURE_ID_TIMESTAMP_QUERY,
|
|
184
204
|
}
|
|
205
|
+
export namespace FilterReturn {
|
|
206
|
+
export const $gtype: GObject.GType<FilterReturn>;
|
|
207
|
+
}
|
|
208
|
+
|
|
185
209
|
/**
|
|
186
210
|
* Return values for the #CoglXlibFilterFunc and #CoglWin32FilterFunc functions.
|
|
187
211
|
*/
|
|
@@ -196,6 +220,10 @@ export namespace Cogl {
|
|
|
196
220
|
*/
|
|
197
221
|
REMOVE,
|
|
198
222
|
}
|
|
223
|
+
export namespace FrameEvent {
|
|
224
|
+
export const $gtype: GObject.GType<FrameEvent>;
|
|
225
|
+
}
|
|
226
|
+
|
|
199
227
|
/**
|
|
200
228
|
* Identifiers that are passed to #CoglFrameCallback functions
|
|
201
229
|
* (registered using cogl_onscreen_add_frame_callback()) that
|
|
@@ -230,9 +258,17 @@ export namespace Cogl {
|
|
|
230
258
|
*/
|
|
231
259
|
COMPLETE,
|
|
232
260
|
}
|
|
261
|
+
export namespace FramebufferError {
|
|
262
|
+
export const $gtype: GObject.GType<FramebufferError>;
|
|
263
|
+
}
|
|
264
|
+
|
|
233
265
|
enum FramebufferError {
|
|
234
266
|
FRAMEBUFFER_ERROR_ALLOCATE,
|
|
235
267
|
}
|
|
268
|
+
export namespace GraphicsResetStatus {
|
|
269
|
+
export const $gtype: GObject.GType<GraphicsResetStatus>;
|
|
270
|
+
}
|
|
271
|
+
|
|
236
272
|
/**
|
|
237
273
|
* All the error values that might be returned by
|
|
238
274
|
* cogl_get_graphics_reset_status(). Each value's meaning corresponds
|
|
@@ -246,6 +282,10 @@ export namespace Cogl {
|
|
|
246
282
|
UNKNOWN_CONTEXT_RESET,
|
|
247
283
|
PURGED_CONTEXT_RESET,
|
|
248
284
|
}
|
|
285
|
+
export namespace IndicesType {
|
|
286
|
+
export const $gtype: GObject.GType<IndicesType>;
|
|
287
|
+
}
|
|
288
|
+
|
|
249
289
|
/**
|
|
250
290
|
* You should aim to use the smallest data type that gives you enough
|
|
251
291
|
* range, since it reduces the size of your index array and can help
|
|
@@ -271,6 +311,10 @@ export namespace Cogl {
|
|
|
271
311
|
*/
|
|
272
312
|
INT,
|
|
273
313
|
}
|
|
314
|
+
export namespace PipelineAlphaFunc {
|
|
315
|
+
export const $gtype: GObject.GType<PipelineAlphaFunc>;
|
|
316
|
+
}
|
|
317
|
+
|
|
274
318
|
/**
|
|
275
319
|
* Alpha testing happens before blending primitives with the framebuffer and
|
|
276
320
|
* gives an opportunity to discard fragments based on a comparison with the
|
|
@@ -317,6 +361,10 @@ export namespace Cogl {
|
|
|
317
361
|
*/
|
|
318
362
|
ALWAYS,
|
|
319
363
|
}
|
|
364
|
+
export namespace PipelineCullFaceMode {
|
|
365
|
+
export const $gtype: GObject.GType<PipelineCullFaceMode>;
|
|
366
|
+
}
|
|
367
|
+
|
|
320
368
|
/**
|
|
321
369
|
* Specifies which faces should be culled. This can be set on a
|
|
322
370
|
* pipeline using cogl_pipeline_set_cull_face_mode().
|
|
@@ -340,6 +388,10 @@ export namespace Cogl {
|
|
|
340
388
|
*/
|
|
341
389
|
BOTH,
|
|
342
390
|
}
|
|
391
|
+
export namespace PipelineFilter {
|
|
392
|
+
export const $gtype: GObject.GType<PipelineFilter>;
|
|
393
|
+
}
|
|
394
|
+
|
|
343
395
|
/**
|
|
344
396
|
* Texture filtering is used whenever the current pixel maps either to more
|
|
345
397
|
* than one texture element (texel) or less than one. These filter enums
|
|
@@ -385,6 +437,10 @@ export namespace Cogl {
|
|
|
385
437
|
*/
|
|
386
438
|
LINEAR_MIPMAP_LINEAR,
|
|
387
439
|
}
|
|
440
|
+
export namespace PipelineWrapMode {
|
|
441
|
+
export const $gtype: GObject.GType<PipelineWrapMode>;
|
|
442
|
+
}
|
|
443
|
+
|
|
388
444
|
/**
|
|
389
445
|
* The wrap mode specifies what happens when texture coordinates
|
|
390
446
|
* outside the range 0→1 are used. Note that if the filter mode is
|
|
@@ -421,6 +477,10 @@ export namespace Cogl {
|
|
|
421
477
|
*/
|
|
422
478
|
AUTOMATIC,
|
|
423
479
|
}
|
|
480
|
+
export namespace RendererError {
|
|
481
|
+
export const $gtype: GObject.GType<RendererError>;
|
|
482
|
+
}
|
|
483
|
+
|
|
424
484
|
enum RendererError {
|
|
425
485
|
XLIB_DISPLAY_OPEN,
|
|
426
486
|
BAD_CONSTRAINT,
|
|
@@ -438,6 +498,10 @@ export namespace Cogl {
|
|
|
438
498
|
_init(...args: any[]): void;
|
|
439
499
|
}
|
|
440
500
|
|
|
501
|
+
export namespace ShaderType {
|
|
502
|
+
export const $gtype: GObject.GType<ShaderType>;
|
|
503
|
+
}
|
|
504
|
+
|
|
441
505
|
/**
|
|
442
506
|
* Types of shaders
|
|
443
507
|
*/
|
|
@@ -451,6 +515,10 @@ export namespace Cogl {
|
|
|
451
515
|
*/
|
|
452
516
|
FRAGMENT,
|
|
453
517
|
}
|
|
518
|
+
export namespace SnippetHook {
|
|
519
|
+
export const $gtype: GObject.GType<SnippetHook>;
|
|
520
|
+
}
|
|
521
|
+
|
|
454
522
|
/**
|
|
455
523
|
* #CoglSnippetHook is used to specify a location within a
|
|
456
524
|
* #CoglPipeline where the code of the snippet should be used when it
|
|
@@ -780,6 +848,10 @@ export namespace Cogl {
|
|
|
780
848
|
*/
|
|
781
849
|
TEXTURE_LOOKUP,
|
|
782
850
|
}
|
|
851
|
+
export namespace StereoMode {
|
|
852
|
+
export const $gtype: GObject.GType<StereoMode>;
|
|
853
|
+
}
|
|
854
|
+
|
|
783
855
|
/**
|
|
784
856
|
* Represents how draw should affect the two buffers
|
|
785
857
|
* of a stereo framebuffer. See cogl_framebuffer_set_stereo_mode().
|
|
@@ -798,6 +870,10 @@ export namespace Cogl {
|
|
|
798
870
|
*/
|
|
799
871
|
RIGHT,
|
|
800
872
|
}
|
|
873
|
+
export namespace SystemError {
|
|
874
|
+
export const $gtype: GObject.GType<SystemError>;
|
|
875
|
+
}
|
|
876
|
+
|
|
801
877
|
/**
|
|
802
878
|
* Error enumeration for Cogl
|
|
803
879
|
*
|
|
@@ -829,6 +905,10 @@ export namespace Cogl {
|
|
|
829
905
|
*/
|
|
830
906
|
NO_MEMORY,
|
|
831
907
|
}
|
|
908
|
+
export namespace TextureComponents {
|
|
909
|
+
export const $gtype: GObject.GType<TextureComponents>;
|
|
910
|
+
}
|
|
911
|
+
|
|
832
912
|
/**
|
|
833
913
|
* See cogl_texture_set_components().
|
|
834
914
|
*/
|
|
@@ -856,6 +936,10 @@ export namespace Cogl {
|
|
|
856
936
|
*/
|
|
857
937
|
DEPTH,
|
|
858
938
|
}
|
|
939
|
+
export namespace TextureError {
|
|
940
|
+
export const $gtype: GObject.GType<TextureError>;
|
|
941
|
+
}
|
|
942
|
+
|
|
859
943
|
/**
|
|
860
944
|
* Error codes that can be thrown when allocating textures.
|
|
861
945
|
*/
|
|
@@ -875,6 +959,10 @@ export namespace Cogl {
|
|
|
875
959
|
*/
|
|
876
960
|
TYPE,
|
|
877
961
|
}
|
|
962
|
+
export namespace VerticesMode {
|
|
963
|
+
export const $gtype: GObject.GType<VerticesMode>;
|
|
964
|
+
}
|
|
965
|
+
|
|
878
966
|
/**
|
|
879
967
|
* Different ways of interpreting vertices when drawing.
|
|
880
968
|
*/
|
|
@@ -913,6 +1001,10 @@ export namespace Cogl {
|
|
|
913
1001
|
*/
|
|
914
1002
|
TRIANGLE_FAN,
|
|
915
1003
|
}
|
|
1004
|
+
export namespace Winding {
|
|
1005
|
+
export const $gtype: GObject.GType<Winding>;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
916
1008
|
/**
|
|
917
1009
|
* Enum used to represent the two directions of rotation. This can be
|
|
918
1010
|
* used to set the front face for culling by calling
|
|
@@ -928,6 +1020,10 @@ export namespace Cogl {
|
|
|
928
1020
|
*/
|
|
929
1021
|
COUNTER_CLOCKWISE,
|
|
930
1022
|
}
|
|
1023
|
+
export namespace WinsysFeature {
|
|
1024
|
+
export const $gtype: GObject.GType<WinsysFeature>;
|
|
1025
|
+
}
|
|
1026
|
+
|
|
931
1027
|
enum WinsysFeature {
|
|
932
1028
|
VBLANK_COUNTER,
|
|
933
1029
|
VBLANK_WAIT,
|
|
@@ -1333,6 +1429,10 @@ export namespace Cogl {
|
|
|
1333
1429
|
interface Texture2DEGLImageExternalAlloc {
|
|
1334
1430
|
(tex_2d: Texture2D): boolean;
|
|
1335
1431
|
}
|
|
1432
|
+
export namespace BufferBit {
|
|
1433
|
+
export const $gtype: GObject.GType<BufferBit>;
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1336
1436
|
/**
|
|
1337
1437
|
* Types of auxiliary buffers
|
|
1338
1438
|
*/
|
|
@@ -1350,6 +1450,10 @@ export namespace Cogl {
|
|
|
1350
1450
|
*/
|
|
1351
1451
|
STENCIL,
|
|
1352
1452
|
}
|
|
1453
|
+
export namespace BufferTarget {
|
|
1454
|
+
export const $gtype: GObject.GType<BufferTarget>;
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1353
1457
|
/**
|
|
1354
1458
|
* Target flags for FBOs.
|
|
1355
1459
|
*/
|
|
@@ -1363,10 +1467,18 @@ export namespace Cogl {
|
|
|
1363
1467
|
*/
|
|
1364
1468
|
OFFSCREEN_BUFFER,
|
|
1365
1469
|
}
|
|
1470
|
+
export namespace EglImageFlags {
|
|
1471
|
+
export const $gtype: GObject.GType<EglImageFlags>;
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1366
1474
|
enum EglImageFlags {
|
|
1367
1475
|
NONE,
|
|
1368
1476
|
NO_GET_DATA,
|
|
1369
1477
|
}
|
|
1478
|
+
export namespace PixelFormat {
|
|
1479
|
+
export const $gtype: GObject.GType<PixelFormat>;
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1370
1482
|
/**
|
|
1371
1483
|
* Pixel formats used by Cogl. For the formats with a byte per
|
|
1372
1484
|
* component, the order of the components specify the order in
|
|
@@ -1580,6 +1692,10 @@ export namespace Cogl {
|
|
|
1580
1692
|
DEPTH_32,
|
|
1581
1693
|
DEPTH_24_STENCIL_8,
|
|
1582
1694
|
}
|
|
1695
|
+
export namespace ReadPixelsFlags {
|
|
1696
|
+
export const $gtype: GObject.GType<ReadPixelsFlags>;
|
|
1697
|
+
}
|
|
1698
|
+
|
|
1583
1699
|
/**
|
|
1584
1700
|
* Flags for cogl_framebuffer_read_pixels_into_bitmap()
|
|
1585
1701
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/cogl-13",
|
|
3
|
-
"version": "13.0.0-4.0.0-beta.
|
|
3
|
+
"version": "13.0.0-4.0.0-beta.9",
|
|
4
4
|
"description": "GJS TypeScript type definitions for Cogl-13, generated from library version 13.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "cogl-13.js",
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
"test": "tsc --project tsconfig.json"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@girs/cairo-1.0": "^1.0.0-4.0.0-beta.
|
|
35
|
-
"@girs/gjs": "^4.0.0-beta.
|
|
36
|
-
"@girs/gl-1.0": "^1.0.0-4.0.0-beta.
|
|
37
|
-
"@girs/glib-2.0": "^2.80.2-4.0.0-beta.
|
|
38
|
-
"@girs/gobject-2.0": "^2.80.2-4.0.0-beta.
|
|
39
|
-
"@girs/graphene-1.0": "^1.0.0-4.0.0-beta.
|
|
34
|
+
"@girs/cairo-1.0": "^1.0.0-4.0.0-beta.9",
|
|
35
|
+
"@girs/gjs": "^4.0.0-beta.9",
|
|
36
|
+
"@girs/gl-1.0": "^1.0.0-4.0.0-beta.9",
|
|
37
|
+
"@girs/glib-2.0": "^2.80.2-4.0.0-beta.9",
|
|
38
|
+
"@girs/gobject-2.0": "^2.80.2-4.0.0-beta.9",
|
|
39
|
+
"@girs/graphene-1.0": "^1.0.0-4.0.0-beta.9"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"typescript": "*"
|