@girs/cogl-2.0 2.0.0-3.2.6 → 2.0.0-3.2.8
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-2.0-ambient.js +2 -0
- package/cogl-2.0-import.js +3 -0
- package/cogl-2.0.d.cts +50 -50
- package/cogl-2.0.d.ts +50 -50
- package/package.json +14 -8
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for Cogl-2.0, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.
|
|
8
|
+
GJS TypeScript type definitions for Cogl-2.0, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.8.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
package/cogl-2.0.d.cts
CHANGED
|
@@ -3797,7 +3797,7 @@ export interface Texture extends Object {
|
|
|
3797
3797
|
* @param key name of the key for that association
|
|
3798
3798
|
* @returns the data if found, or %NULL if no such data exists.
|
|
3799
3799
|
*/
|
|
3800
|
-
get_data(key: string
|
|
3800
|
+
get_data(key: string): any | null
|
|
3801
3801
|
/**
|
|
3802
3802
|
* Queries the GL handles for a GPU side texture through its #CoglTexture.
|
|
3803
3803
|
*
|
|
@@ -3927,7 +3927,7 @@ export interface Texture extends Object {
|
|
|
3927
3927
|
* @param key name of the key
|
|
3928
3928
|
* @param data data to associate with that key
|
|
3929
3929
|
*/
|
|
3930
|
-
set_data(key: string
|
|
3930
|
+
set_data(key: string, data: any | null): void
|
|
3931
3931
|
/**
|
|
3932
3932
|
* Affects the internal storage format for this texture by specifying
|
|
3933
3933
|
* whether red, green and blue color components should be stored as
|
|
@@ -4127,7 +4127,7 @@ export class AtlasTexture extends Object {
|
|
|
4127
4127
|
* @param filename the file to load
|
|
4128
4128
|
* @returns A new #CoglAtlasTexture object or %NULL on failure and @error will be updated.
|
|
4129
4129
|
*/
|
|
4130
|
-
static new_from_file(ctx: Context, filename: string
|
|
4130
|
+
static new_from_file(ctx: Context, filename: string): AtlasTexture
|
|
4131
4131
|
/**
|
|
4132
4132
|
* Creates a #CoglAtlasTexture with a given `width` and `height`. A
|
|
4133
4133
|
* #CoglAtlasTexture represents a sub-region within one of Cogl's
|
|
@@ -4291,7 +4291,7 @@ export class Attribute extends Object {
|
|
|
4291
4291
|
* @param type FIXME
|
|
4292
4292
|
* @returns A newly allocated #CoglAttribute describing the layout for a list of attribute values stored in @array.
|
|
4293
4293
|
*/
|
|
4294
|
-
constructor(attribute_buffer: AttributeBuffer, name: string
|
|
4294
|
+
constructor(attribute_buffer: AttributeBuffer, name: string, stride: number, offset: number, components: number, type: AttributeType)
|
|
4295
4295
|
/**
|
|
4296
4296
|
* Describes the layout for a list of vertex attribute values (For
|
|
4297
4297
|
* example, a list of texture coordinates or colors).
|
|
@@ -4371,7 +4371,7 @@ export class Attribute extends Object {
|
|
|
4371
4371
|
* @param type FIXME
|
|
4372
4372
|
* @returns A newly allocated #CoglAttribute describing the layout for a list of attribute values stored in @array.
|
|
4373
4373
|
*/
|
|
4374
|
-
static new(attribute_buffer: AttributeBuffer, name: string
|
|
4374
|
+
static new(attribute_buffer: AttributeBuffer, name: string, stride: number, offset: number, components: number, type: AttributeType): Attribute
|
|
4375
4375
|
/**
|
|
4376
4376
|
* Creates a new, single component, attribute whose value remains
|
|
4377
4377
|
* constant across all the vertices of a primitive without needing to
|
|
@@ -4389,7 +4389,7 @@ export class Attribute extends Object {
|
|
|
4389
4389
|
* @param value The constant value for the attribute
|
|
4390
4390
|
* @returns A newly allocated #CoglAttribute representing the given constant @value.
|
|
4391
4391
|
*/
|
|
4392
|
-
static new_const_1f(context: Context, name: string
|
|
4392
|
+
static new_const_1f(context: Context, name: string, value: number): Attribute
|
|
4393
4393
|
/**
|
|
4394
4394
|
* Creates a new, 2 component, attribute whose value remains
|
|
4395
4395
|
* constant across all the vertices of a primitive without needing to
|
|
@@ -4409,7 +4409,7 @@ export class Attribute extends Object {
|
|
|
4409
4409
|
* @param component1 The second component of a 2 component vector
|
|
4410
4410
|
* @returns A newly allocated #CoglAttribute representing the given constant vector.
|
|
4411
4411
|
*/
|
|
4412
|
-
static new_const_2f(context: Context, name: string
|
|
4412
|
+
static new_const_2f(context: Context, name: string, component0: number, component1: number): Attribute
|
|
4413
4413
|
/**
|
|
4414
4414
|
* Creates a new, 2 component, attribute whose value remains
|
|
4415
4415
|
* constant across all the vertices of a primitive without needing to
|
|
@@ -4428,7 +4428,7 @@ export class Attribute extends Object {
|
|
|
4428
4428
|
* @param value A pointer to a 2 component float vector
|
|
4429
4429
|
* @returns A newly allocated #CoglAttribute representing the given constant vector.
|
|
4430
4430
|
*/
|
|
4431
|
-
static new_const_2fv(context: Context, name: string
|
|
4431
|
+
static new_const_2fv(context: Context, name: string, value: number): Attribute
|
|
4432
4432
|
/**
|
|
4433
4433
|
* Creates a new matrix attribute whose value remains constant
|
|
4434
4434
|
* across all the vertices of a primitive without needing to duplicate
|
|
@@ -4453,7 +4453,7 @@ export class Attribute extends Object {
|
|
|
4453
4453
|
* @param transpose Whether the matrix should be transposed on upload or not
|
|
4454
4454
|
* @returns A newly allocated #CoglAttribute representing the given constant matrix.
|
|
4455
4455
|
*/
|
|
4456
|
-
static new_const_2x2fv(context: Context, name: string
|
|
4456
|
+
static new_const_2x2fv(context: Context, name: string, matrix2x2: number, transpose: Bool): Attribute
|
|
4457
4457
|
/**
|
|
4458
4458
|
* Creates a new, 3 component, attribute whose value remains
|
|
4459
4459
|
* constant across all the vertices of a primitive without needing to
|
|
@@ -4477,7 +4477,7 @@ export class Attribute extends Object {
|
|
|
4477
4477
|
* @param component2 The third component of a 3 component vector
|
|
4478
4478
|
* @returns A newly allocated #CoglAttribute representing the given constant vector.
|
|
4479
4479
|
*/
|
|
4480
|
-
static new_const_3f(context: Context, name: string
|
|
4480
|
+
static new_const_3f(context: Context, name: string, component0: number, component1: number, component2: number): Attribute
|
|
4481
4481
|
/**
|
|
4482
4482
|
* Creates a new, 3 component, attribute whose value remains
|
|
4483
4483
|
* constant across all the vertices of a primitive without needing to
|
|
@@ -4499,7 +4499,7 @@ export class Attribute extends Object {
|
|
|
4499
4499
|
* @param value A pointer to a 3 component float vector
|
|
4500
4500
|
* @returns A newly allocated #CoglAttribute representing the given constant vector.
|
|
4501
4501
|
*/
|
|
4502
|
-
static new_const_3fv(context: Context, name: string
|
|
4502
|
+
static new_const_3fv(context: Context, name: string, value: number): Attribute
|
|
4503
4503
|
/**
|
|
4504
4504
|
* Creates a new matrix attribute whose value remains constant
|
|
4505
4505
|
* across all the vertices of a primitive without needing to duplicate
|
|
@@ -4525,7 +4525,7 @@ export class Attribute extends Object {
|
|
|
4525
4525
|
* @param transpose Whether the matrix should be transposed on upload or not
|
|
4526
4526
|
* @returns A newly allocated #CoglAttribute representing the given constant matrix.
|
|
4527
4527
|
*/
|
|
4528
|
-
static new_const_3x3fv(context: Context, name: string
|
|
4528
|
+
static new_const_3x3fv(context: Context, name: string, matrix3x3: number, transpose: Bool): Attribute
|
|
4529
4529
|
/**
|
|
4530
4530
|
* Creates a new, 4 component, attribute whose value remains
|
|
4531
4531
|
* constant across all the vertices of a primitive without needing to
|
|
@@ -4551,7 +4551,7 @@ export class Attribute extends Object {
|
|
|
4551
4551
|
* @param component3 The fourth component of a 4 component vector
|
|
4552
4552
|
* @returns A newly allocated #CoglAttribute representing the given constant vector.
|
|
4553
4553
|
*/
|
|
4554
|
-
static new_const_4f(context: Context, name: string
|
|
4554
|
+
static new_const_4f(context: Context, name: string, component0: number, component1: number, component2: number, component3: number): Attribute
|
|
4555
4555
|
/**
|
|
4556
4556
|
* Creates a new, 4 component, attribute whose value remains
|
|
4557
4557
|
* constant across all the vertices of a primitive without needing to
|
|
@@ -4574,7 +4574,7 @@ export class Attribute extends Object {
|
|
|
4574
4574
|
* @param value A pointer to a 4 component float vector
|
|
4575
4575
|
* @returns A newly allocated #CoglAttribute representing the given constant vector.
|
|
4576
4576
|
*/
|
|
4577
|
-
static new_const_4fv(context: Context, name: string
|
|
4577
|
+
static new_const_4fv(context: Context, name: string, value: number): Attribute
|
|
4578
4578
|
/**
|
|
4579
4579
|
* Creates a new matrix attribute whose value remains constant
|
|
4580
4580
|
* across all the vertices of a primitive without needing to duplicate
|
|
@@ -4600,7 +4600,7 @@ export class Attribute extends Object {
|
|
|
4600
4600
|
* @param transpose Whether the matrix should be transposed on upload or not
|
|
4601
4601
|
* @returns A newly allocated #CoglAttribute representing the given constant matrix.
|
|
4602
4602
|
*/
|
|
4603
|
-
static new_const_4x4fv(context: Context, name: string
|
|
4603
|
+
static new_const_4x4fv(context: Context, name: string, matrix4x4: number, transpose: Bool): Attribute
|
|
4604
4604
|
_init(config?: Attribute.ConstructorProperties): void
|
|
4605
4605
|
}
|
|
4606
4606
|
|
|
@@ -4729,7 +4729,7 @@ export class Bitmap extends Object {
|
|
|
4729
4729
|
* @param filename the file to load.
|
|
4730
4730
|
* @returns a #CoglBitmap to the new loaded image data, or %NULL if loading the image failed.
|
|
4731
4731
|
*/
|
|
4732
|
-
static new_from_file(filename: string
|
|
4732
|
+
static new_from_file(filename: string): Bitmap
|
|
4733
4733
|
/**
|
|
4734
4734
|
* Creates a new #CoglBitmap with the given width, height and format.
|
|
4735
4735
|
* The initial contents of the bitmap are undefined.
|
|
@@ -4761,7 +4761,7 @@ export class Bitmap extends Object {
|
|
|
4761
4761
|
* @param filename the file to check
|
|
4762
4762
|
* @returns %TRUE if the image was successfully parsed
|
|
4763
4763
|
*/
|
|
4764
|
-
static get_size_from_file(filename: string
|
|
4764
|
+
static get_size_from_file(filename: string): [ /* returnType */ Bool, /* width */ number, /* height */ number ]
|
|
4765
4765
|
}
|
|
4766
4766
|
|
|
4767
4767
|
export module Context {
|
|
@@ -6302,7 +6302,7 @@ export interface Pipeline {
|
|
|
6302
6302
|
* @param uniform_name The name of a uniform
|
|
6303
6303
|
* @returns A integer representing the location of the given uniform.
|
|
6304
6304
|
*/
|
|
6305
|
-
get_uniform_location(uniform_name: string
|
|
6305
|
+
get_uniform_location(uniform_name: string): number
|
|
6306
6306
|
/**
|
|
6307
6307
|
* Queries what user program has been associated with the given
|
|
6308
6308
|
* `pipeline` using cogl_pipeline_set_user_program().
|
|
@@ -6417,7 +6417,7 @@ export interface Pipeline {
|
|
|
6417
6417
|
* @param blend_string A <link linkend="cogl-Blend-Strings">Cogl blend string</link> describing the desired blend function.
|
|
6418
6418
|
* @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).
|
|
6419
6419
|
*/
|
|
6420
|
-
set_blend(blend_string: string
|
|
6420
|
+
set_blend(blend_string: string): Bool
|
|
6421
6421
|
/**
|
|
6422
6422
|
* When blending is setup to reference a CONSTANT blend factor then
|
|
6423
6423
|
* blending will depend on the constant set with this function.
|
|
@@ -6605,7 +6605,7 @@ export interface Pipeline {
|
|
|
6605
6605
|
* @param blend_string A <link linkend="cogl-Blend-Strings">Cogl blend string</link> describing the desired texture combine function.
|
|
6606
6606
|
* @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
|
|
6607
6607
|
*/
|
|
6608
|
-
set_layer_combine(layer_index: number, blend_string: string
|
|
6608
|
+
set_layer_combine(layer_index: number, blend_string: string): Bool
|
|
6609
6609
|
/**
|
|
6610
6610
|
* When you are using the 'CONSTANT' color source in a layer combine
|
|
6611
6611
|
* description then you can use this function to define its value.
|
|
@@ -7688,11 +7688,11 @@ export interface Snippet {
|
|
|
7688
7688
|
|
|
7689
7689
|
// Owm methods of Cogl-2.0.Cogl.Snippet
|
|
7690
7690
|
|
|
7691
|
-
get_declarations(): string
|
|
7691
|
+
get_declarations(): string
|
|
7692
7692
|
get_hook(): SnippetHook
|
|
7693
|
-
get_post(): string
|
|
7694
|
-
get_pre(): string
|
|
7695
|
-
get_replace(): string
|
|
7693
|
+
get_post(): string
|
|
7694
|
+
get_pre(): string
|
|
7695
|
+
get_replace(): string
|
|
7696
7696
|
/**
|
|
7697
7697
|
* Sets a source string that will be inserted in the global scope of
|
|
7698
7698
|
* the generated shader when this snippet is used on a pipeline. This
|
|
@@ -7704,7 +7704,7 @@ export interface Snippet {
|
|
|
7704
7704
|
* immutable.
|
|
7705
7705
|
* @param declarations The new source string for the declarations section of this snippet.
|
|
7706
7706
|
*/
|
|
7707
|
-
set_declarations(declarations: string
|
|
7707
|
+
set_declarations(declarations: string): void
|
|
7708
7708
|
/**
|
|
7709
7709
|
* Sets a source string that will be inserted after the hook point in
|
|
7710
7710
|
* the generated shader for the pipeline that this snippet is attached
|
|
@@ -7716,7 +7716,7 @@ export interface Snippet {
|
|
|
7716
7716
|
* immutable.
|
|
7717
7717
|
* @param post The new source string for the post section of this snippet.
|
|
7718
7718
|
*/
|
|
7719
|
-
set_post(post: string
|
|
7719
|
+
set_post(post: string): void
|
|
7720
7720
|
/**
|
|
7721
7721
|
* Sets a source string that will be inserted before the hook point in
|
|
7722
7722
|
* the generated shader for the pipeline that this snippet is attached
|
|
@@ -7728,7 +7728,7 @@ export interface Snippet {
|
|
|
7728
7728
|
* immutable.
|
|
7729
7729
|
* @param pre The new source string for the pre section of this snippet.
|
|
7730
7730
|
*/
|
|
7731
|
-
set_pre(pre: string
|
|
7731
|
+
set_pre(pre: string): void
|
|
7732
7732
|
/**
|
|
7733
7733
|
* Sets a source string that will be used instead of any generated
|
|
7734
7734
|
* source code or any previous snippets for this hook point. Please
|
|
@@ -7740,7 +7740,7 @@ export interface Snippet {
|
|
|
7740
7740
|
* immutable.
|
|
7741
7741
|
* @param replace The new source string for the replace section of this snippet.
|
|
7742
7742
|
*/
|
|
7743
|
-
set_replace(replace: string
|
|
7743
|
+
set_replace(replace: string): void
|
|
7744
7744
|
|
|
7745
7745
|
// Class property signals of Cogl-2.0.Cogl.Snippet
|
|
7746
7746
|
|
|
@@ -7768,7 +7768,7 @@ export class Snippet extends Object {
|
|
|
7768
7768
|
* @param post The source code to run after the hook point where this shader snippet is attached or %NULL. See cogl_snippet_set_post().
|
|
7769
7769
|
* @returns a pointer to a new #CoglSnippet
|
|
7770
7770
|
*/
|
|
7771
|
-
constructor(hook: SnippetHook, declarations: string
|
|
7771
|
+
constructor(hook: SnippetHook, declarations: string, post: string)
|
|
7772
7772
|
/**
|
|
7773
7773
|
* Allocates and initializes a new snippet with the given source strings.
|
|
7774
7774
|
* @constructor
|
|
@@ -7777,7 +7777,7 @@ export class Snippet extends Object {
|
|
|
7777
7777
|
* @param post The source code to run after the hook point where this shader snippet is attached or %NULL. See cogl_snippet_set_post().
|
|
7778
7778
|
* @returns a pointer to a new #CoglSnippet
|
|
7779
7779
|
*/
|
|
7780
|
-
static new(hook: SnippetHook, declarations: string
|
|
7780
|
+
static new(hook: SnippetHook, declarations: string, post: string): Snippet
|
|
7781
7781
|
_init(config?: Snippet.ConstructorProperties): void
|
|
7782
7782
|
}
|
|
7783
7783
|
|
|
@@ -7940,13 +7940,13 @@ export interface Texture2D extends Texture {
|
|
|
7940
7940
|
* @param key name of the key for that association
|
|
7941
7941
|
* @returns the data if found, or %NULL if no such data exists.
|
|
7942
7942
|
*/
|
|
7943
|
-
get_data(key: string
|
|
7943
|
+
get_data(key: string): any | null
|
|
7944
7944
|
/**
|
|
7945
7945
|
* Gets a named field from the objects table of associations (see g_object_set_data()).
|
|
7946
7946
|
* @param key name of the key for that association
|
|
7947
7947
|
* @returns the data if found, or %NULL if no such data exists.
|
|
7948
7948
|
*/
|
|
7949
|
-
get_data(key: string
|
|
7949
|
+
get_data(key: string): any | null
|
|
7950
7950
|
/**
|
|
7951
7951
|
* `texture` a #CoglTexture.
|
|
7952
7952
|
* Sets all the pixels for a given mipmap `level` by copying the pixel
|
|
@@ -8014,7 +8014,7 @@ export interface Texture2D extends Texture {
|
|
|
8014
8014
|
* @param key name of the key
|
|
8015
8015
|
* @param data data to associate with that key
|
|
8016
8016
|
*/
|
|
8017
|
-
set_data(key: string
|
|
8017
|
+
set_data(key: string, data: any | null): void
|
|
8018
8018
|
/**
|
|
8019
8019
|
* Each object carries around a table of associations from
|
|
8020
8020
|
* strings to pointers. This function lets you set an association.
|
|
@@ -8029,7 +8029,7 @@ export interface Texture2D extends Texture {
|
|
|
8029
8029
|
* @param key name of the key
|
|
8030
8030
|
* @param data data to associate with that key
|
|
8031
8031
|
*/
|
|
8032
|
-
set_data(key: string
|
|
8032
|
+
set_data(key: string, data: any | null): void
|
|
8033
8033
|
|
|
8034
8034
|
// Class property signals of Cogl-2.0.Cogl.Texture2D
|
|
8035
8035
|
|
|
@@ -8146,7 +8146,7 @@ export class Texture2D extends Object {
|
|
|
8146
8146
|
* @param filename the file to load
|
|
8147
8147
|
* @returns A newly created #CoglTexture2D or %NULL on failure and @error will be updated.
|
|
8148
8148
|
*/
|
|
8149
|
-
static new_from_file(ctx: Context, filename: string
|
|
8149
|
+
static new_from_file(ctx: Context, filename: string): Texture2D
|
|
8150
8150
|
/**
|
|
8151
8151
|
* Creates a low-level #CoglTexture2D texture with a given `width` and
|
|
8152
8152
|
* `height` that your GPU can texture from directly.
|
|
@@ -8210,13 +8210,13 @@ export interface Texture2DSliced extends Texture {
|
|
|
8210
8210
|
* @param key name of the key for that association
|
|
8211
8211
|
* @returns the data if found, or %NULL if no such data exists.
|
|
8212
8212
|
*/
|
|
8213
|
-
get_data(key: string
|
|
8213
|
+
get_data(key: string): any | null
|
|
8214
8214
|
/**
|
|
8215
8215
|
* Gets a named field from the objects table of associations (see g_object_set_data()).
|
|
8216
8216
|
* @param key name of the key for that association
|
|
8217
8217
|
* @returns the data if found, or %NULL if no such data exists.
|
|
8218
8218
|
*/
|
|
8219
|
-
get_data(key: string
|
|
8219
|
+
get_data(key: string): any | null
|
|
8220
8220
|
/**
|
|
8221
8221
|
* `texture` a #CoglTexture.
|
|
8222
8222
|
* Sets all the pixels for a given mipmap `level` by copying the pixel
|
|
@@ -8284,7 +8284,7 @@ export interface Texture2DSliced extends Texture {
|
|
|
8284
8284
|
* @param key name of the key
|
|
8285
8285
|
* @param data data to associate with that key
|
|
8286
8286
|
*/
|
|
8287
|
-
set_data(key: string
|
|
8287
|
+
set_data(key: string, data: any | null): void
|
|
8288
8288
|
/**
|
|
8289
8289
|
* Each object carries around a table of associations from
|
|
8290
8290
|
* strings to pointers. This function lets you set an association.
|
|
@@ -8299,7 +8299,7 @@ export interface Texture2DSliced extends Texture {
|
|
|
8299
8299
|
* @param key name of the key
|
|
8300
8300
|
* @param data data to associate with that key
|
|
8301
8301
|
*/
|
|
8302
|
-
set_data(key: string
|
|
8302
|
+
set_data(key: string, data: any | null): void
|
|
8303
8303
|
|
|
8304
8304
|
// Class property signals of Cogl-2.0.Cogl.Texture2DSliced
|
|
8305
8305
|
|
|
@@ -8431,7 +8431,7 @@ export class Texture2DSliced extends Object {
|
|
|
8431
8431
|
* @param max_waste The threshold of how wide a strip of wasted texels are allowed along the right and bottom textures before they must be sliced to reduce the amount of waste. A negative can be passed to disable slicing.
|
|
8432
8432
|
* @returns A newly created #CoglTexture2DSliced or %NULL on failure and @error will be updated.
|
|
8433
8433
|
*/
|
|
8434
|
-
static new_from_file(ctx: Context, filename: string
|
|
8434
|
+
static new_from_file(ctx: Context, filename: string, max_waste: number): Texture2DSliced
|
|
8435
8435
|
/**
|
|
8436
8436
|
* Creates a #CoglTexture2DSliced that may internally be comprised of
|
|
8437
8437
|
* 1 or more #CoglTexture2D textures depending on GPU limitations.
|
|
@@ -8502,13 +8502,13 @@ export interface Texture3D extends Texture {
|
|
|
8502
8502
|
* @param key name of the key for that association
|
|
8503
8503
|
* @returns the data if found, or %NULL if no such data exists.
|
|
8504
8504
|
*/
|
|
8505
|
-
get_data(key: string
|
|
8505
|
+
get_data(key: string): any | null
|
|
8506
8506
|
/**
|
|
8507
8507
|
* Gets a named field from the objects table of associations (see g_object_set_data()).
|
|
8508
8508
|
* @param key name of the key for that association
|
|
8509
8509
|
* @returns the data if found, or %NULL if no such data exists.
|
|
8510
8510
|
*/
|
|
8511
|
-
get_data(key: string
|
|
8511
|
+
get_data(key: string): any | null
|
|
8512
8512
|
/**
|
|
8513
8513
|
* `texture` a #CoglTexture.
|
|
8514
8514
|
* Sets all the pixels for a given mipmap `level` by copying the pixel
|
|
@@ -8576,7 +8576,7 @@ export interface Texture3D extends Texture {
|
|
|
8576
8576
|
* @param key name of the key
|
|
8577
8577
|
* @param data data to associate with that key
|
|
8578
8578
|
*/
|
|
8579
|
-
set_data(key: string
|
|
8579
|
+
set_data(key: string, data: any | null): void
|
|
8580
8580
|
/**
|
|
8581
8581
|
* Each object carries around a table of associations from
|
|
8582
8582
|
* strings to pointers. This function lets you set an association.
|
|
@@ -8591,7 +8591,7 @@ export interface Texture3D extends Texture {
|
|
|
8591
8591
|
* @param key name of the key
|
|
8592
8592
|
* @param data data to associate with that key
|
|
8593
8593
|
*/
|
|
8594
|
-
set_data(key: string
|
|
8594
|
+
set_data(key: string, data: any | null): void
|
|
8595
8595
|
|
|
8596
8596
|
// Class property signals of Cogl-2.0.Cogl.Texture3D
|
|
8597
8597
|
|
|
@@ -8850,13 +8850,13 @@ export interface TextureRectangle extends Texture {
|
|
|
8850
8850
|
* @param key name of the key for that association
|
|
8851
8851
|
* @returns the data if found, or %NULL if no such data exists.
|
|
8852
8852
|
*/
|
|
8853
|
-
get_data(key: string
|
|
8853
|
+
get_data(key: string): any | null
|
|
8854
8854
|
/**
|
|
8855
8855
|
* Gets a named field from the objects table of associations (see g_object_set_data()).
|
|
8856
8856
|
* @param key name of the key for that association
|
|
8857
8857
|
* @returns the data if found, or %NULL if no such data exists.
|
|
8858
8858
|
*/
|
|
8859
|
-
get_data(key: string
|
|
8859
|
+
get_data(key: string): any | null
|
|
8860
8860
|
/**
|
|
8861
8861
|
* `texture` a #CoglTexture.
|
|
8862
8862
|
* Sets all the pixels for a given mipmap `level` by copying the pixel
|
|
@@ -8924,7 +8924,7 @@ export interface TextureRectangle extends Texture {
|
|
|
8924
8924
|
* @param key name of the key
|
|
8925
8925
|
* @param data data to associate with that key
|
|
8926
8926
|
*/
|
|
8927
|
-
set_data(key: string
|
|
8927
|
+
set_data(key: string, data: any | null): void
|
|
8928
8928
|
/**
|
|
8929
8929
|
* Each object carries around a table of associations from
|
|
8930
8930
|
* strings to pointers. This function lets you set an association.
|
|
@@ -8939,7 +8939,7 @@ export interface TextureRectangle extends Texture {
|
|
|
8939
8939
|
* @param key name of the key
|
|
8940
8940
|
* @param data data to associate with that key
|
|
8941
8941
|
*/
|
|
8942
|
-
set_data(key: string
|
|
8942
|
+
set_data(key: string, data: any | null): void
|
|
8943
8943
|
|
|
8944
8944
|
// Class property signals of Cogl-2.0.Cogl.TextureRectangle
|
|
8945
8945
|
|
|
@@ -9316,7 +9316,7 @@ export interface DebugObjectTypeInfo {
|
|
|
9316
9316
|
* A human readable name for the type.
|
|
9317
9317
|
* @field
|
|
9318
9318
|
*/
|
|
9319
|
-
name: string
|
|
9319
|
+
name: string
|
|
9320
9320
|
/**
|
|
9321
9321
|
* The number of objects of this type that are
|
|
9322
9322
|
* currently in use
|
|
@@ -9698,7 +9698,7 @@ export interface GLES2Vtable {
|
|
|
9698
9698
|
glGetProgramiv: (program: GL.uint, pname: GL.enum_, params: GL.int) => void
|
|
9699
9699
|
glDetachShader: (program: GL.uint, shader: GL.uint) => void
|
|
9700
9700
|
glGetAttachedShaders: (program: GL.uint, maxcount: GL.sizei, count: GL.sizei, shaders: GL.uint) => void
|
|
9701
|
-
glShaderSource: (shader: GL.uint, count: GL.sizei, string: string
|
|
9701
|
+
glShaderSource: (shader: GL.uint, count: GL.sizei, string: string, length: GL.int) => void
|
|
9702
9702
|
glCompileShader: (shader: GL.uint) => void
|
|
9703
9703
|
glLinkProgram: (program: GL.uint) => void
|
|
9704
9704
|
glUniform1f: (location: GL.int, v0: GL.float) => void
|
package/cogl-2.0.d.ts
CHANGED
|
@@ -3799,7 +3799,7 @@ interface Texture extends Object {
|
|
|
3799
3799
|
* @param key name of the key for that association
|
|
3800
3800
|
* @returns the data if found, or %NULL if no such data exists.
|
|
3801
3801
|
*/
|
|
3802
|
-
get_data(key: string
|
|
3802
|
+
get_data(key: string): any | null
|
|
3803
3803
|
/**
|
|
3804
3804
|
* Queries the GL handles for a GPU side texture through its #CoglTexture.
|
|
3805
3805
|
*
|
|
@@ -3929,7 +3929,7 @@ interface Texture extends Object {
|
|
|
3929
3929
|
* @param key name of the key
|
|
3930
3930
|
* @param data data to associate with that key
|
|
3931
3931
|
*/
|
|
3932
|
-
set_data(key: string
|
|
3932
|
+
set_data(key: string, data: any | null): void
|
|
3933
3933
|
/**
|
|
3934
3934
|
* Affects the internal storage format for this texture by specifying
|
|
3935
3935
|
* whether red, green and blue color components should be stored as
|
|
@@ -4129,7 +4129,7 @@ class AtlasTexture extends Object {
|
|
|
4129
4129
|
* @param filename the file to load
|
|
4130
4130
|
* @returns A new #CoglAtlasTexture object or %NULL on failure and @error will be updated.
|
|
4131
4131
|
*/
|
|
4132
|
-
static new_from_file(ctx: Context, filename: string
|
|
4132
|
+
static new_from_file(ctx: Context, filename: string): AtlasTexture
|
|
4133
4133
|
/**
|
|
4134
4134
|
* Creates a #CoglAtlasTexture with a given `width` and `height`. A
|
|
4135
4135
|
* #CoglAtlasTexture represents a sub-region within one of Cogl's
|
|
@@ -4293,7 +4293,7 @@ class Attribute extends Object {
|
|
|
4293
4293
|
* @param type FIXME
|
|
4294
4294
|
* @returns A newly allocated #CoglAttribute describing the layout for a list of attribute values stored in @array.
|
|
4295
4295
|
*/
|
|
4296
|
-
constructor(attribute_buffer: AttributeBuffer, name: string
|
|
4296
|
+
constructor(attribute_buffer: AttributeBuffer, name: string, stride: number, offset: number, components: number, type: AttributeType)
|
|
4297
4297
|
/**
|
|
4298
4298
|
* Describes the layout for a list of vertex attribute values (For
|
|
4299
4299
|
* example, a list of texture coordinates or colors).
|
|
@@ -4373,7 +4373,7 @@ class Attribute extends Object {
|
|
|
4373
4373
|
* @param type FIXME
|
|
4374
4374
|
* @returns A newly allocated #CoglAttribute describing the layout for a list of attribute values stored in @array.
|
|
4375
4375
|
*/
|
|
4376
|
-
static new(attribute_buffer: AttributeBuffer, name: string
|
|
4376
|
+
static new(attribute_buffer: AttributeBuffer, name: string, stride: number, offset: number, components: number, type: AttributeType): Attribute
|
|
4377
4377
|
/**
|
|
4378
4378
|
* Creates a new, single component, attribute whose value remains
|
|
4379
4379
|
* constant across all the vertices of a primitive without needing to
|
|
@@ -4391,7 +4391,7 @@ class Attribute extends Object {
|
|
|
4391
4391
|
* @param value The constant value for the attribute
|
|
4392
4392
|
* @returns A newly allocated #CoglAttribute representing the given constant @value.
|
|
4393
4393
|
*/
|
|
4394
|
-
static new_const_1f(context: Context, name: string
|
|
4394
|
+
static new_const_1f(context: Context, name: string, value: number): Attribute
|
|
4395
4395
|
/**
|
|
4396
4396
|
* Creates a new, 2 component, attribute whose value remains
|
|
4397
4397
|
* constant across all the vertices of a primitive without needing to
|
|
@@ -4411,7 +4411,7 @@ class Attribute extends Object {
|
|
|
4411
4411
|
* @param component1 The second component of a 2 component vector
|
|
4412
4412
|
* @returns A newly allocated #CoglAttribute representing the given constant vector.
|
|
4413
4413
|
*/
|
|
4414
|
-
static new_const_2f(context: Context, name: string
|
|
4414
|
+
static new_const_2f(context: Context, name: string, component0: number, component1: number): Attribute
|
|
4415
4415
|
/**
|
|
4416
4416
|
* Creates a new, 2 component, attribute whose value remains
|
|
4417
4417
|
* constant across all the vertices of a primitive without needing to
|
|
@@ -4430,7 +4430,7 @@ class Attribute extends Object {
|
|
|
4430
4430
|
* @param value A pointer to a 2 component float vector
|
|
4431
4431
|
* @returns A newly allocated #CoglAttribute representing the given constant vector.
|
|
4432
4432
|
*/
|
|
4433
|
-
static new_const_2fv(context: Context, name: string
|
|
4433
|
+
static new_const_2fv(context: Context, name: string, value: number): Attribute
|
|
4434
4434
|
/**
|
|
4435
4435
|
* Creates a new matrix attribute whose value remains constant
|
|
4436
4436
|
* across all the vertices of a primitive without needing to duplicate
|
|
@@ -4455,7 +4455,7 @@ class Attribute extends Object {
|
|
|
4455
4455
|
* @param transpose Whether the matrix should be transposed on upload or not
|
|
4456
4456
|
* @returns A newly allocated #CoglAttribute representing the given constant matrix.
|
|
4457
4457
|
*/
|
|
4458
|
-
static new_const_2x2fv(context: Context, name: string
|
|
4458
|
+
static new_const_2x2fv(context: Context, name: string, matrix2x2: number, transpose: Bool): Attribute
|
|
4459
4459
|
/**
|
|
4460
4460
|
* Creates a new, 3 component, attribute whose value remains
|
|
4461
4461
|
* constant across all the vertices of a primitive without needing to
|
|
@@ -4479,7 +4479,7 @@ class Attribute extends Object {
|
|
|
4479
4479
|
* @param component2 The third component of a 3 component vector
|
|
4480
4480
|
* @returns A newly allocated #CoglAttribute representing the given constant vector.
|
|
4481
4481
|
*/
|
|
4482
|
-
static new_const_3f(context: Context, name: string
|
|
4482
|
+
static new_const_3f(context: Context, name: string, component0: number, component1: number, component2: number): Attribute
|
|
4483
4483
|
/**
|
|
4484
4484
|
* Creates a new, 3 component, attribute whose value remains
|
|
4485
4485
|
* constant across all the vertices of a primitive without needing to
|
|
@@ -4501,7 +4501,7 @@ class Attribute extends Object {
|
|
|
4501
4501
|
* @param value A pointer to a 3 component float vector
|
|
4502
4502
|
* @returns A newly allocated #CoglAttribute representing the given constant vector.
|
|
4503
4503
|
*/
|
|
4504
|
-
static new_const_3fv(context: Context, name: string
|
|
4504
|
+
static new_const_3fv(context: Context, name: string, value: number): Attribute
|
|
4505
4505
|
/**
|
|
4506
4506
|
* Creates a new matrix attribute whose value remains constant
|
|
4507
4507
|
* across all the vertices of a primitive without needing to duplicate
|
|
@@ -4527,7 +4527,7 @@ class Attribute extends Object {
|
|
|
4527
4527
|
* @param transpose Whether the matrix should be transposed on upload or not
|
|
4528
4528
|
* @returns A newly allocated #CoglAttribute representing the given constant matrix.
|
|
4529
4529
|
*/
|
|
4530
|
-
static new_const_3x3fv(context: Context, name: string
|
|
4530
|
+
static new_const_3x3fv(context: Context, name: string, matrix3x3: number, transpose: Bool): Attribute
|
|
4531
4531
|
/**
|
|
4532
4532
|
* Creates a new, 4 component, attribute whose value remains
|
|
4533
4533
|
* constant across all the vertices of a primitive without needing to
|
|
@@ -4553,7 +4553,7 @@ class Attribute extends Object {
|
|
|
4553
4553
|
* @param component3 The fourth component of a 4 component vector
|
|
4554
4554
|
* @returns A newly allocated #CoglAttribute representing the given constant vector.
|
|
4555
4555
|
*/
|
|
4556
|
-
static new_const_4f(context: Context, name: string
|
|
4556
|
+
static new_const_4f(context: Context, name: string, component0: number, component1: number, component2: number, component3: number): Attribute
|
|
4557
4557
|
/**
|
|
4558
4558
|
* Creates a new, 4 component, attribute whose value remains
|
|
4559
4559
|
* constant across all the vertices of a primitive without needing to
|
|
@@ -4576,7 +4576,7 @@ class Attribute extends Object {
|
|
|
4576
4576
|
* @param value A pointer to a 4 component float vector
|
|
4577
4577
|
* @returns A newly allocated #CoglAttribute representing the given constant vector.
|
|
4578
4578
|
*/
|
|
4579
|
-
static new_const_4fv(context: Context, name: string
|
|
4579
|
+
static new_const_4fv(context: Context, name: string, value: number): Attribute
|
|
4580
4580
|
/**
|
|
4581
4581
|
* Creates a new matrix attribute whose value remains constant
|
|
4582
4582
|
* across all the vertices of a primitive without needing to duplicate
|
|
@@ -4602,7 +4602,7 @@ class Attribute extends Object {
|
|
|
4602
4602
|
* @param transpose Whether the matrix should be transposed on upload or not
|
|
4603
4603
|
* @returns A newly allocated #CoglAttribute representing the given constant matrix.
|
|
4604
4604
|
*/
|
|
4605
|
-
static new_const_4x4fv(context: Context, name: string
|
|
4605
|
+
static new_const_4x4fv(context: Context, name: string, matrix4x4: number, transpose: Bool): Attribute
|
|
4606
4606
|
_init(config?: Attribute.ConstructorProperties): void
|
|
4607
4607
|
}
|
|
4608
4608
|
|
|
@@ -4731,7 +4731,7 @@ class Bitmap extends Object {
|
|
|
4731
4731
|
* @param filename the file to load.
|
|
4732
4732
|
* @returns a #CoglBitmap to the new loaded image data, or %NULL if loading the image failed.
|
|
4733
4733
|
*/
|
|
4734
|
-
static new_from_file(filename: string
|
|
4734
|
+
static new_from_file(filename: string): Bitmap
|
|
4735
4735
|
/**
|
|
4736
4736
|
* Creates a new #CoglBitmap with the given width, height and format.
|
|
4737
4737
|
* The initial contents of the bitmap are undefined.
|
|
@@ -4763,7 +4763,7 @@ class Bitmap extends Object {
|
|
|
4763
4763
|
* @param filename the file to check
|
|
4764
4764
|
* @returns %TRUE if the image was successfully parsed
|
|
4765
4765
|
*/
|
|
4766
|
-
static get_size_from_file(filename: string
|
|
4766
|
+
static get_size_from_file(filename: string): [ /* returnType */ Bool, /* width */ number, /* height */ number ]
|
|
4767
4767
|
}
|
|
4768
4768
|
|
|
4769
4769
|
module Context {
|
|
@@ -6304,7 +6304,7 @@ interface Pipeline {
|
|
|
6304
6304
|
* @param uniform_name The name of a uniform
|
|
6305
6305
|
* @returns A integer representing the location of the given uniform.
|
|
6306
6306
|
*/
|
|
6307
|
-
get_uniform_location(uniform_name: string
|
|
6307
|
+
get_uniform_location(uniform_name: string): number
|
|
6308
6308
|
/**
|
|
6309
6309
|
* Queries what user program has been associated with the given
|
|
6310
6310
|
* `pipeline` using cogl_pipeline_set_user_program().
|
|
@@ -6419,7 +6419,7 @@ interface Pipeline {
|
|
|
6419
6419
|
* @param blend_string A <link linkend="cogl-Blend-Strings">Cogl blend string</link> describing the desired blend function.
|
|
6420
6420
|
* @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).
|
|
6421
6421
|
*/
|
|
6422
|
-
set_blend(blend_string: string
|
|
6422
|
+
set_blend(blend_string: string): Bool
|
|
6423
6423
|
/**
|
|
6424
6424
|
* When blending is setup to reference a CONSTANT blend factor then
|
|
6425
6425
|
* blending will depend on the constant set with this function.
|
|
@@ -6607,7 +6607,7 @@ interface Pipeline {
|
|
|
6607
6607
|
* @param blend_string A <link linkend="cogl-Blend-Strings">Cogl blend string</link> describing the desired texture combine function.
|
|
6608
6608
|
* @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
|
|
6609
6609
|
*/
|
|
6610
|
-
set_layer_combine(layer_index: number, blend_string: string
|
|
6610
|
+
set_layer_combine(layer_index: number, blend_string: string): Bool
|
|
6611
6611
|
/**
|
|
6612
6612
|
* When you are using the 'CONSTANT' color source in a layer combine
|
|
6613
6613
|
* description then you can use this function to define its value.
|
|
@@ -7690,11 +7690,11 @@ interface Snippet {
|
|
|
7690
7690
|
|
|
7691
7691
|
// Owm methods of Cogl-2.0.Cogl.Snippet
|
|
7692
7692
|
|
|
7693
|
-
get_declarations(): string
|
|
7693
|
+
get_declarations(): string
|
|
7694
7694
|
get_hook(): SnippetHook
|
|
7695
|
-
get_post(): string
|
|
7696
|
-
get_pre(): string
|
|
7697
|
-
get_replace(): string
|
|
7695
|
+
get_post(): string
|
|
7696
|
+
get_pre(): string
|
|
7697
|
+
get_replace(): string
|
|
7698
7698
|
/**
|
|
7699
7699
|
* Sets a source string that will be inserted in the global scope of
|
|
7700
7700
|
* the generated shader when this snippet is used on a pipeline. This
|
|
@@ -7706,7 +7706,7 @@ interface Snippet {
|
|
|
7706
7706
|
* immutable.
|
|
7707
7707
|
* @param declarations The new source string for the declarations section of this snippet.
|
|
7708
7708
|
*/
|
|
7709
|
-
set_declarations(declarations: string
|
|
7709
|
+
set_declarations(declarations: string): void
|
|
7710
7710
|
/**
|
|
7711
7711
|
* Sets a source string that will be inserted after the hook point in
|
|
7712
7712
|
* the generated shader for the pipeline that this snippet is attached
|
|
@@ -7718,7 +7718,7 @@ interface Snippet {
|
|
|
7718
7718
|
* immutable.
|
|
7719
7719
|
* @param post The new source string for the post section of this snippet.
|
|
7720
7720
|
*/
|
|
7721
|
-
set_post(post: string
|
|
7721
|
+
set_post(post: string): void
|
|
7722
7722
|
/**
|
|
7723
7723
|
* Sets a source string that will be inserted before the hook point in
|
|
7724
7724
|
* the generated shader for the pipeline that this snippet is attached
|
|
@@ -7730,7 +7730,7 @@ interface Snippet {
|
|
|
7730
7730
|
* immutable.
|
|
7731
7731
|
* @param pre The new source string for the pre section of this snippet.
|
|
7732
7732
|
*/
|
|
7733
|
-
set_pre(pre: string
|
|
7733
|
+
set_pre(pre: string): void
|
|
7734
7734
|
/**
|
|
7735
7735
|
* Sets a source string that will be used instead of any generated
|
|
7736
7736
|
* source code or any previous snippets for this hook point. Please
|
|
@@ -7742,7 +7742,7 @@ interface Snippet {
|
|
|
7742
7742
|
* immutable.
|
|
7743
7743
|
* @param replace The new source string for the replace section of this snippet.
|
|
7744
7744
|
*/
|
|
7745
|
-
set_replace(replace: string
|
|
7745
|
+
set_replace(replace: string): void
|
|
7746
7746
|
|
|
7747
7747
|
// Class property signals of Cogl-2.0.Cogl.Snippet
|
|
7748
7748
|
|
|
@@ -7770,7 +7770,7 @@ class Snippet extends Object {
|
|
|
7770
7770
|
* @param post The source code to run after the hook point where this shader snippet is attached or %NULL. See cogl_snippet_set_post().
|
|
7771
7771
|
* @returns a pointer to a new #CoglSnippet
|
|
7772
7772
|
*/
|
|
7773
|
-
constructor(hook: SnippetHook, declarations: string
|
|
7773
|
+
constructor(hook: SnippetHook, declarations: string, post: string)
|
|
7774
7774
|
/**
|
|
7775
7775
|
* Allocates and initializes a new snippet with the given source strings.
|
|
7776
7776
|
* @constructor
|
|
@@ -7779,7 +7779,7 @@ class Snippet extends Object {
|
|
|
7779
7779
|
* @param post The source code to run after the hook point where this shader snippet is attached or %NULL. See cogl_snippet_set_post().
|
|
7780
7780
|
* @returns a pointer to a new #CoglSnippet
|
|
7781
7781
|
*/
|
|
7782
|
-
static new(hook: SnippetHook, declarations: string
|
|
7782
|
+
static new(hook: SnippetHook, declarations: string, post: string): Snippet
|
|
7783
7783
|
_init(config?: Snippet.ConstructorProperties): void
|
|
7784
7784
|
}
|
|
7785
7785
|
|
|
@@ -7942,13 +7942,13 @@ interface Texture2D extends Texture {
|
|
|
7942
7942
|
* @param key name of the key for that association
|
|
7943
7943
|
* @returns the data if found, or %NULL if no such data exists.
|
|
7944
7944
|
*/
|
|
7945
|
-
get_data(key: string
|
|
7945
|
+
get_data(key: string): any | null
|
|
7946
7946
|
/**
|
|
7947
7947
|
* Gets a named field from the objects table of associations (see g_object_set_data()).
|
|
7948
7948
|
* @param key name of the key for that association
|
|
7949
7949
|
* @returns the data if found, or %NULL if no such data exists.
|
|
7950
7950
|
*/
|
|
7951
|
-
get_data(key: string
|
|
7951
|
+
get_data(key: string): any | null
|
|
7952
7952
|
/**
|
|
7953
7953
|
* `texture` a #CoglTexture.
|
|
7954
7954
|
* Sets all the pixels for a given mipmap `level` by copying the pixel
|
|
@@ -8016,7 +8016,7 @@ interface Texture2D extends Texture {
|
|
|
8016
8016
|
* @param key name of the key
|
|
8017
8017
|
* @param data data to associate with that key
|
|
8018
8018
|
*/
|
|
8019
|
-
set_data(key: string
|
|
8019
|
+
set_data(key: string, data: any | null): void
|
|
8020
8020
|
/**
|
|
8021
8021
|
* Each object carries around a table of associations from
|
|
8022
8022
|
* strings to pointers. This function lets you set an association.
|
|
@@ -8031,7 +8031,7 @@ interface Texture2D extends Texture {
|
|
|
8031
8031
|
* @param key name of the key
|
|
8032
8032
|
* @param data data to associate with that key
|
|
8033
8033
|
*/
|
|
8034
|
-
set_data(key: string
|
|
8034
|
+
set_data(key: string, data: any | null): void
|
|
8035
8035
|
|
|
8036
8036
|
// Class property signals of Cogl-2.0.Cogl.Texture2D
|
|
8037
8037
|
|
|
@@ -8148,7 +8148,7 @@ class Texture2D extends Object {
|
|
|
8148
8148
|
* @param filename the file to load
|
|
8149
8149
|
* @returns A newly created #CoglTexture2D or %NULL on failure and @error will be updated.
|
|
8150
8150
|
*/
|
|
8151
|
-
static new_from_file(ctx: Context, filename: string
|
|
8151
|
+
static new_from_file(ctx: Context, filename: string): Texture2D
|
|
8152
8152
|
/**
|
|
8153
8153
|
* Creates a low-level #CoglTexture2D texture with a given `width` and
|
|
8154
8154
|
* `height` that your GPU can texture from directly.
|
|
@@ -8212,13 +8212,13 @@ interface Texture2DSliced extends Texture {
|
|
|
8212
8212
|
* @param key name of the key for that association
|
|
8213
8213
|
* @returns the data if found, or %NULL if no such data exists.
|
|
8214
8214
|
*/
|
|
8215
|
-
get_data(key: string
|
|
8215
|
+
get_data(key: string): any | null
|
|
8216
8216
|
/**
|
|
8217
8217
|
* Gets a named field from the objects table of associations (see g_object_set_data()).
|
|
8218
8218
|
* @param key name of the key for that association
|
|
8219
8219
|
* @returns the data if found, or %NULL if no such data exists.
|
|
8220
8220
|
*/
|
|
8221
|
-
get_data(key: string
|
|
8221
|
+
get_data(key: string): any | null
|
|
8222
8222
|
/**
|
|
8223
8223
|
* `texture` a #CoglTexture.
|
|
8224
8224
|
* Sets all the pixels for a given mipmap `level` by copying the pixel
|
|
@@ -8286,7 +8286,7 @@ interface Texture2DSliced extends Texture {
|
|
|
8286
8286
|
* @param key name of the key
|
|
8287
8287
|
* @param data data to associate with that key
|
|
8288
8288
|
*/
|
|
8289
|
-
set_data(key: string
|
|
8289
|
+
set_data(key: string, data: any | null): void
|
|
8290
8290
|
/**
|
|
8291
8291
|
* Each object carries around a table of associations from
|
|
8292
8292
|
* strings to pointers. This function lets you set an association.
|
|
@@ -8301,7 +8301,7 @@ interface Texture2DSliced extends Texture {
|
|
|
8301
8301
|
* @param key name of the key
|
|
8302
8302
|
* @param data data to associate with that key
|
|
8303
8303
|
*/
|
|
8304
|
-
set_data(key: string
|
|
8304
|
+
set_data(key: string, data: any | null): void
|
|
8305
8305
|
|
|
8306
8306
|
// Class property signals of Cogl-2.0.Cogl.Texture2DSliced
|
|
8307
8307
|
|
|
@@ -8433,7 +8433,7 @@ class Texture2DSliced extends Object {
|
|
|
8433
8433
|
* @param max_waste The threshold of how wide a strip of wasted texels are allowed along the right and bottom textures before they must be sliced to reduce the amount of waste. A negative can be passed to disable slicing.
|
|
8434
8434
|
* @returns A newly created #CoglTexture2DSliced or %NULL on failure and @error will be updated.
|
|
8435
8435
|
*/
|
|
8436
|
-
static new_from_file(ctx: Context, filename: string
|
|
8436
|
+
static new_from_file(ctx: Context, filename: string, max_waste: number): Texture2DSliced
|
|
8437
8437
|
/**
|
|
8438
8438
|
* Creates a #CoglTexture2DSliced that may internally be comprised of
|
|
8439
8439
|
* 1 or more #CoglTexture2D textures depending on GPU limitations.
|
|
@@ -8504,13 +8504,13 @@ interface Texture3D extends Texture {
|
|
|
8504
8504
|
* @param key name of the key for that association
|
|
8505
8505
|
* @returns the data if found, or %NULL if no such data exists.
|
|
8506
8506
|
*/
|
|
8507
|
-
get_data(key: string
|
|
8507
|
+
get_data(key: string): any | null
|
|
8508
8508
|
/**
|
|
8509
8509
|
* Gets a named field from the objects table of associations (see g_object_set_data()).
|
|
8510
8510
|
* @param key name of the key for that association
|
|
8511
8511
|
* @returns the data if found, or %NULL if no such data exists.
|
|
8512
8512
|
*/
|
|
8513
|
-
get_data(key: string
|
|
8513
|
+
get_data(key: string): any | null
|
|
8514
8514
|
/**
|
|
8515
8515
|
* `texture` a #CoglTexture.
|
|
8516
8516
|
* Sets all the pixels for a given mipmap `level` by copying the pixel
|
|
@@ -8578,7 +8578,7 @@ interface Texture3D extends Texture {
|
|
|
8578
8578
|
* @param key name of the key
|
|
8579
8579
|
* @param data data to associate with that key
|
|
8580
8580
|
*/
|
|
8581
|
-
set_data(key: string
|
|
8581
|
+
set_data(key: string, data: any | null): void
|
|
8582
8582
|
/**
|
|
8583
8583
|
* Each object carries around a table of associations from
|
|
8584
8584
|
* strings to pointers. This function lets you set an association.
|
|
@@ -8593,7 +8593,7 @@ interface Texture3D extends Texture {
|
|
|
8593
8593
|
* @param key name of the key
|
|
8594
8594
|
* @param data data to associate with that key
|
|
8595
8595
|
*/
|
|
8596
|
-
set_data(key: string
|
|
8596
|
+
set_data(key: string, data: any | null): void
|
|
8597
8597
|
|
|
8598
8598
|
// Class property signals of Cogl-2.0.Cogl.Texture3D
|
|
8599
8599
|
|
|
@@ -8852,13 +8852,13 @@ interface TextureRectangle extends Texture {
|
|
|
8852
8852
|
* @param key name of the key for that association
|
|
8853
8853
|
* @returns the data if found, or %NULL if no such data exists.
|
|
8854
8854
|
*/
|
|
8855
|
-
get_data(key: string
|
|
8855
|
+
get_data(key: string): any | null
|
|
8856
8856
|
/**
|
|
8857
8857
|
* Gets a named field from the objects table of associations (see g_object_set_data()).
|
|
8858
8858
|
* @param key name of the key for that association
|
|
8859
8859
|
* @returns the data if found, or %NULL if no such data exists.
|
|
8860
8860
|
*/
|
|
8861
|
-
get_data(key: string
|
|
8861
|
+
get_data(key: string): any | null
|
|
8862
8862
|
/**
|
|
8863
8863
|
* `texture` a #CoglTexture.
|
|
8864
8864
|
* Sets all the pixels for a given mipmap `level` by copying the pixel
|
|
@@ -8926,7 +8926,7 @@ interface TextureRectangle extends Texture {
|
|
|
8926
8926
|
* @param key name of the key
|
|
8927
8927
|
* @param data data to associate with that key
|
|
8928
8928
|
*/
|
|
8929
|
-
set_data(key: string
|
|
8929
|
+
set_data(key: string, data: any | null): void
|
|
8930
8930
|
/**
|
|
8931
8931
|
* Each object carries around a table of associations from
|
|
8932
8932
|
* strings to pointers. This function lets you set an association.
|
|
@@ -8941,7 +8941,7 @@ interface TextureRectangle extends Texture {
|
|
|
8941
8941
|
* @param key name of the key
|
|
8942
8942
|
* @param data data to associate with that key
|
|
8943
8943
|
*/
|
|
8944
|
-
set_data(key: string
|
|
8944
|
+
set_data(key: string, data: any | null): void
|
|
8945
8945
|
|
|
8946
8946
|
// Class property signals of Cogl-2.0.Cogl.TextureRectangle
|
|
8947
8947
|
|
|
@@ -9318,7 +9318,7 @@ interface DebugObjectTypeInfo {
|
|
|
9318
9318
|
* A human readable name for the type.
|
|
9319
9319
|
* @field
|
|
9320
9320
|
*/
|
|
9321
|
-
name: string
|
|
9321
|
+
name: string
|
|
9322
9322
|
/**
|
|
9323
9323
|
* The number of objects of this type that are
|
|
9324
9324
|
* currently in use
|
|
@@ -9700,7 +9700,7 @@ interface GLES2Vtable {
|
|
|
9700
9700
|
glGetProgramiv: (program: GL.uint, pname: GL.enum_, params: GL.int) => void
|
|
9701
9701
|
glDetachShader: (program: GL.uint, shader: GL.uint) => void
|
|
9702
9702
|
glGetAttachedShaders: (program: GL.uint, maxcount: GL.sizei, count: GL.sizei, shaders: GL.uint) => void
|
|
9703
|
-
glShaderSource: (shader: GL.uint, count: GL.sizei, string: string
|
|
9703
|
+
glShaderSource: (shader: GL.uint, count: GL.sizei, string: string, length: GL.int) => void
|
|
9704
9704
|
glCompileShader: (shader: GL.uint) => void
|
|
9705
9705
|
glLinkProgram: (program: GL.uint) => void
|
|
9706
9706
|
glUniform1f: (location: GL.int, v0: GL.float) => void
|
package/package.json
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/cogl-2.0",
|
|
3
|
-
"version": "2.0.0-3.2.
|
|
3
|
+
"version": "2.0.0-3.2.8",
|
|
4
4
|
"description": "GJS TypeScript type definitions for Cogl-2.0, generated from library version 2.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "cogl-2.0.js",
|
|
7
7
|
"main": "cogl-2.0.js",
|
|
8
8
|
"exports": {
|
|
9
|
-
"./ambient":
|
|
10
|
-
|
|
9
|
+
"./ambient": {
|
|
10
|
+
"types": "./cogl-2.0-ambient.d.ts",
|
|
11
|
+
"default": "./cogl-2.0-ambient.js"
|
|
12
|
+
},
|
|
13
|
+
"./import": {
|
|
14
|
+
"types": "./cogl-2.0-import.d.ts",
|
|
15
|
+
"default": "./cogl-2.0-import.js"
|
|
16
|
+
},
|
|
11
17
|
".": {
|
|
12
18
|
"import": {
|
|
13
19
|
"types": "./cogl-2.0.d.ts",
|
|
@@ -25,10 +31,10 @@
|
|
|
25
31
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit cogl-2.0.d.cts"
|
|
26
32
|
},
|
|
27
33
|
"dependencies": {
|
|
28
|
-
"@girs/gjs": "^3.2.
|
|
29
|
-
"@girs/gl-1.0": "^1.0.0-3.2.
|
|
30
|
-
"@girs/glib-2.0": "^2.
|
|
31
|
-
"@girs/gobject-2.0": "^2.
|
|
34
|
+
"@girs/gjs": "^3.2.8",
|
|
35
|
+
"@girs/gl-1.0": "^1.0.0-3.2.8",
|
|
36
|
+
"@girs/glib-2.0": "^2.77.0-3.2.8",
|
|
37
|
+
"@girs/gobject-2.0": "^2.77.0-3.2.8"
|
|
32
38
|
},
|
|
33
39
|
"devDependencies": {
|
|
34
40
|
"typescript": "*"
|
|
@@ -45,7 +51,7 @@
|
|
|
45
51
|
"license": "MIT",
|
|
46
52
|
"repository": {
|
|
47
53
|
"type": "git",
|
|
48
|
-
"url": "git+https://github.com/gjsify/
|
|
54
|
+
"url": "git+https://github.com/gjsify/ts-for-gir.git"
|
|
49
55
|
},
|
|
50
56
|
"bugs": {
|
|
51
57
|
"url": "https://github.com/gjsify/ts-for-gir/issues"
|