@girs/cogl-7 4.2.0 → 4.4.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 +8 -8
  2. package/cogl-7.d.ts +320 -0
  3. package/package.json +7 -7
package/cogl-7.d.ts CHANGED
@@ -1794,27 +1794,32 @@ export namespace Cogl {
1794
1794
  * Parses an image file enough to extract the width and height
1795
1795
  * of the bitmap.
1796
1796
  * @param filename the file to check
1797
+ * @since 1.0
1797
1798
  */
1798
1799
  static get_size_from_file(filename: string): [boolean, number, number];
1799
1800
 
1800
1801
  // Methods
1801
1802
  /**
1802
1803
  * @returns the {@link Cogl.PixelFormat} that the data for the bitmap is in.
1804
+ * @since 1.10
1803
1805
  */
1804
1806
  get_format(): PixelFormat;
1805
1807
 
1806
1808
  /**
1807
1809
  * @returns the height of the bitmap
1810
+ * @since 1.10
1808
1811
  */
1809
1812
  get_height(): number;
1810
1813
 
1811
1814
  /**
1812
1815
  * @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.
1816
+ * @since 1.10
1813
1817
  */
1814
1818
  get_rowstride(): number;
1815
1819
 
1816
1820
  /**
1817
1821
  * @returns the width of the bitmap
1822
+ * @since 1.10
1818
1823
  */
1819
1824
  get_width(): number;
1820
1825
  }
@@ -1904,6 +1909,7 @@ export namespace Cogl {
1904
1909
  * Gets the frame counter for the {@link Cogl.Onscreen} that corresponds
1905
1910
  * to this frame.
1906
1911
  * @returns The frame counter value
1912
+ * @since 1.14
1907
1913
  */
1908
1914
  get_frame_counter(): number;
1909
1915
 
@@ -1919,6 +1925,7 @@ export namespace Cogl {
1919
1925
  * OpenGL driver. Also some buggy Mesa drivers up to 9.0.1 may also
1920
1926
  * incorrectly report non-monotonic timestamps.</note>
1921
1927
  * @returns the presentation time for the frame
1928
+ * @since 1.14
1922
1929
  */
1923
1930
  get_presentation_time(): number;
1924
1931
 
@@ -1932,6 +1939,7 @@ export namespace Cogl {
1932
1939
  * more reliable than using `cogl_frame_info_get_output()` followed by
1933
1940
  * `cogl_output_get_refresh_rate()`.</note>
1934
1941
  * @returns the refresh rate in Hertz
1942
+ * @since 1.14
1935
1943
  */
1936
1944
  get_refresh_rate(): number;
1937
1945
  }
@@ -2009,6 +2017,7 @@ export namespace Cogl {
2009
2017
  * program will abort with an error message if there is an error during
2010
2018
  * automatic allocation.</note>
2011
2019
  * @returns `true` if there were no error allocating the framebuffer, else `false`.
2020
+ * @since 1.8
2012
2021
  */
2013
2022
  allocate(): boolean;
2014
2023
 
@@ -2017,6 +2026,7 @@ export namespace Cogl {
2017
2026
  * that includes the color buffer then the specified `color` is used.
2018
2027
  * @param buffers A mask of {@link Cogl.BufferBit}<!-- -->'s identifying which auxiliary buffers to clear
2019
2028
  * @param color The color to clear the color buffer too if specified in `buffers`.
2029
+ * @since 1.8
2020
2030
  */
2021
2031
  clear(buffers: bigint | number, color: Color): void;
2022
2032
 
@@ -2028,6 +2038,7 @@ export namespace Cogl {
2028
2038
  * @param green The green component of color to clear the color buffer too if specified in `buffers`.
2029
2039
  * @param blue The blue component of color to clear the color buffer too if specified in `buffers`.
2030
2040
  * @param alpha The alpha component of color to clear the color buffer too if specified in `buffers`.
2041
+ * @since 1.8
2031
2042
  */
2032
2043
  clear4f(buffers: bigint | number, red: number, green: number, blue: number, alpha: number): void;
2033
2044
 
@@ -2049,6 +2060,7 @@ export namespace Cogl {
2049
2060
  * framebuffer, and it's not meaningful to try and discard the color buffer of
2050
2061
  * a {@link Cogl.Offscreen} framebuffer since they are single-buffered.
2051
2062
  * @param buffers A {@link Cogl.BufferBit} mask of which ancillary buffers you want to discard.
2063
+ * @since 1.8
2052
2064
  */
2053
2065
  discard_buffers(buffers: bigint | number): void;
2054
2066
 
@@ -2098,6 +2110,7 @@ export namespace Cogl {
2098
2110
  * @param y_2 y coordinate lower right on screen.
2099
2111
  * @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.
2100
2112
  * @param tex_coords_len The length of the `tex_coords` array. (For one layer and one group of texture coordinates, this would be 4)
2113
+ * @since 1.10
2101
2114
  */
2102
2115
  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;
2103
2116
 
@@ -2118,6 +2131,7 @@ export namespace Cogl {
2118
2131
  * @param y_1 Y coordinate of the top-left corner
2119
2132
  * @param x_2 X coordinate of the bottom-right corner
2120
2133
  * @param y_2 Y coordinate of the bottom-right corner
2134
+ * @since 1.10
2121
2135
  */
2122
2136
  draw_rectangle(pipeline: Pipeline, x_1: number, y_1: number, x_2: number, y_2: number): void;
2123
2137
 
@@ -2144,6 +2158,7 @@ export namespace Cogl {
2144
2158
  * @param pipeline A {@link Cogl.Pipeline} state object
2145
2159
  * @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).
2146
2160
  * @param n_rectangles number of rectangles defined in `coordinates`.
2161
+ * @since 1.10
2147
2162
  */
2148
2163
  draw_rectangles(pipeline: Pipeline, coordinates: number[], n_rectangles: number): void;
2149
2164
 
@@ -2183,6 +2198,7 @@ export namespace Cogl {
2183
2198
  * @param t_1 T texture coordinate of the top-left coorner
2184
2199
  * @param s_2 S texture coordinate of the bottom-right coorner
2185
2200
  * @param t_2 T texture coordinate of the bottom-right coorner
2201
+ * @since 1.10
2186
2202
  */
2187
2203
  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;
2188
2204
 
@@ -2224,6 +2240,7 @@ export namespace Cogl {
2224
2240
  * @param pipeline A {@link Cogl.Pipeline} state object
2225
2241
  * @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()`.
2226
2242
  * @param n_rectangles number of rectangles to `coordinates` to draw
2243
+ * @since 1.10
2227
2244
  */
2228
2245
  draw_textured_rectangles(pipeline: Pipeline, coordinates: number[], n_rectangles: number): void;
2229
2246
 
@@ -2237,6 +2254,7 @@ export namespace Cogl {
2237
2254
  * One example might be for benchmarking purposes to be sure timing
2238
2255
  * measurements reflect the time that the GPU is busy for not just the time it
2239
2256
  * takes to queue rendering commands.
2257
+ * @since 1.10
2240
2258
  */
2241
2259
  finish(): void;
2242
2260
 
@@ -2258,18 +2276,21 @@ export namespace Cogl {
2258
2276
  * @param top Y position of the top clipping plane where it intersects the near clipping plane
2259
2277
  * @param z_near The distance to the near clipping plane (Must be positive)
2260
2278
  * @param z_far The distance to the far clipping plane (Must be positive)
2279
+ * @since 1.10
2261
2280
  */
2262
2281
  frustum(left: number, right: number, bottom: number, top: number, z_near: number, z_far: number): void;
2263
2282
 
2264
2283
  /**
2265
2284
  * Retrieves the number of alpha bits of `framebuffer`
2266
2285
  * @returns the number of bits
2286
+ * @since 1.8
2267
2287
  */
2268
2288
  get_alpha_bits(): number;
2269
2289
 
2270
2290
  /**
2271
2291
  * Retrieves the number of blue bits of `framebuffer`
2272
2292
  * @returns the number of bits
2293
+ * @since 1.8
2273
2294
  */
2274
2295
  get_blue_bits(): number;
2275
2296
 
@@ -2278,12 +2299,14 @@ export namespace Cogl {
2278
2299
  * instantiated within. This is the {@link Cogl.Context} that was passed to
2279
2300
  * `cogl_onscreen_new()` for example.
2280
2301
  * @returns The {@link Cogl.Context} that the given `framebuffer` was instantiated within.
2302
+ * @since 1.8
2281
2303
  */
2282
2304
  get_context(): Context;
2283
2305
 
2284
2306
  /**
2285
2307
  * Retrieves the number of depth bits of `framebuffer`
2286
2308
  * @returns the number of bits
2309
+ * @since 2.0
2287
2310
  */
2288
2311
  get_depth_bits(): number;
2289
2312
 
@@ -2291,6 +2314,7 @@ export namespace Cogl {
2291
2314
  * Queries whether depth buffer writing is enabled for `framebuffer`. This
2292
2315
  * can be controlled via `cogl_framebuffer_set_depth_write_enabled()`.
2293
2316
  * @returns `true` if depth writing is enabled or `false` if not.
2317
+ * @since 1.18
2294
2318
  */
2295
2319
  get_depth_write_enabled(): boolean;
2296
2320
 
@@ -2302,18 +2326,21 @@ export namespace Cogl {
2302
2326
  * display pipeline does not support dithering. This value only represents
2303
2327
  * the user's request for dithering.</note>
2304
2328
  * @returns `true` if dithering has been requested or `false` if not.
2329
+ * @since 1.8
2305
2330
  */
2306
2331
  get_dither_enabled(): boolean;
2307
2332
 
2308
2333
  /**
2309
2334
  * Retrieves the number of green bits of `framebuffer`
2310
2335
  * @returns the number of bits
2336
+ * @since 1.8
2311
2337
  */
2312
2338
  get_green_bits(): number;
2313
2339
 
2314
2340
  /**
2315
2341
  * Queries the current height of the given `framebuffer`.
2316
2342
  * @returns The height of `framebuffer`.
2343
+ * @since 1.8
2317
2344
  */
2318
2345
  get_height(): number;
2319
2346
 
@@ -2321,17 +2348,20 @@ export namespace Cogl {
2321
2348
 
2322
2349
  /**
2323
2350
  * Stores the current model-view matrix in `matrix`.
2351
+ * @since 1.10
2324
2352
  */
2325
2353
  get_modelview_matrix(): Matrix;
2326
2354
 
2327
2355
  /**
2328
2356
  * Stores the current projection matrix in `matrix`.
2357
+ * @since 1.10
2329
2358
  */
2330
2359
  get_projection_matrix(): Matrix;
2331
2360
 
2332
2361
  /**
2333
2362
  * Retrieves the number of red bits of `framebuffer`
2334
2363
  * @returns the number of bits
2364
+ * @since 1.8
2335
2365
  */
2336
2366
  get_red_bits(): number;
2337
2367
 
@@ -2349,6 +2379,7 @@ export namespace Cogl {
2349
2379
  * framebuffer has been allocated the value will reflect the actual
2350
2380
  * number of samples that will be made by the GPU.
2351
2381
  * @returns The number of point samples made per pixel when rasterizing geometry or 0 if single-sample rendering has been chosen.
2382
+ * @since 1.10
2352
2383
  */
2353
2384
  get_samples_per_pixel(): number;
2354
2385
 
@@ -2356,6 +2387,7 @@ export namespace Cogl {
2356
2387
  * Gets the current {@link Cogl.StereoMode}, which defines which stereo buffers
2357
2388
  * should be drawn to. See `cogl_framebuffer_set_stereo_mode()`.
2358
2389
  * @returns A {@link Cogl.StereoMode}
2390
+ * @since 1.20
2359
2391
  */
2360
2392
  get_stereo_mode(): StereoMode;
2361
2393
 
@@ -2364,6 +2396,7 @@ export namespace Cogl {
2364
2396
  * using `cogl_framebuffer_set_viewport()` or the default values which are 0, 0,
2365
2397
  * framebuffer_width and framebuffer_height. The values are written into the
2366
2398
  * given `viewport` array.
2399
+ * @since 1.8
2367
2400
  */
2368
2401
  get_viewport4fv(): number[];
2369
2402
 
@@ -2371,6 +2404,7 @@ export namespace Cogl {
2371
2404
  * Queries the height of the viewport as set using `cogl_framebuffer_set_viewport()`
2372
2405
  * or the default value which is the height of the framebuffer.
2373
2406
  * @returns The height of the viewport.
2407
+ * @since 1.8
2374
2408
  */
2375
2409
  get_viewport_height(): number;
2376
2410
 
@@ -2378,6 +2412,7 @@ export namespace Cogl {
2378
2412
  * Queries the width of the viewport as set using `cogl_framebuffer_set_viewport()`
2379
2413
  * or the default value which is the width of the framebuffer.
2380
2414
  * @returns The width of the viewport.
2415
+ * @since 1.8
2381
2416
  */
2382
2417
  get_viewport_width(): number;
2383
2418
 
@@ -2385,6 +2420,7 @@ export namespace Cogl {
2385
2420
  * Queries the x coordinate of the viewport origin as set using `cogl_framebuffer_set_viewport()`
2386
2421
  * or the default value which is 0.
2387
2422
  * @returns The x coordinate of the viewport origin.
2423
+ * @since 1.8
2388
2424
  */
2389
2425
  get_viewport_x(): number;
2390
2426
 
@@ -2392,17 +2428,20 @@ export namespace Cogl {
2392
2428
  * Queries the y coordinate of the viewport origin as set using `cogl_framebuffer_set_viewport()`
2393
2429
  * or the default value which is 0.
2394
2430
  * @returns The y coordinate of the viewport origin.
2431
+ * @since 1.8
2395
2432
  */
2396
2433
  get_viewport_y(): number;
2397
2434
 
2398
2435
  /**
2399
2436
  * Queries the current width of the given `framebuffer`.
2400
2437
  * @returns The width of `framebuffer`.
2438
+ * @since 1.8
2401
2439
  */
2402
2440
  get_width(): number;
2403
2441
 
2404
2442
  /**
2405
2443
  * Resets the current model-view matrix to the identity matrix.
2444
+ * @since 1.10
2406
2445
  */
2407
2446
  identity_matrix(): void;
2408
2447
 
@@ -2415,6 +2454,7 @@ export namespace Cogl {
2415
2454
  * @param y_2 The y coordinate for the second horizontal clipping plane
2416
2455
  * @param near The <emphasis>distance</emphasis> to the near clipping plane (will be <emphasis>negative</emphasis> if the plane is behind the viewer)
2417
2456
  * @param far The <emphasis>distance</emphasis> to the far clipping plane (will be <emphasis>negative</emphasis> if the plane is behind the viewer)
2457
+ * @since 1.10
2418
2458
  */
2419
2459
  orthographic(x_1: number, y_1: number, x_2: number, y_2: number, near: number, far: number): void;
2420
2460
 
@@ -2430,6 +2470,7 @@ export namespace Cogl {
2430
2470
  * @param aspect The (width over height) aspect ratio for display
2431
2471
  * @param z_near The distance to the near clipping plane (Must be positive, and must not be 0)
2432
2472
  * @param z_far The distance to the far clipping plane (Must be positive)
2473
+ * @since 1.10
2433
2474
  */
2434
2475
  perspective(fov_y: number, aspect: number, z_near: number, z_far: number): void;
2435
2476
 
@@ -2437,17 +2478,20 @@ export namespace Cogl {
2437
2478
  * Reverts the clipping region to the state before the last call to
2438
2479
  * `cogl_framebuffer_push_scissor_clip()`, `cogl_framebuffer_push_rectangle_clip()`
2439
2480
  * `cogl_framebuffer_push_path_clip()`, or `cogl_framebuffer_push_primitive_clip()`.
2481
+ * @since 1.10
2440
2482
  */
2441
2483
  pop_clip(): void;
2442
2484
 
2443
2485
  /**
2444
2486
  * Restores the model-view matrix on the top of the matrix stack.
2487
+ * @since 1.10
2445
2488
  */
2446
2489
  pop_matrix(): void;
2447
2490
 
2448
2491
  /**
2449
2492
  * Copies the current model-view matrix onto the matrix stack. The matrix
2450
2493
  * can later be restored with `cogl_framebuffer_pop_matrix()`.
2494
+ * @since 1.10
2451
2495
  */
2452
2496
  push_matrix(): void;
2453
2497
 
@@ -2464,6 +2508,7 @@ export namespace Cogl {
2464
2508
  * @param y_1 y coordinate for top left corner of the clip rectangle
2465
2509
  * @param x_2 x coordinate for bottom right corner of the clip rectangle
2466
2510
  * @param y_2 y coordinate for bottom right corner of the clip rectangle
2511
+ * @since 1.10
2467
2512
  */
2468
2513
  push_rectangle_clip(x_1: number, y_1: number, x_2: number, y_2: number): void;
2469
2514
 
@@ -2485,6 +2530,7 @@ export namespace Cogl {
2485
2530
  * @param y top edge of the clip rectangle in window coordinates
2486
2531
  * @param width width of the clip rectangle
2487
2532
  * @param height height of the clip rectangle
2533
+ * @since 1.10
2488
2534
  */
2489
2535
  push_scissor_clip(x: number, y: number, width: number, height: number): void;
2490
2536
 
@@ -2522,6 +2568,7 @@ export namespace Cogl {
2522
2568
  * @param format The pixel format to store the data in
2523
2569
  * @param pixels The address of the buffer to store the data in
2524
2570
  * @returns `true` if the read succeeded or `false` otherwise.
2571
+ * @since 1.10
2525
2572
  */
2526
2573
  read_pixels(x: number, y: number, width: number, height: number, format: PixelFormat, pixels: number): boolean;
2527
2574
 
@@ -2541,6 +2588,7 @@ export namespace Cogl {
2541
2588
  * @param source Identifies which auxiliary buffer you want to read (only COGL_READ_PIXELS_COLOR_BUFFER supported currently)
2542
2589
  * @param bitmap The bitmap to store the results in.
2543
2590
  * @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.
2591
+ * @since 1.10
2544
2592
  */
2545
2593
  read_pixels_into_bitmap(x: number, y: number, source: ReadPixelsFlags, bitmap: Bitmap): boolean;
2546
2594
 
@@ -2565,6 +2613,7 @@ export namespace Cogl {
2565
2613
  * If you are performing incremental updates to a framebuffer you
2566
2614
  * should consider using `cogl_framebuffer_resolve_samples_region()`
2567
2615
  * instead to avoid resolving redundant pixels.
2616
+ * @since 1.8
2568
2617
  */
2569
2618
  resolve_samples(): void;
2570
2619
 
@@ -2594,6 +2643,7 @@ export namespace Cogl {
2594
2643
  * @param y top-left y coordinate of region to resolve
2595
2644
  * @param width width of region to resolve
2596
2645
  * @param height height of region to resolve
2646
+ * @since 1.8
2597
2647
  */
2598
2648
  resolve_samples_region(x: number, y: number, width: number, height: number): void;
2599
2649
 
@@ -2607,6 +2657,7 @@ export namespace Cogl {
2607
2657
  * @param x X-component of vertex to rotate around.
2608
2658
  * @param y Y-component of vertex to rotate around.
2609
2659
  * @param z Z-component of vertex to rotate around.
2660
+ * @since 1.10
2610
2661
  */
2611
2662
  rotate(angle: number, x: number, y: number, z: number): void;
2612
2663
 
@@ -2614,6 +2665,7 @@ export namespace Cogl {
2614
2665
  * Multiplies the current model-view matrix by one that rotates
2615
2666
  * according to the rotation described by `euler`.
2616
2667
  * @param euler A {@link Graphene.Euler}
2668
+ * @since 2.0
2617
2669
  */
2618
2670
  rotate_euler(euler: Graphene.Euler): void;
2619
2671
 
@@ -2623,6 +2675,7 @@ export namespace Cogl {
2623
2675
  * @param x Amount to scale along the x-axis
2624
2676
  * @param y Amount to scale along the y-axis
2625
2677
  * @param z Amount to scale along the z-axis
2678
+ * @since 1.10
2626
2679
  */
2627
2680
  scale(x: number, y: number, z: number): void;
2628
2681
 
@@ -2634,6 +2687,7 @@ export namespace Cogl {
2634
2687
  *
2635
2688
  * Depth buffer writing is enabled by default.
2636
2689
  * @param depth_write_enabled `true` to enable depth writing or `false` to disable
2690
+ * @since 1.18
2637
2691
  */
2638
2692
  set_depth_write_enabled(depth_write_enabled: boolean): void;
2639
2693
 
@@ -2652,18 +2706,21 @@ export namespace Cogl {
2652
2706
  *
2653
2707
  * Dithering is enabled by default.
2654
2708
  * @param dither_enabled `true` to enable dithering or `false` to disable
2709
+ * @since 1.8
2655
2710
  */
2656
2711
  set_dither_enabled(dither_enabled: boolean): void;
2657
2712
 
2658
2713
  /**
2659
2714
  * Sets `matrix` as the new model-view matrix.
2660
2715
  * @param matrix the new model-view matrix
2716
+ * @since 1.10
2661
2717
  */
2662
2718
  set_modelview_matrix(matrix: Matrix): void;
2663
2719
 
2664
2720
  /**
2665
2721
  * Sets `matrix` as the new projection matrix.
2666
2722
  * @param matrix the new projection matrix
2723
+ * @since 1.10
2667
2724
  */
2668
2725
  set_projection_matrix(matrix: Matrix): void;
2669
2726
 
@@ -2701,6 +2758,7 @@ export namespace Cogl {
2701
2758
  * framebuffer has changed this can lead to redundant work being
2702
2759
  * done.</note>
2703
2760
  * @param samples_per_pixel The minimum number of samples per pixel
2761
+ * @since 1.8
2704
2762
  */
2705
2763
  set_samples_per_pixel(samples_per_pixel: number): void;
2706
2764
 
@@ -2713,6 +2771,7 @@ export namespace Cogl {
2713
2771
  * enabled. (See `cogl_onscreen_template_set_stereo_enabled()`,
2714
2772
  * `cogl_framebuffer_get_is_stereo()`.)
2715
2773
  * @param stereo_mode A {@link Cogl.StereoMode} specifying which stereo buffers should be drawn tow.
2774
+ * @since 1.20
2716
2775
  */
2717
2776
  set_stereo_mode(stereo_mode: StereoMode): void;
2718
2777
 
@@ -2736,12 +2795,14 @@ export namespace Cogl {
2736
2795
  * @param y The top-left y coordinate of the viewport origin (only integers supported currently)
2737
2796
  * @param width The width of the viewport (only integers supported currently)
2738
2797
  * @param height The height of the viewport (only integers supported currently)
2798
+ * @since 1.8
2739
2799
  */
2740
2800
  set_viewport(x: number, y: number, width: number, height: number): void;
2741
2801
 
2742
2802
  /**
2743
2803
  * Multiplies the current model-view matrix by the given matrix.
2744
2804
  * @param matrix the matrix to multiply with the current model-view
2805
+ * @since 1.10
2745
2806
  */
2746
2807
  transform(matrix: Matrix): void;
2747
2808
 
@@ -2751,6 +2812,7 @@ export namespace Cogl {
2751
2812
  * @param x Distance to translate along the x-axis
2752
2813
  * @param y Distance to translate along the y-axis
2753
2814
  * @param z Distance to translate along the z-axis
2815
+ * @since 1.10
2754
2816
  */
2755
2817
  translate(x: number, y: number, z: number): void;
2756
2818
  }
@@ -2804,6 +2866,7 @@ export namespace Cogl {
2804
2866
  * @param callback A callback function to call for dirty events
2805
2867
  * @param destroy An optional callback to destroy `user_data` when the `callback` is removed or `onscreen` is freed.
2806
2868
  * @returns a {@link Cogl.OnscreenDirtyClosure} pointer that can be used to remove the callback and associated `user_data` later.
2869
+ * @since 1.16
2807
2870
  */
2808
2871
  add_dirty_callback(callback: OnscreenDirtyCallback, destroy: UserDataDestroyCallback | null): OnscreenDirtyClosure;
2809
2872
 
@@ -2834,6 +2897,7 @@ export namespace Cogl {
2834
2897
  * @param callback A callback function to call for frame events
2835
2898
  * @param destroy An optional callback to destroy `user_data` when the `callback` is removed or `onscreen` is freed.
2836
2899
  * @returns a {@link Cogl.FrameClosure} pointer that can be used to remove the callback and associated `user_data` later.
2900
+ * @since 1.14
2837
2901
  */
2838
2902
  add_frame_callback(callback: FrameCallback, destroy: UserDataDestroyCallback | null): FrameClosure;
2839
2903
 
@@ -2859,6 +2923,7 @@ export namespace Cogl {
2859
2923
  * @param callback A {@link Cogl.OnscreenResizeCallback} to call when the `onscreen` changes size.
2860
2924
  * @param destroy An optional callback to destroy `user_data` when the `callback` is removed or `onscreen` is freed.
2861
2925
  * @returns a {@link Cogl.OnscreenResizeClosure} pointer that can be used to remove the callback and associated `user_data` later.
2926
+ * @since 2.0
2862
2927
  */
2863
2928
  add_resize_callback(callback: OnscreenResizeCallback, destroy: UserDataDestroyCallback | null): OnscreenResizeClosure;
2864
2929
 
@@ -2902,6 +2967,7 @@ export namespace Cogl {
2902
2967
  * age of {@link Cogl.Onscreen} back buffer contents. If this feature is
2903
2968
  * missing then this function will always return 0.</note>
2904
2969
  * @returns The age of the buffer contents or 0 when the buffer contents are undefined.
2970
+ * @since 1.14
2905
2971
  */
2906
2972
  get_buffer_age(): number;
2907
2973
 
@@ -2911,6 +2977,7 @@ export namespace Cogl {
2911
2977
  * `cogl_onscreen_swap_buffers()` or `cogl_onscreen_swap_region()`
2912
2978
  * is called.
2913
2979
  * @returns the current frame counter value
2980
+ * @since 1.14
2914
2981
  */
2915
2982
  get_frame_counter(): number;
2916
2983
 
@@ -2930,6 +2997,7 @@ export namespace Cogl {
2930
2997
  * meaningful with your window system, only whether the `onscreen` has
2931
2998
  * been marked as resizable.</note>
2932
2999
  * @returns Returns whether `onscreen` has been marked as resizable or not.
3000
+ * @since 2.0
2933
3001
  */
2934
3002
  get_resizable(): boolean;
2935
3003
 
@@ -2948,6 +3016,7 @@ export namespace Cogl {
2948
3016
  * requests e.g. to show an already visible window. This also means
2949
3017
  * that it's acceptable to alternatively use native APIs to show and
2950
3018
  * hide windows without confusing Cogl.</note>
3019
+ * @since 2.0
2951
3020
  */
2952
3021
  hide(): void;
2953
3022
 
@@ -2959,6 +3028,7 @@ export namespace Cogl {
2959
3028
  * `cogl_onscreen_add_dirty_callback()` to destroy the user data then
2960
3029
  * this will also get called.
2961
3030
  * @param closure A {@link Cogl.OnscreenDirtyClosure} returned from `cogl_onscreen_add_dirty_callback()`
3031
+ * @since 1.16
2962
3032
  */
2963
3033
  remove_dirty_callback(closure: OnscreenDirtyClosure): void;
2964
3034
 
@@ -2970,6 +3040,7 @@ export namespace Cogl {
2970
3040
  * `cogl_onscreen_add_frame_callback()` to destroy the user data then
2971
3041
  * this will get called.
2972
3042
  * @param closure A {@link Cogl.FrameClosure} returned from `cogl_onscreen_add_frame_callback()`
3043
+ * @since 1.14
2973
3044
  */
2974
3045
  remove_frame_callback(closure: FrameClosure): void;
2975
3046
 
@@ -2977,6 +3048,7 @@ export namespace Cogl {
2977
3048
  * Removes a resize `callback` and `user_data` pair that were previously
2978
3049
  * associated with `onscreen` via `cogl_onscreen_add_resize_callback()`.
2979
3050
  * @param closure An identifier returned from `cogl_onscreen_add_resize_callback()`
3051
+ * @since 2.0
2980
3052
  */
2981
3053
  remove_resize_callback(closure: OnscreenResizeClosure): void;
2982
3054
 
@@ -3004,6 +3076,7 @@ export namespace Cogl {
3004
3076
  * resize handler using `cogl_onscreen_add_resize_callback()` so that it
3005
3077
  * can track when the viewport has been changed automatically.</note>
3006
3078
  * @param resizable
3079
+ * @since 2.0
3007
3080
  */
3008
3081
  set_resizable(resizable: boolean): void;
3009
3082
 
@@ -3028,6 +3101,7 @@ export namespace Cogl {
3028
3101
  * requests e.g. to show an already visible window. This also means
3029
3102
  * that it's acceptable to alternatively use native APIs to show and
3030
3103
  * hide windows without confusing Cogl.</note>
3104
+ * @since 2.0
3031
3105
  */
3032
3106
  show(): void;
3033
3107
 
@@ -3046,6 +3120,7 @@ export namespace Cogl {
3046
3120
  * perform incremental updates to older buffers instead of having to
3047
3121
  * render a full buffer for every frame.</note>
3048
3122
  * @param frame_info
3123
+ * @since 1.10
3049
3124
  */
3050
3125
  swap_buffers(frame_info: FrameInfo): void;
3051
3126
 
@@ -3090,6 +3165,7 @@ export namespace Cogl {
3090
3165
  * @param rectangles An array of integer 4-tuples representing damaged rectangles as (x, y, width, height) tuples.
3091
3166
  * @param n_rectangles The number of 4-tuples to be read from `rectangles`
3092
3167
  * @param info
3168
+ * @since 1.16
3093
3169
  */
3094
3170
  swap_buffers_with_damage(rectangles: number, n_rectangles: number, info: FrameInfo): void;
3095
3171
 
@@ -3106,6 +3182,7 @@ export namespace Cogl {
3106
3182
  * @param rectangles An array of integer 4-tuples representing rectangles as (x, y, width, height) tuples.
3107
3183
  * @param n_rectangles The number of 4-tuples to be read from `rectangles`
3108
3184
  * @param info
3185
+ * @since 1.10
3109
3186
  */
3110
3187
  swap_region(rectangles: number, n_rectangles: number, info: FrameInfo): void;
3111
3188
 
@@ -3121,6 +3198,7 @@ export namespace Cogl {
3121
3198
  * program will abort with an error message if there is an error during
3122
3199
  * automatic allocation.</note>
3123
3200
  * @returns `true` if there were no error allocating the framebuffer, else `false`.
3201
+ * @since 1.8
3124
3202
  */
3125
3203
  allocate(): boolean;
3126
3204
 
@@ -3129,6 +3207,7 @@ export namespace Cogl {
3129
3207
  * that includes the color buffer then the specified `color` is used.
3130
3208
  * @param buffers A mask of {@link Cogl.BufferBit}<!-- -->'s identifying which auxiliary buffers to clear
3131
3209
  * @param color The color to clear the color buffer too if specified in `buffers`.
3210
+ * @since 1.8
3132
3211
  */
3133
3212
  clear(buffers: bigint | number, color: Color): void;
3134
3213
 
@@ -3140,6 +3219,7 @@ export namespace Cogl {
3140
3219
  * @param green The green component of color to clear the color buffer too if specified in `buffers`.
3141
3220
  * @param blue The blue component of color to clear the color buffer too if specified in `buffers`.
3142
3221
  * @param alpha The alpha component of color to clear the color buffer too if specified in `buffers`.
3222
+ * @since 1.8
3143
3223
  */
3144
3224
  clear4f(buffers: bigint | number, red: number, green: number, blue: number, alpha: number): void;
3145
3225
 
@@ -3161,6 +3241,7 @@ export namespace Cogl {
3161
3241
  * framebuffer, and it's not meaningful to try and discard the color buffer of
3162
3242
  * a {@link Cogl.Offscreen} framebuffer since they are single-buffered.
3163
3243
  * @param buffers A {@link Cogl.BufferBit} mask of which ancillary buffers you want to discard.
3244
+ * @since 1.8
3164
3245
  */
3165
3246
  discard_buffers(buffers: bigint | number): void;
3166
3247
 
@@ -3210,6 +3291,7 @@ export namespace Cogl {
3210
3291
  * @param y_2 y coordinate lower right on screen.
3211
3292
  * @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.
3212
3293
  * @param tex_coords_len The length of the `tex_coords` array. (For one layer and one group of texture coordinates, this would be 4)
3294
+ * @since 1.10
3213
3295
  */
3214
3296
  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;
3215
3297
 
@@ -3230,6 +3312,7 @@ export namespace Cogl {
3230
3312
  * @param y_1 Y coordinate of the top-left corner
3231
3313
  * @param x_2 X coordinate of the bottom-right corner
3232
3314
  * @param y_2 Y coordinate of the bottom-right corner
3315
+ * @since 1.10
3233
3316
  */
3234
3317
  draw_rectangle(pipeline: Pipeline, x_1: number, y_1: number, x_2: number, y_2: number): void;
3235
3318
 
@@ -3256,6 +3339,7 @@ export namespace Cogl {
3256
3339
  * @param pipeline A {@link Cogl.Pipeline} state object
3257
3340
  * @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).
3258
3341
  * @param n_rectangles number of rectangles defined in `coordinates`.
3342
+ * @since 1.10
3259
3343
  */
3260
3344
  draw_rectangles(pipeline: Pipeline, coordinates: number[], n_rectangles: number): void;
3261
3345
 
@@ -3295,6 +3379,7 @@ export namespace Cogl {
3295
3379
  * @param t_1 T texture coordinate of the top-left coorner
3296
3380
  * @param s_2 S texture coordinate of the bottom-right coorner
3297
3381
  * @param t_2 T texture coordinate of the bottom-right coorner
3382
+ * @since 1.10
3298
3383
  */
3299
3384
  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;
3300
3385
 
@@ -3336,6 +3421,7 @@ export namespace Cogl {
3336
3421
  * @param pipeline A {@link Cogl.Pipeline} state object
3337
3422
  * @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()`.
3338
3423
  * @param n_rectangles number of rectangles to `coordinates` to draw
3424
+ * @since 1.10
3339
3425
  */
3340
3426
  draw_textured_rectangles(pipeline: Pipeline, coordinates: number[], n_rectangles: number): void;
3341
3427
 
@@ -3349,6 +3435,7 @@ export namespace Cogl {
3349
3435
  * One example might be for benchmarking purposes to be sure timing
3350
3436
  * measurements reflect the time that the GPU is busy for not just the time it
3351
3437
  * takes to queue rendering commands.
3438
+ * @since 1.10
3352
3439
  */
3353
3440
  finish(): void;
3354
3441
 
@@ -3370,18 +3457,21 @@ export namespace Cogl {
3370
3457
  * @param top Y position of the top clipping plane where it intersects the near clipping plane
3371
3458
  * @param z_near The distance to the near clipping plane (Must be positive)
3372
3459
  * @param z_far The distance to the far clipping plane (Must be positive)
3460
+ * @since 1.10
3373
3461
  */
3374
3462
  frustum(left: number, right: number, bottom: number, top: number, z_near: number, z_far: number): void;
3375
3463
 
3376
3464
  /**
3377
3465
  * Retrieves the number of alpha bits of `framebuffer`
3378
3466
  * @returns the number of bits
3467
+ * @since 1.8
3379
3468
  */
3380
3469
  get_alpha_bits(): number;
3381
3470
 
3382
3471
  /**
3383
3472
  * Retrieves the number of blue bits of `framebuffer`
3384
3473
  * @returns the number of bits
3474
+ * @since 1.8
3385
3475
  */
3386
3476
  get_blue_bits(): number;
3387
3477
 
@@ -3390,12 +3480,14 @@ export namespace Cogl {
3390
3480
  * instantiated within. This is the {@link Cogl.Context} that was passed to
3391
3481
  * `cogl_onscreen_new()` for example.
3392
3482
  * @returns The {@link Cogl.Context} that the given `framebuffer` was instantiated within.
3483
+ * @since 1.8
3393
3484
  */
3394
3485
  get_context(): Context;
3395
3486
 
3396
3487
  /**
3397
3488
  * Retrieves the number of depth bits of `framebuffer`
3398
3489
  * @returns the number of bits
3490
+ * @since 2.0
3399
3491
  */
3400
3492
  get_depth_bits(): number;
3401
3493
 
@@ -3403,6 +3495,7 @@ export namespace Cogl {
3403
3495
  * Queries whether depth buffer writing is enabled for `framebuffer`. This
3404
3496
  * can be controlled via `cogl_framebuffer_set_depth_write_enabled()`.
3405
3497
  * @returns `true` if depth writing is enabled or `false` if not.
3498
+ * @since 1.18
3406
3499
  */
3407
3500
  get_depth_write_enabled(): boolean;
3408
3501
 
@@ -3414,18 +3507,21 @@ export namespace Cogl {
3414
3507
  * display pipeline does not support dithering. This value only represents
3415
3508
  * the user's request for dithering.</note>
3416
3509
  * @returns `true` if dithering has been requested or `false` if not.
3510
+ * @since 1.8
3417
3511
  */
3418
3512
  get_dither_enabled(): boolean;
3419
3513
 
3420
3514
  /**
3421
3515
  * Retrieves the number of green bits of `framebuffer`
3422
3516
  * @returns the number of bits
3517
+ * @since 1.8
3423
3518
  */
3424
3519
  get_green_bits(): number;
3425
3520
 
3426
3521
  /**
3427
3522
  * Queries the current height of the given `framebuffer`.
3428
3523
  * @returns The height of `framebuffer`.
3524
+ * @since 1.8
3429
3525
  */
3430
3526
  get_height(): number;
3431
3527
 
@@ -3433,17 +3529,20 @@ export namespace Cogl {
3433
3529
 
3434
3530
  /**
3435
3531
  * Stores the current model-view matrix in `matrix`.
3532
+ * @since 1.10
3436
3533
  */
3437
3534
  get_modelview_matrix(): Matrix;
3438
3535
 
3439
3536
  /**
3440
3537
  * Stores the current projection matrix in `matrix`.
3538
+ * @since 1.10
3441
3539
  */
3442
3540
  get_projection_matrix(): Matrix;
3443
3541
 
3444
3542
  /**
3445
3543
  * Retrieves the number of red bits of `framebuffer`
3446
3544
  * @returns the number of bits
3545
+ * @since 1.8
3447
3546
  */
3448
3547
  get_red_bits(): number;
3449
3548
 
@@ -3461,6 +3560,7 @@ export namespace Cogl {
3461
3560
  * framebuffer has been allocated the value will reflect the actual
3462
3561
  * number of samples that will be made by the GPU.
3463
3562
  * @returns The number of point samples made per pixel when rasterizing geometry or 0 if single-sample rendering has been chosen.
3563
+ * @since 1.10
3464
3564
  */
3465
3565
  get_samples_per_pixel(): number;
3466
3566
 
@@ -3468,6 +3568,7 @@ export namespace Cogl {
3468
3568
  * Gets the current {@link Cogl.StereoMode}, which defines which stereo buffers
3469
3569
  * should be drawn to. See `cogl_framebuffer_set_stereo_mode()`.
3470
3570
  * @returns A {@link Cogl.StereoMode}
3571
+ * @since 1.20
3471
3572
  */
3472
3573
  get_stereo_mode(): StereoMode;
3473
3574
 
@@ -3476,6 +3577,7 @@ export namespace Cogl {
3476
3577
  * using `cogl_framebuffer_set_viewport()` or the default values which are 0, 0,
3477
3578
  * framebuffer_width and framebuffer_height. The values are written into the
3478
3579
  * given `viewport` array.
3580
+ * @since 1.8
3479
3581
  */
3480
3582
  get_viewport4fv(): number[];
3481
3583
 
@@ -3483,6 +3585,7 @@ export namespace Cogl {
3483
3585
  * Queries the height of the viewport as set using `cogl_framebuffer_set_viewport()`
3484
3586
  * or the default value which is the height of the framebuffer.
3485
3587
  * @returns The height of the viewport.
3588
+ * @since 1.8
3486
3589
  */
3487
3590
  get_viewport_height(): number;
3488
3591
 
@@ -3490,6 +3593,7 @@ export namespace Cogl {
3490
3593
  * Queries the width of the viewport as set using `cogl_framebuffer_set_viewport()`
3491
3594
  * or the default value which is the width of the framebuffer.
3492
3595
  * @returns The width of the viewport.
3596
+ * @since 1.8
3493
3597
  */
3494
3598
  get_viewport_width(): number;
3495
3599
 
@@ -3497,6 +3601,7 @@ export namespace Cogl {
3497
3601
  * Queries the x coordinate of the viewport origin as set using `cogl_framebuffer_set_viewport()`
3498
3602
  * or the default value which is 0.
3499
3603
  * @returns The x coordinate of the viewport origin.
3604
+ * @since 1.8
3500
3605
  */
3501
3606
  get_viewport_x(): number;
3502
3607
 
@@ -3504,17 +3609,20 @@ export namespace Cogl {
3504
3609
  * Queries the y coordinate of the viewport origin as set using `cogl_framebuffer_set_viewport()`
3505
3610
  * or the default value which is 0.
3506
3611
  * @returns The y coordinate of the viewport origin.
3612
+ * @since 1.8
3507
3613
  */
3508
3614
  get_viewport_y(): number;
3509
3615
 
3510
3616
  /**
3511
3617
  * Queries the current width of the given `framebuffer`.
3512
3618
  * @returns The width of `framebuffer`.
3619
+ * @since 1.8
3513
3620
  */
3514
3621
  get_width(): number;
3515
3622
 
3516
3623
  /**
3517
3624
  * Resets the current model-view matrix to the identity matrix.
3625
+ * @since 1.10
3518
3626
  */
3519
3627
  identity_matrix(): void;
3520
3628
 
@@ -3527,6 +3635,7 @@ export namespace Cogl {
3527
3635
  * @param y_2 The y coordinate for the second horizontal clipping plane
3528
3636
  * @param near The <emphasis>distance</emphasis> to the near clipping plane (will be <emphasis>negative</emphasis> if the plane is behind the viewer)
3529
3637
  * @param far The <emphasis>distance</emphasis> to the far clipping plane (will be <emphasis>negative</emphasis> if the plane is behind the viewer)
3638
+ * @since 1.10
3530
3639
  */
3531
3640
  orthographic(x_1: number, y_1: number, x_2: number, y_2: number, near: number, far: number): void;
3532
3641
 
@@ -3542,6 +3651,7 @@ export namespace Cogl {
3542
3651
  * @param aspect The (width over height) aspect ratio for display
3543
3652
  * @param z_near The distance to the near clipping plane (Must be positive, and must not be 0)
3544
3653
  * @param z_far The distance to the far clipping plane (Must be positive)
3654
+ * @since 1.10
3545
3655
  */
3546
3656
  perspective(fov_y: number, aspect: number, z_near: number, z_far: number): void;
3547
3657
 
@@ -3549,17 +3659,20 @@ export namespace Cogl {
3549
3659
  * Reverts the clipping region to the state before the last call to
3550
3660
  * `cogl_framebuffer_push_scissor_clip()`, `cogl_framebuffer_push_rectangle_clip()`
3551
3661
  * `cogl_framebuffer_push_path_clip()`, or `cogl_framebuffer_push_primitive_clip()`.
3662
+ * @since 1.10
3552
3663
  */
3553
3664
  pop_clip(): void;
3554
3665
 
3555
3666
  /**
3556
3667
  * Restores the model-view matrix on the top of the matrix stack.
3668
+ * @since 1.10
3557
3669
  */
3558
3670
  pop_matrix(): void;
3559
3671
 
3560
3672
  /**
3561
3673
  * Copies the current model-view matrix onto the matrix stack. The matrix
3562
3674
  * can later be restored with `cogl_framebuffer_pop_matrix()`.
3675
+ * @since 1.10
3563
3676
  */
3564
3677
  push_matrix(): void;
3565
3678
 
@@ -3576,6 +3689,7 @@ export namespace Cogl {
3576
3689
  * @param y_1 y coordinate for top left corner of the clip rectangle
3577
3690
  * @param x_2 x coordinate for bottom right corner of the clip rectangle
3578
3691
  * @param y_2 y coordinate for bottom right corner of the clip rectangle
3692
+ * @since 1.10
3579
3693
  */
3580
3694
  push_rectangle_clip(x_1: number, y_1: number, x_2: number, y_2: number): void;
3581
3695
 
@@ -3597,6 +3711,7 @@ export namespace Cogl {
3597
3711
  * @param y top edge of the clip rectangle in window coordinates
3598
3712
  * @param width width of the clip rectangle
3599
3713
  * @param height height of the clip rectangle
3714
+ * @since 1.10
3600
3715
  */
3601
3716
  push_scissor_clip(x: number, y: number, width: number, height: number): void;
3602
3717
 
@@ -3634,6 +3749,7 @@ export namespace Cogl {
3634
3749
  * @param format The pixel format to store the data in
3635
3750
  * @param pixels The address of the buffer to store the data in
3636
3751
  * @returns `true` if the read succeeded or `false` otherwise.
3752
+ * @since 1.10
3637
3753
  */
3638
3754
  read_pixels(x: number, y: number, width: number, height: number, format: PixelFormat, pixels: number): boolean;
3639
3755
 
@@ -3653,6 +3769,7 @@ export namespace Cogl {
3653
3769
  * @param source Identifies which auxiliary buffer you want to read (only COGL_READ_PIXELS_COLOR_BUFFER supported currently)
3654
3770
  * @param bitmap The bitmap to store the results in.
3655
3771
  * @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.
3772
+ * @since 1.10
3656
3773
  */
3657
3774
  read_pixels_into_bitmap(x: number, y: number, source: ReadPixelsFlags, bitmap: Bitmap): boolean;
3658
3775
 
@@ -3677,6 +3794,7 @@ export namespace Cogl {
3677
3794
  * If you are performing incremental updates to a framebuffer you
3678
3795
  * should consider using `cogl_framebuffer_resolve_samples_region()`
3679
3796
  * instead to avoid resolving redundant pixels.
3797
+ * @since 1.8
3680
3798
  */
3681
3799
  resolve_samples(): void;
3682
3800
 
@@ -3706,6 +3824,7 @@ export namespace Cogl {
3706
3824
  * @param y top-left y coordinate of region to resolve
3707
3825
  * @param width width of region to resolve
3708
3826
  * @param height height of region to resolve
3827
+ * @since 1.8
3709
3828
  */
3710
3829
  resolve_samples_region(x: number, y: number, width: number, height: number): void;
3711
3830
 
@@ -3719,6 +3838,7 @@ export namespace Cogl {
3719
3838
  * @param x X-component of vertex to rotate around.
3720
3839
  * @param y Y-component of vertex to rotate around.
3721
3840
  * @param z Z-component of vertex to rotate around.
3841
+ * @since 1.10
3722
3842
  */
3723
3843
  rotate(angle: number, x: number, y: number, z: number): void;
3724
3844
 
@@ -3726,6 +3846,7 @@ export namespace Cogl {
3726
3846
  * Multiplies the current model-view matrix by one that rotates
3727
3847
  * according to the rotation described by `euler`.
3728
3848
  * @param euler A {@link Graphene.Euler}
3849
+ * @since 2.0
3729
3850
  */
3730
3851
  rotate_euler(euler: Graphene.Euler): void;
3731
3852
 
@@ -3735,6 +3856,7 @@ export namespace Cogl {
3735
3856
  * @param x Amount to scale along the x-axis
3736
3857
  * @param y Amount to scale along the y-axis
3737
3858
  * @param z Amount to scale along the z-axis
3859
+ * @since 1.10
3738
3860
  */
3739
3861
  scale(x: number, y: number, z: number): void;
3740
3862
 
@@ -3746,6 +3868,7 @@ export namespace Cogl {
3746
3868
  *
3747
3869
  * Depth buffer writing is enabled by default.
3748
3870
  * @param depth_write_enabled `true` to enable depth writing or `false` to disable
3871
+ * @since 1.18
3749
3872
  */
3750
3873
  set_depth_write_enabled(depth_write_enabled: boolean): void;
3751
3874
 
@@ -3764,18 +3887,21 @@ export namespace Cogl {
3764
3887
  *
3765
3888
  * Dithering is enabled by default.
3766
3889
  * @param dither_enabled `true` to enable dithering or `false` to disable
3890
+ * @since 1.8
3767
3891
  */
3768
3892
  set_dither_enabled(dither_enabled: boolean): void;
3769
3893
 
3770
3894
  /**
3771
3895
  * Sets `matrix` as the new model-view matrix.
3772
3896
  * @param matrix the new model-view matrix
3897
+ * @since 1.10
3773
3898
  */
3774
3899
  set_modelview_matrix(matrix: Matrix): void;
3775
3900
 
3776
3901
  /**
3777
3902
  * Sets `matrix` as the new projection matrix.
3778
3903
  * @param matrix the new projection matrix
3904
+ * @since 1.10
3779
3905
  */
3780
3906
  set_projection_matrix(matrix: Matrix): void;
3781
3907
 
@@ -3813,6 +3939,7 @@ export namespace Cogl {
3813
3939
  * framebuffer has changed this can lead to redundant work being
3814
3940
  * done.</note>
3815
3941
  * @param samples_per_pixel The minimum number of samples per pixel
3942
+ * @since 1.8
3816
3943
  */
3817
3944
  set_samples_per_pixel(samples_per_pixel: number): void;
3818
3945
 
@@ -3825,6 +3952,7 @@ export namespace Cogl {
3825
3952
  * enabled. (See `cogl_onscreen_template_set_stereo_enabled()`,
3826
3953
  * `cogl_framebuffer_get_is_stereo()`.)
3827
3954
  * @param stereo_mode A {@link Cogl.StereoMode} specifying which stereo buffers should be drawn tow.
3955
+ * @since 1.20
3828
3956
  */
3829
3957
  set_stereo_mode(stereo_mode: StereoMode): void;
3830
3958
 
@@ -3848,12 +3976,14 @@ export namespace Cogl {
3848
3976
  * @param y The top-left y coordinate of the viewport origin (only integers supported currently)
3849
3977
  * @param width The width of the viewport (only integers supported currently)
3850
3978
  * @param height The height of the viewport (only integers supported currently)
3979
+ * @since 1.8
3851
3980
  */
3852
3981
  set_viewport(x: number, y: number, width: number, height: number): void;
3853
3982
 
3854
3983
  /**
3855
3984
  * Multiplies the current model-view matrix by the given matrix.
3856
3985
  * @param matrix the matrix to multiply with the current model-view
3986
+ * @since 1.10
3857
3987
  */
3858
3988
  transform(matrix: Matrix): void;
3859
3989
 
@@ -3863,6 +3993,7 @@ export namespace Cogl {
3863
3993
  * @param x Distance to translate along the x-axis
3864
3994
  * @param y Distance to translate along the y-axis
3865
3995
  * @param z Distance to translate along the z-axis
3996
+ * @since 1.10
3866
3997
  */
3867
3998
  translate(x: number, y: number, z: number): void;
3868
3999
  }
@@ -3908,32 +4039,38 @@ export namespace Cogl {
3908
4039
  * keep track of a pipelines ancestry which we may use to help minimize GPU
3909
4040
  * state changes.
3910
4041
  * @returns a pointer to the newly allocated {@link Cogl.Pipeline}
4042
+ * @since 2.0
3911
4043
  */
3912
4044
  copy(): Pipeline;
3913
4045
 
3914
4046
  /**
3915
4047
  * Iterates all the layer indices of the given `pipeline`.
3916
4048
  * @param callback A {@link Cogl.PipelineLayerCallback} to be called for each layer index
4049
+ * @since 2.0
3917
4050
  */
3918
4051
  foreach_layer(callback: PipelineLayerCallback): void;
3919
4052
 
3920
4053
  /**
3921
4054
  * @returns The alpha test function of `pipeline`.
4055
+ * @since 2.0
3922
4056
  */
3923
4057
  get_alpha_test_function(): PipelineAlphaFunc;
3924
4058
 
3925
4059
  /**
3926
4060
  * @returns The alpha test reference value of `pipeline`.
4061
+ * @since 2.0
3927
4062
  */
3928
4063
  get_alpha_test_reference(): number;
3929
4064
 
3930
4065
  /**
3931
4066
  * Retrieves the current pipeline color.
4067
+ * @since 2.0
3932
4068
  */
3933
4069
  get_color(): Color;
3934
4070
 
3935
4071
  /**
3936
4072
  * @returns the cull face mode that was previously set with `cogl_pipeline_set_cull_face_mode()`. Status: Unstable
4073
+ * @since 2.0
3937
4074
  */
3938
4075
  get_cull_face_mode(): PipelineCullFaceMode;
3939
4076
 
@@ -3946,6 +4083,7 @@ export namespace Cogl {
3946
4083
  * {@link Cogl.Winding.CLOCKWISE} sets them to be clockwise. The default is
3947
4084
  * {@link Cogl.Winding.COUNTER_CLOCKWISE}.
3948
4085
  * @returns The `pipeline` front face winding Status: Unstable
4086
+ * @since 2.0
3949
4087
  */
3950
4088
  get_front_face_winding(): Winding;
3951
4089
 
@@ -3958,6 +4096,7 @@ export namespace Cogl {
3958
4096
  * changed using `cogl_pipeline_set_layer_filters()`.
3959
4097
  * @param layer_index the layer number to change.
3960
4098
  * @returns The magnification {@link Cogl.PipelineFilter} for the specified layer.
4099
+ * @since 1.10
3961
4100
  */
3962
4101
  get_layer_mag_filter(layer_index: number): PipelineFilter;
3963
4102
 
@@ -3970,6 +4109,7 @@ export namespace Cogl {
3970
4109
  * changed using `cogl_pipeline_set_layer_filters()`.
3971
4110
  * @param layer_index the layer number to change.
3972
4111
  * @returns The minification {@link Cogl.PipelineFilter} for the specified layer.
4112
+ * @since 1.10
3973
4113
  */
3974
4114
  get_layer_min_filter(layer_index: number): PipelineFilter;
3975
4115
 
@@ -3978,12 +4118,14 @@ export namespace Cogl {
3978
4118
  * texture layer.
3979
4119
  * @param layer_index the layer number to check.
3980
4120
  * @returns whether the texture coordinates will be replaced with point sprite coordinates.
4121
+ * @since 2.0
3981
4122
  */
3982
4123
  get_layer_point_sprite_coords_enabled(layer_index: number): boolean;
3983
4124
 
3984
4125
  /**
3985
4126
  * @param layer_index the index of the layer
3986
4127
  * @returns the texture that was set for the given layer of the pipeline or `null` if no texture was set.
4128
+ * @since 1.10
3987
4129
  */
3988
4130
  get_layer_texture(layer_index: number): Texture;
3989
4131
 
@@ -3992,6 +4134,7 @@ export namespace Cogl {
3992
4134
  * layer.
3993
4135
  * @param layer_index the layer number to change.
3994
4136
  * @returns the wrap mode for the 's' coordinate of texture lookups on this layer.
4137
+ * @since 1.6
3995
4138
  */
3996
4139
  get_layer_wrap_mode_s(layer_index: number): PipelineWrapMode;
3997
4140
 
@@ -4000,17 +4143,20 @@ export namespace Cogl {
4000
4143
  * layer.
4001
4144
  * @param layer_index the layer number to change.
4002
4145
  * @returns the wrap mode for the 't' coordinate of texture lookups on this layer.
4146
+ * @since 1.6
4003
4147
  */
4004
4148
  get_layer_wrap_mode_t(layer_index: number): PipelineWrapMode;
4005
4149
 
4006
4150
  /**
4007
4151
  * Retrieves the number of layers defined for the given `pipeline`
4008
4152
  * @returns the number of layers
4153
+ * @since 2.0
4009
4154
  */
4010
4155
  get_n_layers(): number;
4011
4156
 
4012
4157
  /**
4013
4158
  * @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()`.
4159
+ * @since 2.0
4014
4160
  */
4015
4161
  get_per_vertex_point_size(): boolean;
4016
4162
 
@@ -4018,6 +4164,7 @@ export namespace Cogl {
4018
4164
  * Get the size of points drawn when {@link Cogl.VerticesMode.POINTS} is
4019
4165
  * used with the vertex buffer API.
4020
4166
  * @returns the point size of the `pipeline`.
4167
+ * @since 2.0
4021
4168
  */
4022
4169
  get_point_size(): number;
4023
4170
 
@@ -4033,6 +4180,7 @@ export namespace Cogl {
4033
4180
  * before calling this function.
4034
4181
  * @param uniform_name The name of a uniform
4035
4182
  * @returns A integer representing the location of the given uniform.
4183
+ * @since 2.0
4036
4184
  */
4037
4185
  get_uniform_location(uniform_name: string): number;
4038
4186
 
@@ -4040,12 +4188,14 @@ export namespace Cogl {
4040
4188
  * Queries what user program has been associated with the given
4041
4189
  * `pipeline` using `cogl_pipeline_set_user_program()`.
4042
4190
  * @returns The current user program or `null`.
4191
+ * @since 2.0
4043
4192
  */
4044
4193
  get_user_program(): Handle;
4045
4194
 
4046
4195
  /**
4047
4196
  * This function removes a layer from your pipeline
4048
4197
  * @param layer_index Specifies the layer you want to remove
4198
+ * @since 1.10
4049
4199
  */
4050
4200
  remove_layer(layer_index: number): void;
4051
4201
 
@@ -4059,6 +4209,7 @@ export namespace Cogl {
4059
4209
  * The default is {@link Cogl.PipelineAlphaFunc.ALWAYS}
4060
4210
  * @param alpha_func A `CoglPipelineAlphaFunc` constant
4061
4211
  * @param alpha_reference A reference point that the chosen alpha function uses to compare incoming fragments to.
4212
+ * @since 2.0
4062
4213
  */
4063
4214
  set_alpha_test_function(alpha_func: PipelineAlphaFunc, alpha_reference: number): void;
4064
4215
 
@@ -4130,6 +4281,7 @@ export namespace Cogl {
4130
4281
  * is in premultiplied form.
4131
4282
  * @param blend_string A <link linkend="cogl-Blend-Strings">Cogl blend string</link> describing the desired blend function.
4132
4283
  * @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).
4284
+ * @since 2.0
4133
4285
  */
4134
4286
  set_blend(blend_string: string): boolean;
4135
4287
 
@@ -4137,6 +4289,7 @@ export namespace Cogl {
4137
4289
  * When blending is setup to reference a CONSTANT blend factor then
4138
4290
  * blending will depend on the constant set with this function.
4139
4291
  * @param constant_color The constant color you want
4292
+ * @since 2.0
4140
4293
  */
4141
4294
  set_blend_constant(constant_color: Color): void;
4142
4295
 
@@ -4150,6 +4303,7 @@ export namespace Cogl {
4150
4303
  *
4151
4304
  * The default value is (1.0, 1.0, 1.0, 1.0)
4152
4305
  * @param color The components of the color
4306
+ * @since 2.0
4153
4307
  */
4154
4308
  set_color(color: Color): void;
4155
4309
 
@@ -4161,6 +4315,7 @@ export namespace Cogl {
4161
4315
  * @param green The green component
4162
4316
  * @param blue The blue component
4163
4317
  * @param alpha The alpha component
4318
+ * @since 2.0
4164
4319
  */
4165
4320
  set_color4f(red: number, green: number, blue: number, alpha: number): void;
4166
4321
 
@@ -4172,6 +4327,7 @@ export namespace Cogl {
4172
4327
  * @param green The green component
4173
4328
  * @param blue The blue component
4174
4329
  * @param alpha The alpha component
4330
+ * @since 2.0
4175
4331
  */
4176
4332
  set_color4ub(red: number, green: number, blue: number, alpha: number): void;
4177
4333
 
@@ -4191,6 +4347,7 @@ export namespace Cogl {
4191
4347
  *
4192
4348
  * Status: Unstable
4193
4349
  * @param cull_face_mode The new mode to set
4350
+ * @since 2.0
4194
4351
  */
4195
4352
  set_cull_face_mode(cull_face_mode: PipelineCullFaceMode): void;
4196
4353
 
@@ -4205,6 +4362,7 @@ export namespace Cogl {
4205
4362
  *
4206
4363
  * Status: Unstable
4207
4364
  * @param front_winding the winding order
4365
+ * @since 2.0
4208
4366
  */
4209
4367
  set_front_face_winding(front_winding: Winding): void;
4210
4368
 
@@ -4288,6 +4446,7 @@ export namespace Cogl {
4288
4446
  * @param layer_index Specifies the layer you want define a combine function for
4289
4447
  * @param blend_string A <link linkend="cogl-Blend-Strings">Cogl blend string</link> describing the desired texture combine function.
4290
4448
  * @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
4449
+ * @since 2.0
4291
4450
  */
4292
4451
  set_layer_combine(layer_index: number, blend_string: string): boolean;
4293
4452
 
@@ -4296,6 +4455,7 @@ export namespace Cogl {
4296
4455
  * description then you can use this function to define its value.
4297
4456
  * @param layer_index Specifies the layer you want to specify a constant used for texture combining
4298
4457
  * @param constant The constant color you want
4458
+ * @since 2.0
4299
4459
  */
4300
4460
  set_layer_combine_constant(layer_index: number, constant: Color): void;
4301
4461
 
@@ -4310,6 +4470,7 @@ export namespace Cogl {
4310
4470
  * @param layer_index the layer number to change.
4311
4471
  * @param min_filter the filter used when scaling a texture down.
4312
4472
  * @param mag_filter the filter used when magnifying a texture.
4473
+ * @since 1.10
4313
4474
  */
4314
4475
  set_layer_filters(layer_index: number, min_filter: PipelineFilter, mag_filter: PipelineFilter): void;
4315
4476
 
@@ -4318,6 +4479,7 @@ export namespace Cogl {
4318
4479
  * and rotate a single layer of a pipeline used to fill your geometry.
4319
4480
  * @param layer_index the index for the layer inside `pipeline`
4320
4481
  * @param matrix the transformation matrix for the layer
4482
+ * @since 1.10
4321
4483
  */
4322
4484
  set_layer_matrix(layer_index: number, matrix: Matrix): void;
4323
4485
 
@@ -4337,6 +4499,7 @@ export namespace Cogl {
4337
4499
  * specify the texture type so that any pipeline copies can share the
4338
4500
  * internal texture type state for efficiency.
4339
4501
  * @param layer_index The layer number to modify
4502
+ * @since 1.10
4340
4503
  */
4341
4504
  set_layer_null_texture(layer_index: number): void;
4342
4505
 
@@ -4350,6 +4513,7 @@ export namespace Cogl {
4350
4513
  * @param layer_index the layer number to change.
4351
4514
  * @param enable whether to enable point sprite coord generation.
4352
4515
  * @returns `true` if the function succeeds, `false` otherwise.
4516
+ * @since 2.0
4353
4517
  */
4354
4518
  set_layer_point_sprite_coords_enabled(layer_index: number, enable: boolean): boolean;
4355
4519
 
@@ -4366,6 +4530,7 @@ export namespace Cogl {
4366
4530
  * `cogl_pipeline_set_layer_wrap_mode_t()` separately.
4367
4531
  * @param layer_index the layer number to change.
4368
4532
  * @param mode the new wrap mode
4533
+ * @since 2.0
4369
4534
  */
4370
4535
  set_layer_wrap_mode(layer_index: number, mode: PipelineWrapMode): void;
4371
4536
 
@@ -4373,6 +4538,7 @@ export namespace Cogl {
4373
4538
  * Sets the wrap mode for the 's' coordinate of texture lookups on this layer.
4374
4539
  * @param layer_index the layer number to change.
4375
4540
  * @param mode the new wrap mode
4541
+ * @since 2.0
4376
4542
  */
4377
4543
  set_layer_wrap_mode_s(layer_index: number, mode: PipelineWrapMode): void;
4378
4544
 
@@ -4380,6 +4546,7 @@ export namespace Cogl {
4380
4546
  * Sets the wrap mode for the 't' coordinate of texture lookups on this layer.
4381
4547
  * @param layer_index the layer number to change.
4382
4548
  * @param mode the new wrap mode
4549
+ * @since 2.0
4383
4550
  */
4384
4551
  set_layer_wrap_mode_t(layer_index: number, mode: PipelineWrapMode): void;
4385
4552
 
@@ -4396,6 +4563,7 @@ export namespace Cogl {
4396
4563
  * undefined.
4397
4564
  * @param enable whether to enable per-vertex point size
4398
4565
  * @returns `true` if the change succeeded or `false` otherwise
4566
+ * @since 2.0
4399
4567
  */
4400
4568
  set_per_vertex_point_size(enable: boolean): boolean;
4401
4569
 
@@ -4413,6 +4581,7 @@ export namespace Cogl {
4413
4581
  * if an application wants to draw points it must make sure to use a
4414
4582
  * pipeline that has an explicit point size set on it.
4415
4583
  * @param point_size the new point size.
4584
+ * @since 2.0
4416
4585
  */
4417
4586
  set_point_size(point_size: number): void;
4418
4587
 
@@ -4429,6 +4598,7 @@ export namespace Cogl {
4429
4598
  * uniform.
4430
4599
  * @param uniform_location The uniform's location identifier
4431
4600
  * @param value The new value for the uniform
4601
+ * @since 2.0
4432
4602
  */
4433
4603
  set_uniform_1f(uniform_location: number, value: number): void;
4434
4604
 
@@ -4445,6 +4615,7 @@ export namespace Cogl {
4445
4615
  * uniform or a sampler uniform.
4446
4616
  * @param uniform_location The uniform's location identifier
4447
4617
  * @param value The new value for the uniform
4618
+ * @since 2.0
4448
4619
  */
4449
4620
  set_uniform_1i(uniform_location: number, value: number): void;
4450
4621
 
@@ -4465,6 +4636,7 @@ export namespace Cogl {
4465
4636
  * @param n_components The number of components in the corresponding uniform's type
4466
4637
  * @param count The number of values to set
4467
4638
  * @param value Pointer to the new values to set
4639
+ * @since 2.0
4468
4640
  */
4469
4641
  set_uniform_float(uniform_location: number, n_components: number, count: number, value: number): void;
4470
4642
 
@@ -4485,6 +4657,7 @@ export namespace Cogl {
4485
4657
  * @param n_components The number of components in the corresponding uniform's type
4486
4658
  * @param count The number of values to set
4487
4659
  * @param value Pointer to the new values to set
4660
+ * @since 2.0
4488
4661
  */
4489
4662
  set_uniform_int(uniform_location: number, n_components: number, count: number, value: number): void;
4490
4663
 
@@ -4511,6 +4684,7 @@ export namespace Cogl {
4511
4684
  * @param count The number of values to set
4512
4685
  * @param transpose Whether to transpose the matrix
4513
4686
  * @param value Pointer to the new values to set
4687
+ * @since 2.0
4514
4688
  */
4515
4689
  set_uniform_matrix(uniform_location: number, dimensions: number, count: number, transpose: boolean, value: number): void;
4516
4690
 
@@ -4551,6 +4725,7 @@ export namespace Cogl {
4551
4725
  * meantime we hope this will handle most practical GLSL and ARBfp
4552
4726
  * requirements.
4553
4727
  * @param program A {@link Cogl.Handle} to a linked CoglProgram
4728
+ * @since 2.0
4554
4729
  */
4555
4730
  set_user_program(program: Handle): void;
4556
4731
  }
@@ -4617,6 +4792,7 @@ export namespace Cogl {
4617
4792
  * is {@link Cogl.TextureComponents.RGBA}. The other constructors which take
4618
4793
  * a %CoglBitmap or a data pointer default to the same components as
4619
4794
  * the pixel format of the data.
4795
+ * @since 1.18
4620
4796
  */
4621
4797
  get_components(): TextureComponents;
4622
4798
 
@@ -4663,6 +4839,7 @@ export namespace Cogl {
4663
4839
  *
4664
4840
  * By default the pre-multipled state is `TRUE`.
4665
4841
  * @returns `true` if red, green and blue components are internally stored pre-multiplied by the alpha value or `false` if not.
4842
+ * @since 1.18
4666
4843
  */
4667
4844
  get_premultiplied(): boolean;
4668
4845
 
@@ -4695,6 +4872,8 @@ export namespace Cogl {
4695
4872
  * @param sub_width Width in pixels of the subregion
4696
4873
  * @param sub_height Height in pixels of the subregion
4697
4874
  * @returns A newly created {@link Cogl.Texture} or `null` on failure
4875
+ * @since 1.2
4876
+ * @deprecated since 1.18: Use `cogl_sub_texture_new()`
4698
4877
  */
4699
4878
  new_from_sub_texture(sub_x: number, sub_y: number, sub_width: number, sub_height: number): Texture;
4700
4879
 
@@ -4719,6 +4898,7 @@ export namespace Cogl {
4719
4898
  * an image format as long as {@link Cogl.TextureComponents.RG} isn't used
4720
4899
  * as the texture's components.
4721
4900
  * @param components
4901
+ * @since 1.18
4722
4902
  */
4723
4903
  set_components(components: TextureComponents): void;
4724
4904
 
@@ -4796,6 +4976,7 @@ export namespace Cogl {
4796
4976
  *
4797
4977
  * By default the `premultipled` state is `TRUE`.
4798
4978
  * @param premultiplied Whether any internally stored red, green or blue components are pre-multiplied by an alpha component.
4979
+ * @since 1.18
4799
4980
  */
4800
4981
  set_premultiplied(premultiplied: boolean): void;
4801
4982
 
@@ -4833,6 +5014,7 @@ export namespace Cogl {
4833
5014
  * @param dst_height height of destination region to write. (Must be less than or equal to the bitmap height)
4834
5015
  * @param bitmap The source bitmap to read from
4835
5016
  * @returns `true` if the subregion upload was successful, and `false` otherwise
5017
+ * @since 1.8
4836
5018
  */
4837
5019
  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;
4838
5020
  }
@@ -4891,6 +5073,7 @@ export namespace Cogl {
4891
5073
  * is {@link Cogl.TextureComponents.RGBA}. The other constructors which take
4892
5074
  * a %CoglBitmap or a data pointer default to the same components as
4893
5075
  * the pixel format of the data.
5076
+ * @since 1.18
4894
5077
  */
4895
5078
  get_components(): TextureComponents;
4896
5079
 
@@ -4937,6 +5120,7 @@ export namespace Cogl {
4937
5120
  *
4938
5121
  * By default the pre-multipled state is `TRUE`.
4939
5122
  * @returns `true` if red, green and blue components are internally stored pre-multiplied by the alpha value or `false` if not.
5123
+ * @since 1.18
4940
5124
  */
4941
5125
  get_premultiplied(): boolean;
4942
5126
 
@@ -4969,6 +5153,8 @@ export namespace Cogl {
4969
5153
  * @param sub_width Width in pixels of the subregion
4970
5154
  * @param sub_height Height in pixels of the subregion
4971
5155
  * @returns A newly created {@link Cogl.Texture} or `null` on failure
5156
+ * @since 1.2
5157
+ * @deprecated since 1.18: Use `cogl_sub_texture_new()`
4972
5158
  */
4973
5159
  new_from_sub_texture(sub_x: number, sub_y: number, sub_width: number, sub_height: number): Texture;
4974
5160
 
@@ -4993,6 +5179,7 @@ export namespace Cogl {
4993
5179
  * an image format as long as {@link Cogl.TextureComponents.RG} isn't used
4994
5180
  * as the texture's components.
4995
5181
  * @param components
5182
+ * @since 1.18
4996
5183
  */
4997
5184
  set_components(components: TextureComponents): void;
4998
5185
 
@@ -5070,6 +5257,7 @@ export namespace Cogl {
5070
5257
  *
5071
5258
  * By default the `premultipled` state is `TRUE`.
5072
5259
  * @param premultiplied Whether any internally stored red, green or blue components are pre-multiplied by an alpha component.
5260
+ * @since 1.18
5073
5261
  */
5074
5262
  set_premultiplied(premultiplied: boolean): void;
5075
5263
 
@@ -5107,6 +5295,7 @@ export namespace Cogl {
5107
5295
  * @param dst_height height of destination region to write. (Must be less than or equal to the bitmap height)
5108
5296
  * @param bitmap The source bitmap to read from
5109
5297
  * @returns `true` if the subregion upload was successful, and `false` otherwise
5298
+ * @since 1.8
5110
5299
  */
5111
5300
  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;
5112
5301
  }
@@ -5135,6 +5324,7 @@ export namespace Cogl {
5135
5324
  * parameter, when using {@link Cogl.Color}<!-- -->s as keys in a {@link GLib.HashTable}.
5136
5325
  * @param v1 a {@link Cogl.Color}
5137
5326
  * @param v2 a {@link Cogl.Color}
5327
+ * @since 1.0
5138
5328
  */
5139
5329
  static equal(v1: null, v2: null): boolean;
5140
5330
 
@@ -5144,6 +5334,7 @@ export namespace Cogl {
5144
5334
  * @param hue hue value, in the 0 .. 360 range
5145
5335
  * @param saturation saturation value, in the 0 .. 1 range
5146
5336
  * @param luminance luminance value, in the 0 .. 1 range
5337
+ * @since 1.16
5147
5338
  */
5148
5339
  static init_from_hsl(hue: number, saturation: number, luminance: number): Color;
5149
5340
 
@@ -5151,11 +5342,13 @@ export namespace Cogl {
5151
5342
  /**
5152
5343
  * Creates a copy of `color`
5153
5344
  * @returns a newly-allocated {@link Cogl.Color}. Use `cogl_color_free()` to free the allocate resources
5345
+ * @since 1.0
5154
5346
  */
5155
5347
  copy(): Color;
5156
5348
 
5157
5349
  /**
5158
5350
  * Frees the resources allocated by `cogl_color_new()` and `cogl_color_copy()`
5351
+ * @since 1.0
5159
5352
  */
5160
5353
  free(): void;
5161
5354
 
@@ -5163,6 +5356,7 @@ export namespace Cogl {
5163
5356
  * Retrieves the alpha channel of `color` as a fixed point
5164
5357
  * value between 0 and 1.0.
5165
5358
  * @returns the alpha channel of the passed color
5359
+ * @since 1.0
5166
5360
  */
5167
5361
  get_alpha(): number;
5168
5362
 
@@ -5170,6 +5364,7 @@ export namespace Cogl {
5170
5364
  * Retrieves the alpha channel of `color` as a byte value
5171
5365
  * between 0 and 255
5172
5366
  * @returns the alpha channel of the passed color
5367
+ * @since 1.0
5173
5368
  */
5174
5369
  get_alpha_byte(): number;
5175
5370
 
@@ -5177,6 +5372,7 @@ export namespace Cogl {
5177
5372
  * Retrieves the alpha channel of `color` as a floating point
5178
5373
  * value between 0.0 and 1.0
5179
5374
  * @returns the alpha channel of the passed color
5375
+ * @since 1.0
5180
5376
  */
5181
5377
  get_alpha_float(): number;
5182
5378
 
@@ -5184,6 +5380,7 @@ export namespace Cogl {
5184
5380
  * Retrieves the blue channel of `color` as a fixed point
5185
5381
  * value between 0 and 1.0.
5186
5382
  * @returns the blue channel of the passed color
5383
+ * @since 1.0
5187
5384
  */
5188
5385
  get_blue(): number;
5189
5386
 
@@ -5191,6 +5388,7 @@ export namespace Cogl {
5191
5388
  * Retrieves the blue channel of `color` as a byte value
5192
5389
  * between 0 and 255
5193
5390
  * @returns the blue channel of the passed color
5391
+ * @since 1.0
5194
5392
  */
5195
5393
  get_blue_byte(): number;
5196
5394
 
@@ -5198,6 +5396,7 @@ export namespace Cogl {
5198
5396
  * Retrieves the blue channel of `color` as a floating point
5199
5397
  * value between 0.0 and 1.0
5200
5398
  * @returns the blue channel of the passed color
5399
+ * @since 1.0
5201
5400
  */
5202
5401
  get_blue_float(): number;
5203
5402
 
@@ -5205,6 +5404,7 @@ export namespace Cogl {
5205
5404
  * Retrieves the green channel of `color` as a fixed point
5206
5405
  * value between 0 and 1.0.
5207
5406
  * @returns the green channel of the passed color
5407
+ * @since 1.0
5208
5408
  */
5209
5409
  get_green(): number;
5210
5410
 
@@ -5212,6 +5412,7 @@ export namespace Cogl {
5212
5412
  * Retrieves the green channel of `color` as a byte value
5213
5413
  * between 0 and 255
5214
5414
  * @returns the green channel of the passed color
5415
+ * @since 1.0
5215
5416
  */
5216
5417
  get_green_byte(): number;
5217
5418
 
@@ -5219,6 +5420,7 @@ export namespace Cogl {
5219
5420
  * Retrieves the green channel of `color` as a floating point
5220
5421
  * value between 0.0 and 1.0
5221
5422
  * @returns the green channel of the passed color
5423
+ * @since 1.0
5222
5424
  */
5223
5425
  get_green_float(): number;
5224
5426
 
@@ -5226,6 +5428,7 @@ export namespace Cogl {
5226
5428
  * Retrieves the red channel of `color` as a fixed point
5227
5429
  * value between 0 and 1.0.
5228
5430
  * @returns the red channel of the passed color
5431
+ * @since 1.0
5229
5432
  */
5230
5433
  get_red(): number;
5231
5434
 
@@ -5233,6 +5436,7 @@ export namespace Cogl {
5233
5436
  * Retrieves the red channel of `color` as a byte value
5234
5437
  * between 0 and 255
5235
5438
  * @returns the red channel of the passed color
5439
+ * @since 1.0
5236
5440
  */
5237
5441
  get_red_byte(): number;
5238
5442
 
@@ -5240,6 +5444,7 @@ export namespace Cogl {
5240
5444
  * Retrieves the red channel of `color` as a floating point
5241
5445
  * value between 0.0 and 1.0
5242
5446
  * @returns the red channel of the passed color
5447
+ * @since 1.0
5243
5448
  */
5244
5449
  get_red_float(): number;
5245
5450
 
@@ -5249,12 +5454,14 @@ export namespace Cogl {
5249
5454
  * @param green value of the green channel, between 0 and 1.0
5250
5455
  * @param blue value of the blue channel, between 0 and 1.0
5251
5456
  * @param alpha value of the alpha channel, between 0 and 1.0
5457
+ * @since 1.4
5252
5458
  */
5253
5459
  init_from_4f(red: number, green: number, blue: number, alpha: number): void;
5254
5460
 
5255
5461
  /**
5256
5462
  * Sets the values of the passed channels into a {@link Cogl.Color}
5257
5463
  * @param color_array a pointer to an array of 4 float color components
5464
+ * @since 1.4
5258
5465
  */
5259
5466
  init_from_4fv(color_array: number): void;
5260
5467
 
@@ -5264,6 +5471,7 @@ export namespace Cogl {
5264
5471
  * @param green value of the green channel, between 0 and 255
5265
5472
  * @param blue value of the blue channel, between 0 and 255
5266
5473
  * @param alpha value of the alpha channel, between 0 and 255
5474
+ * @since 1.4
5267
5475
  */
5268
5476
  init_from_4ub(red: number, green: number, blue: number, alpha: number): void;
5269
5477
 
@@ -5271,78 +5479,91 @@ export namespace Cogl {
5271
5479
  * Converts a non-premultiplied color to a pre-multiplied color. For
5272
5480
  * example, semi-transparent red is (1.0, 0, 0, 0.5) when non-premultiplied
5273
5481
  * and (0.5, 0, 0, 0.5) when premultiplied.
5482
+ * @since 1.0
5274
5483
  */
5275
5484
  premultiply(): void;
5276
5485
 
5277
5486
  /**
5278
5487
  * Sets the alpha channel of `color` to `alpha`.
5279
5488
  * @param alpha a float value between 0.0f and 1.0f
5489
+ * @since 1.4
5280
5490
  */
5281
5491
  set_alpha(alpha: number): void;
5282
5492
 
5283
5493
  /**
5284
5494
  * Sets the alpha channel of `color` to `alpha`.
5285
5495
  * @param alpha a byte value between 0 and 255
5496
+ * @since 1.4
5286
5497
  */
5287
5498
  set_alpha_byte(alpha: number): void;
5288
5499
 
5289
5500
  /**
5290
5501
  * Sets the alpha channel of `color` to `alpha`.
5291
5502
  * @param alpha a float value between 0.0f and 1.0f
5503
+ * @since 1.4
5292
5504
  */
5293
5505
  set_alpha_float(alpha: number): void;
5294
5506
 
5295
5507
  /**
5296
5508
  * Sets the blue channel of `color` to `blue`.
5297
5509
  * @param blue a float value between 0.0f and 1.0f
5510
+ * @since 1.4
5298
5511
  */
5299
5512
  set_blue(blue: number): void;
5300
5513
 
5301
5514
  /**
5302
5515
  * Sets the blue channel of `color` to `blue`.
5303
5516
  * @param blue a byte value between 0 and 255
5517
+ * @since 1.4
5304
5518
  */
5305
5519
  set_blue_byte(blue: number): void;
5306
5520
 
5307
5521
  /**
5308
5522
  * Sets the blue channel of `color` to `blue`.
5309
5523
  * @param blue a float value between 0.0f and 1.0f
5524
+ * @since 1.4
5310
5525
  */
5311
5526
  set_blue_float(blue: number): void;
5312
5527
 
5313
5528
  /**
5314
5529
  * Sets the green channel of `color` to `green`.
5315
5530
  * @param green a float value between 0.0f and 1.0f
5531
+ * @since 1.4
5316
5532
  */
5317
5533
  set_green(green: number): void;
5318
5534
 
5319
5535
  /**
5320
5536
  * Sets the green channel of `color` to `green`.
5321
5537
  * @param green a byte value between 0 and 255
5538
+ * @since 1.4
5322
5539
  */
5323
5540
  set_green_byte(green: number): void;
5324
5541
 
5325
5542
  /**
5326
5543
  * Sets the green channel of `color` to `green`.
5327
5544
  * @param green a float value between 0.0f and 1.0f
5545
+ * @since 1.4
5328
5546
  */
5329
5547
  set_green_float(green: number): void;
5330
5548
 
5331
5549
  /**
5332
5550
  * Sets the red channel of `color` to `red`.
5333
5551
  * @param red a float value between 0.0f and 1.0f
5552
+ * @since 1.4
5334
5553
  */
5335
5554
  set_red(red: number): void;
5336
5555
 
5337
5556
  /**
5338
5557
  * Sets the red channel of `color` to `red`.
5339
5558
  * @param red a byte value between 0 and 255
5559
+ * @since 1.4
5340
5560
  */
5341
5561
  set_red_byte(red: number): void;
5342
5562
 
5343
5563
  /**
5344
5564
  * Sets the red channel of `color` to `red`.
5345
5565
  * @param red a float value between 0.0f and 1.0f
5566
+ * @since 1.4
5346
5567
  */
5347
5568
  set_red_float(red: number): void;
5348
5569
 
@@ -5351,6 +5572,7 @@ export namespace Cogl {
5351
5572
  *
5352
5573
  * The `hue` value is in the 0 .. 360 range. The `luminance` and
5353
5574
  * `saturation` values are in the 0 .. 1 range.
5575
+ * @since 1.16
5354
5576
  */
5355
5577
  to_hsl(): [number, number, number];
5356
5578
 
@@ -5358,6 +5580,7 @@ export namespace Cogl {
5358
5580
  * Converts a pre-multiplied color to a non-premultiplied color. For
5359
5581
  * example, semi-transparent red is (0.5, 0, 0, 0.5) when premultiplied
5360
5582
  * and (1.0, 0, 0, 0.5) when non-premultiplied.
5583
+ * @since 1.4
5361
5584
  */
5362
5585
  unpremultiply(): void;
5363
5586
  }
@@ -5414,6 +5637,8 @@ export namespace Cogl {
5414
5637
  * The default is {@link Cogl.MaterialAlphaFunc.ALWAYS}
5415
5638
  * @param alpha_func A `CoglMaterialAlphaFunc` constant
5416
5639
  * @param alpha_reference A reference point that the chosen alpha function uses to compare incoming fragments to.
5640
+ * @since 1.0
5641
+ * @deprecated since 1.16: Use `cogl_pipeline_set_alpha_test_function()` instead
5417
5642
  */
5418
5643
  set_alpha_test_function(alpha_func: MaterialAlphaFunc, alpha_reference: number): void;
5419
5644
 
@@ -5488,6 +5713,8 @@ export namespace Cogl {
5488
5713
  * is in premultiplied form.
5489
5714
  * @param blend_string A <link linkend="cogl-Blend-Strings">Cogl blend string</link> describing the desired blend function.
5490
5715
  * @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).
5716
+ * @since 1.0
5717
+ * @deprecated since 1.16: Use `cogl_pipeline_set_blend()` instead
5491
5718
  */
5492
5719
  set_blend(blend_string: string): boolean;
5493
5720
 
@@ -5495,6 +5722,8 @@ export namespace Cogl {
5495
5722
  * When blending is setup to reference a CONSTANT blend factor then
5496
5723
  * blending will depend on the constant set with this function.
5497
5724
  * @param constant_color The constant color you want
5725
+ * @since 1.0
5726
+ * @deprecated since 1.16: Use `cogl_pipeline_set_blend_constant()` instead
5498
5727
  */
5499
5728
  set_blend_constant(constant_color: Color): void;
5500
5729
 
@@ -5508,6 +5737,8 @@ export namespace Cogl {
5508
5737
  *
5509
5738
  * The default value is (1.0, 1.0, 1.0, 1.0)
5510
5739
  * @param color The components of the color
5740
+ * @since 1.0
5741
+ * @deprecated since 1.16: Use `cogl_pipeline_set_color()` instead
5511
5742
  */
5512
5743
  set_color(color: Color): void;
5513
5744
 
@@ -5519,6 +5750,8 @@ export namespace Cogl {
5519
5750
  * @param green The green component
5520
5751
  * @param blue The blue component
5521
5752
  * @param alpha The alpha component
5753
+ * @since 1.0
5754
+ * @deprecated since 1.16: Use `cogl_pipeline_set_color4ub()` instead
5522
5755
  */
5523
5756
  set_color4ub(red: number, green: number, blue: number, alpha: number): void;
5524
5757
 
@@ -5535,6 +5768,8 @@ export namespace Cogl {
5535
5768
  * as purely GLSL based layers.</note>
5536
5769
  * @param layer_index the index of the layer
5537
5770
  * @param texture a {@link Cogl.Handle} for the layer object
5771
+ * @since 1.0
5772
+ * @deprecated since 1.16: Use `cogl_pipeline_set_layer()` instead
5538
5773
  */
5539
5774
  set_layer(layer_index: number, texture: Handle): void;
5540
5775
 
@@ -5617,6 +5852,8 @@ export namespace Cogl {
5617
5852
  * @param layer_index Specifies the layer you want define a combine function for
5618
5853
  * @param blend_string A <link linkend="cogl-Blend-Strings">Cogl blend string</link> describing the desired texture combine function.
5619
5854
  * @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
5855
+ * @since 1.0
5856
+ * @deprecated since 1.16: Use `cogl_pipeline_set_layer_combine()` instead
5620
5857
  */
5621
5858
  set_layer_combine(layer_index: number, blend_string: string): boolean;
5622
5859
 
@@ -5625,6 +5862,8 @@ export namespace Cogl {
5625
5862
  * description then you can use this function to define its value.
5626
5863
  * @param layer_index Specifies the layer you want to specify a constant used for texture combining
5627
5864
  * @param constant The constant color you want
5865
+ * @since 1.0
5866
+ * @deprecated since 1.16: Use `cogl_pipeline_set_layer_combine_constant()` instead
5628
5867
  */
5629
5868
  set_layer_combine_constant(layer_index: number, constant: Color): void;
5630
5869
 
@@ -5634,6 +5873,7 @@ export namespace Cogl {
5634
5873
  * @param layer_index the layer number to change.
5635
5874
  * @param min_filter the filter used when scaling a texture down.
5636
5875
  * @param mag_filter the filter used when magnifying a texture.
5876
+ * @deprecated since 1.16: Use `cogl_pipeline_set_layer_filters()` instead
5637
5877
  */
5638
5878
  set_layer_filters(layer_index: number, min_filter: MaterialFilter, mag_filter: MaterialFilter): void;
5639
5879
 
@@ -5642,6 +5882,7 @@ export namespace Cogl {
5642
5882
  * and rotate a single layer of a material used to fill your geometry.
5643
5883
  * @param layer_index the index for the layer inside `material`
5644
5884
  * @param matrix the transformation matrix for the layer
5885
+ * @deprecated since 1.16: Use `cogl_pipeline_set_layer_matrix()` instead
5645
5886
  */
5646
5887
  set_layer_matrix(layer_index: number, matrix: Matrix): void;
5647
5888
 
@@ -5655,6 +5896,8 @@ export namespace Cogl {
5655
5896
  * @param layer_index the layer number to change.
5656
5897
  * @param enable whether to enable point sprite coord generation.
5657
5898
  * @returns `true` if the function succeeds, `false` otherwise.
5899
+ * @since 1.4
5900
+ * @deprecated since 1.16: Use `cogl_pipeline_set_layer_point_sprite_coords_enabled()` instead
5658
5901
  */
5659
5902
  set_layer_point_sprite_coords_enabled(layer_index: number, enable: boolean): boolean;
5660
5903
 
@@ -5667,6 +5910,8 @@ export namespace Cogl {
5667
5910
  * screen space so it will be the same regardless of any
5668
5911
  * transformations. The default point size is 1.0.
5669
5912
  * @param point_size the new point size.
5913
+ * @since 1.4
5914
+ * @deprecated since 1.16: Use `cogl_pipeline_set_point_size()` instead
5670
5915
  */
5671
5916
  set_point_size(point_size: number): void;
5672
5917
 
@@ -5707,6 +5952,8 @@ export namespace Cogl {
5707
5952
  * meantime we hope this will handle most practical GLSL and ARBfp
5708
5953
  * requirements.
5709
5954
  * @param program A {@link Cogl.Handle} to a linked CoglProgram
5955
+ * @since 1.4
5956
+ * @deprecated since 1.16: Use `CoglSnippet` api instead instead
5710
5957
  */
5711
5958
  set_user_program(program: Handle): void;
5712
5959
  }
@@ -5793,6 +6040,7 @@ export namespace Cogl {
5793
6040
  * inverse matrix these are not considered in the comparison.
5794
6041
  * @param v1 A 4x4 transformation matrix
5795
6042
  * @param v2 A 4x4 transformation matrix
6043
+ * @since 1.4
5796
6044
  */
5797
6045
  static equal(v1: null, v2: null): boolean;
5798
6046
 
@@ -5801,12 +6049,14 @@ export namespace Cogl {
5801
6049
  * Allocates a new {@link Cogl.Matrix} on the heap and initializes it with
5802
6050
  * the same values as `matrix`.
5803
6051
  * @returns A newly allocated {@link Cogl.Matrix} which should be freed using `cogl_matrix_free()`
6052
+ * @since 1.6
5804
6053
  */
5805
6054
  copy(): Matrix;
5806
6055
 
5807
6056
  /**
5808
6057
  * Frees a {@link Cogl.Matrix} that was previously allocated via a call to
5809
6058
  * `cogl_matrix_copy()`.
6059
+ * @since 1.6
5810
6060
  */
5811
6061
  free(): void;
5812
6062
 
@@ -5837,6 +6087,7 @@ export namespace Cogl {
5837
6087
  * {@link Cogl.Matrix} so that subsequent requests for the inverse transform may
5838
6088
  * avoid costly inversion calculations.</note>
5839
6089
  * @returns `true` if the inverse was successfully calculated or `false` for degenerate transformations that can't be inverted (in this case the `inverse` matrix will simply be initialized with the identity matrix)
6090
+ * @since 1.2
5840
6091
  */
5841
6092
  get_inverse(): [boolean, Matrix];
5842
6093
 
@@ -5880,12 +6131,14 @@ export namespace Cogl {
5880
6131
  * @param tx x coordinate of the translation vector
5881
6132
  * @param ty y coordinate of the translation vector
5882
6133
  * @param tz z coordinate of the translation vector
6134
+ * @since 2.0
5883
6135
  */
5884
6136
  init_translation(tx: number, ty: number, tz: number): void;
5885
6137
 
5886
6138
  /**
5887
6139
  * Determines if the given matrix is an identity matrix.
5888
6140
  * @returns `true` if `matrix` is an identity matrix else `false`
6141
+ * @since 1.8
5889
6142
  */
5890
6143
  is_identity(): boolean;
5891
6144
 
@@ -5925,6 +6178,7 @@ export namespace Cogl {
5925
6178
  * @param world_up_x The X component of the world's up direction vector
5926
6179
  * @param world_up_y The Y component of the world's up direction vector
5927
6180
  * @param world_up_z The Z component of the world's up direction vector
6181
+ * @since 1.8
5928
6182
  */
5929
6183
  look_at(eye_position_x: number, eye_position_y: number, eye_position_z: number, object_x: number, object_y: number, object_z: number, world_up_x: number, world_up_y: number, world_up_z: number): void;
5930
6184
 
@@ -5947,6 +6201,7 @@ export namespace Cogl {
5947
6201
  * @param y_2 The y coordinate for the second horizontal clipping plane
5948
6202
  * @param near The <emphasis>distance</emphasis> to the near clipping plane (will be <emphasis>negative</emphasis> if the plane is behind the viewer)
5949
6203
  * @param far The <emphasis>distance</emphasis> to the far clipping plane (will be <emphasis>negative</emphasis> if the plane is behind the viewer)
6204
+ * @since 1.10
5950
6205
  */
5951
6206
  orthographic(x_1: number, y_1: number, x_2: number, y_2: number, near: number, far: number): void;
5952
6207
 
@@ -6022,6 +6277,7 @@ export namespace Cogl {
6022
6277
  * Multiplies `matrix` with a rotation transformation described by the
6023
6278
  * given {@link Graphene.Euler}.
6024
6279
  * @param euler A euler describing a rotation
6280
+ * @since 2.0
6025
6281
  */
6026
6282
  rotate_euler(euler: Graphene.Euler): void;
6027
6283
 
@@ -6103,6 +6359,7 @@ export namespace Cogl {
6103
6359
  /**
6104
6360
  * Replaces `matrix` with its transpose. Ie, every element (i,j) in the
6105
6361
  * new matrix is taken from element (j,i) in the old matrix.
6362
+ * @since 1.10
6106
6363
  */
6107
6364
  transpose(): void;
6108
6365
 
@@ -6126,6 +6383,7 @@ export namespace Cogl {
6126
6383
  * @param z_2d The distance to the 2D plane. (Should always be positive and be between `z_near` and the z_far value that was passed to `cogl_matrix_frustum()`)
6127
6384
  * @param width_2d The width of the 2D coordinate system
6128
6385
  * @param height_2d The height of the 2D coordinate system
6386
+ * @since 1.8
6129
6387
  */
6130
6388
  view_2d_in_frustum(left: number, right: number, bottom: number, top: number, z_near: number, z_2d: number, width_2d: number, height_2d: number): void;
6131
6389
 
@@ -6147,6 +6405,7 @@ export namespace Cogl {
6147
6405
  * @param z_2d The distance to the 2D plane. (Should always be positive and be between `z_near` and the z_far value that was passed to `cogl_matrix_frustum()`)
6148
6406
  * @param width_2d The width of the 2D coordinate system
6149
6407
  * @param height_2d The height of the 2D coordinate system
6408
+ * @since 1.8
6150
6409
  */
6151
6410
  view_2d_in_perspective(fov_y: number, aspect: number, z_near: number, z_2d: number, width_2d: number, height_2d: number): void;
6152
6411
  }
@@ -6377,6 +6636,7 @@ export namespace Cogl {
6377
6636
  * program will abort with an error message if there is an error during
6378
6637
  * automatic allocation.</note>
6379
6638
  * @returns `true` if there were no error allocating the framebuffer, else `false`.
6639
+ * @since 1.8
6380
6640
  */
6381
6641
  allocate(): boolean;
6382
6642
 
@@ -6385,6 +6645,7 @@ export namespace Cogl {
6385
6645
  * that includes the color buffer then the specified `color` is used.
6386
6646
  * @param buffers A mask of {@link Cogl.BufferBit}<!-- -->'s identifying which auxiliary buffers to clear
6387
6647
  * @param color The color to clear the color buffer too if specified in `buffers`.
6648
+ * @since 1.8
6388
6649
  */
6389
6650
  clear(buffers: bigint | number, color: Color): void;
6390
6651
 
@@ -6396,6 +6657,7 @@ export namespace Cogl {
6396
6657
  * @param green The green component of color to clear the color buffer too if specified in `buffers`.
6397
6658
  * @param blue The blue component of color to clear the color buffer too if specified in `buffers`.
6398
6659
  * @param alpha The alpha component of color to clear the color buffer too if specified in `buffers`.
6660
+ * @since 1.8
6399
6661
  */
6400
6662
  clear4f(buffers: bigint | number, red: number, green: number, blue: number, alpha: number): void;
6401
6663
 
@@ -6417,6 +6679,7 @@ export namespace Cogl {
6417
6679
  * framebuffer, and it's not meaningful to try and discard the color buffer of
6418
6680
  * a {@link Cogl.Offscreen} framebuffer since they are single-buffered.
6419
6681
  * @param buffers A {@link Cogl.BufferBit} mask of which ancillary buffers you want to discard.
6682
+ * @since 1.8
6420
6683
  */
6421
6684
  discard_buffers(buffers: bigint | number): void;
6422
6685
 
@@ -6466,6 +6729,7 @@ export namespace Cogl {
6466
6729
  * @param y_2 y coordinate lower right on screen.
6467
6730
  * @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.
6468
6731
  * @param tex_coords_len The length of the `tex_coords` array. (For one layer and one group of texture coordinates, this would be 4)
6732
+ * @since 1.10
6469
6733
  */
6470
6734
  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;
6471
6735
 
@@ -6486,6 +6750,7 @@ export namespace Cogl {
6486
6750
  * @param y_1 Y coordinate of the top-left corner
6487
6751
  * @param x_2 X coordinate of the bottom-right corner
6488
6752
  * @param y_2 Y coordinate of the bottom-right corner
6753
+ * @since 1.10
6489
6754
  */
6490
6755
  draw_rectangle(pipeline: Pipeline, x_1: number, y_1: number, x_2: number, y_2: number): void;
6491
6756
 
@@ -6512,6 +6777,7 @@ export namespace Cogl {
6512
6777
  * @param pipeline A {@link Cogl.Pipeline} state object
6513
6778
  * @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).
6514
6779
  * @param n_rectangles number of rectangles defined in `coordinates`.
6780
+ * @since 1.10
6515
6781
  */
6516
6782
  draw_rectangles(pipeline: Pipeline, coordinates: number[], n_rectangles: number): void;
6517
6783
 
@@ -6551,6 +6817,7 @@ export namespace Cogl {
6551
6817
  * @param t_1 T texture coordinate of the top-left coorner
6552
6818
  * @param s_2 S texture coordinate of the bottom-right coorner
6553
6819
  * @param t_2 T texture coordinate of the bottom-right coorner
6820
+ * @since 1.10
6554
6821
  */
6555
6822
  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;
6556
6823
 
@@ -6592,6 +6859,7 @@ export namespace Cogl {
6592
6859
  * @param pipeline A {@link Cogl.Pipeline} state object
6593
6860
  * @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()`.
6594
6861
  * @param n_rectangles number of rectangles to `coordinates` to draw
6862
+ * @since 1.10
6595
6863
  */
6596
6864
  draw_textured_rectangles(pipeline: Pipeline, coordinates: number[], n_rectangles: number): void;
6597
6865
 
@@ -6605,6 +6873,7 @@ export namespace Cogl {
6605
6873
  * One example might be for benchmarking purposes to be sure timing
6606
6874
  * measurements reflect the time that the GPU is busy for not just the time it
6607
6875
  * takes to queue rendering commands.
6876
+ * @since 1.10
6608
6877
  */
6609
6878
  finish(): void;
6610
6879
 
@@ -6626,18 +6895,21 @@ export namespace Cogl {
6626
6895
  * @param top Y position of the top clipping plane where it intersects the near clipping plane
6627
6896
  * @param z_near The distance to the near clipping plane (Must be positive)
6628
6897
  * @param z_far The distance to the far clipping plane (Must be positive)
6898
+ * @since 1.10
6629
6899
  */
6630
6900
  frustum(left: number, right: number, bottom: number, top: number, z_near: number, z_far: number): void;
6631
6901
 
6632
6902
  /**
6633
6903
  * Retrieves the number of alpha bits of `framebuffer`
6634
6904
  * @returns the number of bits
6905
+ * @since 1.8
6635
6906
  */
6636
6907
  get_alpha_bits(): number;
6637
6908
 
6638
6909
  /**
6639
6910
  * Retrieves the number of blue bits of `framebuffer`
6640
6911
  * @returns the number of bits
6912
+ * @since 1.8
6641
6913
  */
6642
6914
  get_blue_bits(): number;
6643
6915
 
@@ -6646,12 +6918,14 @@ export namespace Cogl {
6646
6918
  * instantiated within. This is the {@link Cogl.Context} that was passed to
6647
6919
  * `cogl_onscreen_new()` for example.
6648
6920
  * @returns The {@link Cogl.Context} that the given `framebuffer` was instantiated within.
6921
+ * @since 1.8
6649
6922
  */
6650
6923
  get_context(): Context;
6651
6924
 
6652
6925
  /**
6653
6926
  * Retrieves the number of depth bits of `framebuffer`
6654
6927
  * @returns the number of bits
6928
+ * @since 2.0
6655
6929
  */
6656
6930
  get_depth_bits(): number;
6657
6931
 
@@ -6659,6 +6933,7 @@ export namespace Cogl {
6659
6933
  * Queries whether depth buffer writing is enabled for `framebuffer`. This
6660
6934
  * can be controlled via `cogl_framebuffer_set_depth_write_enabled()`.
6661
6935
  * @returns `true` if depth writing is enabled or `false` if not.
6936
+ * @since 1.18
6662
6937
  */
6663
6938
  get_depth_write_enabled(): boolean;
6664
6939
 
@@ -6670,18 +6945,21 @@ export namespace Cogl {
6670
6945
  * display pipeline does not support dithering. This value only represents
6671
6946
  * the user's request for dithering.</note>
6672
6947
  * @returns `true` if dithering has been requested or `false` if not.
6948
+ * @since 1.8
6673
6949
  */
6674
6950
  get_dither_enabled(): boolean;
6675
6951
 
6676
6952
  /**
6677
6953
  * Retrieves the number of green bits of `framebuffer`
6678
6954
  * @returns the number of bits
6955
+ * @since 1.8
6679
6956
  */
6680
6957
  get_green_bits(): number;
6681
6958
 
6682
6959
  /**
6683
6960
  * Queries the current height of the given `framebuffer`.
6684
6961
  * @returns The height of `framebuffer`.
6962
+ * @since 1.8
6685
6963
  */
6686
6964
  get_height(): number;
6687
6965
 
@@ -6689,17 +6967,20 @@ export namespace Cogl {
6689
6967
 
6690
6968
  /**
6691
6969
  * Stores the current model-view matrix in `matrix`.
6970
+ * @since 1.10
6692
6971
  */
6693
6972
  get_modelview_matrix(): Matrix;
6694
6973
 
6695
6974
  /**
6696
6975
  * Stores the current projection matrix in `matrix`.
6976
+ * @since 1.10
6697
6977
  */
6698
6978
  get_projection_matrix(): Matrix;
6699
6979
 
6700
6980
  /**
6701
6981
  * Retrieves the number of red bits of `framebuffer`
6702
6982
  * @returns the number of bits
6983
+ * @since 1.8
6703
6984
  */
6704
6985
  get_red_bits(): number;
6705
6986
 
@@ -6717,6 +6998,7 @@ export namespace Cogl {
6717
6998
  * framebuffer has been allocated the value will reflect the actual
6718
6999
  * number of samples that will be made by the GPU.
6719
7000
  * @returns The number of point samples made per pixel when rasterizing geometry or 0 if single-sample rendering has been chosen.
7001
+ * @since 1.10
6720
7002
  */
6721
7003
  get_samples_per_pixel(): number;
6722
7004
 
@@ -6724,6 +7006,7 @@ export namespace Cogl {
6724
7006
  * Gets the current {@link Cogl.StereoMode}, which defines which stereo buffers
6725
7007
  * should be drawn to. See `cogl_framebuffer_set_stereo_mode()`.
6726
7008
  * @returns A {@link Cogl.StereoMode}
7009
+ * @since 1.20
6727
7010
  */
6728
7011
  get_stereo_mode(): StereoMode;
6729
7012
 
@@ -6732,6 +7015,7 @@ export namespace Cogl {
6732
7015
  * using `cogl_framebuffer_set_viewport()` or the default values which are 0, 0,
6733
7016
  * framebuffer_width and framebuffer_height. The values are written into the
6734
7017
  * given `viewport` array.
7018
+ * @since 1.8
6735
7019
  */
6736
7020
  get_viewport4fv(): number[];
6737
7021
 
@@ -6739,6 +7023,7 @@ export namespace Cogl {
6739
7023
  * Queries the height of the viewport as set using `cogl_framebuffer_set_viewport()`
6740
7024
  * or the default value which is the height of the framebuffer.
6741
7025
  * @returns The height of the viewport.
7026
+ * @since 1.8
6742
7027
  */
6743
7028
  get_viewport_height(): number;
6744
7029
 
@@ -6746,6 +7031,7 @@ export namespace Cogl {
6746
7031
  * Queries the width of the viewport as set using `cogl_framebuffer_set_viewport()`
6747
7032
  * or the default value which is the width of the framebuffer.
6748
7033
  * @returns The width of the viewport.
7034
+ * @since 1.8
6749
7035
  */
6750
7036
  get_viewport_width(): number;
6751
7037
 
@@ -6753,6 +7039,7 @@ export namespace Cogl {
6753
7039
  * Queries the x coordinate of the viewport origin as set using `cogl_framebuffer_set_viewport()`
6754
7040
  * or the default value which is 0.
6755
7041
  * @returns The x coordinate of the viewport origin.
7042
+ * @since 1.8
6756
7043
  */
6757
7044
  get_viewport_x(): number;
6758
7045
 
@@ -6760,17 +7047,20 @@ export namespace Cogl {
6760
7047
  * Queries the y coordinate of the viewport origin as set using `cogl_framebuffer_set_viewport()`
6761
7048
  * or the default value which is 0.
6762
7049
  * @returns The y coordinate of the viewport origin.
7050
+ * @since 1.8
6763
7051
  */
6764
7052
  get_viewport_y(): number;
6765
7053
 
6766
7054
  /**
6767
7055
  * Queries the current width of the given `framebuffer`.
6768
7056
  * @returns The width of `framebuffer`.
7057
+ * @since 1.8
6769
7058
  */
6770
7059
  get_width(): number;
6771
7060
 
6772
7061
  /**
6773
7062
  * Resets the current model-view matrix to the identity matrix.
7063
+ * @since 1.10
6774
7064
  */
6775
7065
  identity_matrix(): void;
6776
7066
 
@@ -6783,6 +7073,7 @@ export namespace Cogl {
6783
7073
  * @param y_2 The y coordinate for the second horizontal clipping plane
6784
7074
  * @param near The <emphasis>distance</emphasis> to the near clipping plane (will be <emphasis>negative</emphasis> if the plane is behind the viewer)
6785
7075
  * @param far The <emphasis>distance</emphasis> to the far clipping plane (will be <emphasis>negative</emphasis> if the plane is behind the viewer)
7076
+ * @since 1.10
6786
7077
  */
6787
7078
  orthographic(x_1: number, y_1: number, x_2: number, y_2: number, near: number, far: number): void;
6788
7079
 
@@ -6798,6 +7089,7 @@ export namespace Cogl {
6798
7089
  * @param aspect The (width over height) aspect ratio for display
6799
7090
  * @param z_near The distance to the near clipping plane (Must be positive, and must not be 0)
6800
7091
  * @param z_far The distance to the far clipping plane (Must be positive)
7092
+ * @since 1.10
6801
7093
  */
6802
7094
  perspective(fov_y: number, aspect: number, z_near: number, z_far: number): void;
6803
7095
 
@@ -6805,17 +7097,20 @@ export namespace Cogl {
6805
7097
  * Reverts the clipping region to the state before the last call to
6806
7098
  * `cogl_framebuffer_push_scissor_clip()`, `cogl_framebuffer_push_rectangle_clip()`
6807
7099
  * `cogl_framebuffer_push_path_clip()`, or `cogl_framebuffer_push_primitive_clip()`.
7100
+ * @since 1.10
6808
7101
  */
6809
7102
  pop_clip(): void;
6810
7103
 
6811
7104
  /**
6812
7105
  * Restores the model-view matrix on the top of the matrix stack.
7106
+ * @since 1.10
6813
7107
  */
6814
7108
  pop_matrix(): void;
6815
7109
 
6816
7110
  /**
6817
7111
  * Copies the current model-view matrix onto the matrix stack. The matrix
6818
7112
  * can later be restored with `cogl_framebuffer_pop_matrix()`.
7113
+ * @since 1.10
6819
7114
  */
6820
7115
  push_matrix(): void;
6821
7116
 
@@ -6832,6 +7127,7 @@ export namespace Cogl {
6832
7127
  * @param y_1 y coordinate for top left corner of the clip rectangle
6833
7128
  * @param x_2 x coordinate for bottom right corner of the clip rectangle
6834
7129
  * @param y_2 y coordinate for bottom right corner of the clip rectangle
7130
+ * @since 1.10
6835
7131
  */
6836
7132
  push_rectangle_clip(x_1: number, y_1: number, x_2: number, y_2: number): void;
6837
7133
 
@@ -6853,6 +7149,7 @@ export namespace Cogl {
6853
7149
  * @param y top edge of the clip rectangle in window coordinates
6854
7150
  * @param width width of the clip rectangle
6855
7151
  * @param height height of the clip rectangle
7152
+ * @since 1.10
6856
7153
  */
6857
7154
  push_scissor_clip(x: number, y: number, width: number, height: number): void;
6858
7155
 
@@ -6890,6 +7187,7 @@ export namespace Cogl {
6890
7187
  * @param format The pixel format to store the data in
6891
7188
  * @param pixels The address of the buffer to store the data in
6892
7189
  * @returns `true` if the read succeeded or `false` otherwise.
7190
+ * @since 1.10
6893
7191
  */
6894
7192
  read_pixels(x: number, y: number, width: number, height: number, format: PixelFormat, pixels: number): boolean;
6895
7193
 
@@ -6909,6 +7207,7 @@ export namespace Cogl {
6909
7207
  * @param source Identifies which auxiliary buffer you want to read (only COGL_READ_PIXELS_COLOR_BUFFER supported currently)
6910
7208
  * @param bitmap The bitmap to store the results in.
6911
7209
  * @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.
7210
+ * @since 1.10
6912
7211
  */
6913
7212
  read_pixels_into_bitmap(x: number, y: number, source: ReadPixelsFlags, bitmap: Bitmap): boolean;
6914
7213
 
@@ -6933,6 +7232,7 @@ export namespace Cogl {
6933
7232
  * If you are performing incremental updates to a framebuffer you
6934
7233
  * should consider using `cogl_framebuffer_resolve_samples_region()`
6935
7234
  * instead to avoid resolving redundant pixels.
7235
+ * @since 1.8
6936
7236
  */
6937
7237
  resolve_samples(): void;
6938
7238
 
@@ -6962,6 +7262,7 @@ export namespace Cogl {
6962
7262
  * @param y top-left y coordinate of region to resolve
6963
7263
  * @param width width of region to resolve
6964
7264
  * @param height height of region to resolve
7265
+ * @since 1.8
6965
7266
  */
6966
7267
  resolve_samples_region(x: number, y: number, width: number, height: number): void;
6967
7268
 
@@ -6975,6 +7276,7 @@ export namespace Cogl {
6975
7276
  * @param x X-component of vertex to rotate around.
6976
7277
  * @param y Y-component of vertex to rotate around.
6977
7278
  * @param z Z-component of vertex to rotate around.
7279
+ * @since 1.10
6978
7280
  */
6979
7281
  rotate(angle: number, x: number, y: number, z: number): void;
6980
7282
 
@@ -6982,6 +7284,7 @@ export namespace Cogl {
6982
7284
  * Multiplies the current model-view matrix by one that rotates
6983
7285
  * according to the rotation described by `euler`.
6984
7286
  * @param euler A {@link Graphene.Euler}
7287
+ * @since 2.0
6985
7288
  */
6986
7289
  rotate_euler(euler: Graphene.Euler): void;
6987
7290
 
@@ -6991,6 +7294,7 @@ export namespace Cogl {
6991
7294
  * @param x Amount to scale along the x-axis
6992
7295
  * @param y Amount to scale along the y-axis
6993
7296
  * @param z Amount to scale along the z-axis
7297
+ * @since 1.10
6994
7298
  */
6995
7299
  scale(x: number, y: number, z: number): void;
6996
7300
 
@@ -7002,6 +7306,7 @@ export namespace Cogl {
7002
7306
  *
7003
7307
  * Depth buffer writing is enabled by default.
7004
7308
  * @param depth_write_enabled `true` to enable depth writing or `false` to disable
7309
+ * @since 1.18
7005
7310
  */
7006
7311
  set_depth_write_enabled(depth_write_enabled: boolean): void;
7007
7312
 
@@ -7020,18 +7325,21 @@ export namespace Cogl {
7020
7325
  *
7021
7326
  * Dithering is enabled by default.
7022
7327
  * @param dither_enabled `true` to enable dithering or `false` to disable
7328
+ * @since 1.8
7023
7329
  */
7024
7330
  set_dither_enabled(dither_enabled: boolean): void;
7025
7331
 
7026
7332
  /**
7027
7333
  * Sets `matrix` as the new model-view matrix.
7028
7334
  * @param matrix the new model-view matrix
7335
+ * @since 1.10
7029
7336
  */
7030
7337
  set_modelview_matrix(matrix: Matrix): void;
7031
7338
 
7032
7339
  /**
7033
7340
  * Sets `matrix` as the new projection matrix.
7034
7341
  * @param matrix the new projection matrix
7342
+ * @since 1.10
7035
7343
  */
7036
7344
  set_projection_matrix(matrix: Matrix): void;
7037
7345
 
@@ -7069,6 +7377,7 @@ export namespace Cogl {
7069
7377
  * framebuffer has changed this can lead to redundant work being
7070
7378
  * done.</note>
7071
7379
  * @param samples_per_pixel The minimum number of samples per pixel
7380
+ * @since 1.8
7072
7381
  */
7073
7382
  set_samples_per_pixel(samples_per_pixel: number): void;
7074
7383
 
@@ -7081,6 +7390,7 @@ export namespace Cogl {
7081
7390
  * enabled. (See `cogl_onscreen_template_set_stereo_enabled()`,
7082
7391
  * `cogl_framebuffer_get_is_stereo()`.)
7083
7392
  * @param stereo_mode A {@link Cogl.StereoMode} specifying which stereo buffers should be drawn tow.
7393
+ * @since 1.20
7084
7394
  */
7085
7395
  set_stereo_mode(stereo_mode: StereoMode): void;
7086
7396
 
@@ -7104,12 +7414,14 @@ export namespace Cogl {
7104
7414
  * @param y The top-left y coordinate of the viewport origin (only integers supported currently)
7105
7415
  * @param width The width of the viewport (only integers supported currently)
7106
7416
  * @param height The height of the viewport (only integers supported currently)
7417
+ * @since 1.8
7107
7418
  */
7108
7419
  set_viewport(x: number, y: number, width: number, height: number): void;
7109
7420
 
7110
7421
  /**
7111
7422
  * Multiplies the current model-view matrix by the given matrix.
7112
7423
  * @param matrix the matrix to multiply with the current model-view
7424
+ * @since 1.10
7113
7425
  */
7114
7426
  transform(matrix: Matrix): void;
7115
7427
 
@@ -7119,6 +7431,7 @@ export namespace Cogl {
7119
7431
  * @param x Distance to translate along the x-axis
7120
7432
  * @param y Distance to translate along the y-axis
7121
7433
  * @param z Distance to translate along the z-axis
7434
+ * @since 1.10
7122
7435
  */
7123
7436
  translate(x: number, y: number, z: number): void;
7124
7437
  }
@@ -7192,6 +7505,7 @@ export namespace Cogl {
7192
7505
  * is {@link Cogl.TextureComponents.RGBA}. The other constructors which take
7193
7506
  * a %CoglBitmap or a data pointer default to the same components as
7194
7507
  * the pixel format of the data.
7508
+ * @since 1.18
7195
7509
  */
7196
7510
  get_components(): TextureComponents;
7197
7511
 
@@ -7238,6 +7552,7 @@ export namespace Cogl {
7238
7552
  *
7239
7553
  * By default the pre-multipled state is `TRUE`.
7240
7554
  * @returns `true` if red, green and blue components are internally stored pre-multiplied by the alpha value or `false` if not.
7555
+ * @since 1.18
7241
7556
  */
7242
7557
  get_premultiplied(): boolean;
7243
7558
 
@@ -7270,6 +7585,8 @@ export namespace Cogl {
7270
7585
  * @param sub_width Width in pixels of the subregion
7271
7586
  * @param sub_height Height in pixels of the subregion
7272
7587
  * @returns A newly created {@link Cogl.Texture} or `null` on failure
7588
+ * @since 1.2
7589
+ * @deprecated since 1.18: Use `cogl_sub_texture_new()`
7273
7590
  */
7274
7591
  new_from_sub_texture(sub_x: number, sub_y: number, sub_width: number, sub_height: number): Texture;
7275
7592
 
@@ -7294,6 +7611,7 @@ export namespace Cogl {
7294
7611
  * an image format as long as {@link Cogl.TextureComponents.RG} isn't used
7295
7612
  * as the texture's components.
7296
7613
  * @param components
7614
+ * @since 1.18
7297
7615
  */
7298
7616
  set_components(components: TextureComponents): void;
7299
7617
 
@@ -7371,6 +7689,7 @@ export namespace Cogl {
7371
7689
  *
7372
7690
  * By default the `premultipled` state is `TRUE`.
7373
7691
  * @param premultiplied Whether any internally stored red, green or blue components are pre-multiplied by an alpha component.
7692
+ * @since 1.18
7374
7693
  */
7375
7694
  set_premultiplied(premultiplied: boolean): void;
7376
7695
 
@@ -7408,6 +7727,7 @@ export namespace Cogl {
7408
7727
  * @param dst_height height of destination region to write. (Must be less than or equal to the bitmap height)
7409
7728
  * @param bitmap The source bitmap to read from
7410
7729
  * @returns `true` if the subregion upload was successful, and `false` otherwise
7730
+ * @since 1.8
7411
7731
  */
7412
7732
  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;
7413
7733
  }