Skip to content

Commit 5260e2e

Browse files
committed
rerun build with newer wasm-bindgen
1 parent db2e2dc commit 5260e2e

File tree

5 files changed

+468
-440
lines changed

5 files changed

+468
-440
lines changed

swrender/build/swrender.d.ts

+44-42
Original file line numberDiff line numberDiff line change
@@ -1,91 +1,93 @@
11
/* tslint:disable */
22
/* eslint-disable */
3+
/**
4+
*/
35
export class SoftwareRenderer {
46
free(): void;
57
/**
6-
* @returns {SoftwareRenderer}
8+
* @returns {SoftwareRenderer}
79
*/
810
static new(): SoftwareRenderer;
911
/**
10-
* Update the given CPU-side drawable\'s attributes given its ID.
11-
* Will create a new drawable on the CPU side if one doesn\'t yet exist.
12-
* @param {number} id
13-
* @param {Float32Array | undefined} matrix
14-
* @param {number | undefined} silhouette
15-
* @param {any | undefined} effects
16-
* @param {number} effect_bits
17-
* @param {boolean} use_nearest_neighbor
12+
* Update the given CPU-side drawable's attributes given its ID.
13+
* Will create a new drawable on the CPU side if one doesn't yet exist.
14+
* @param {number} id
15+
* @param {Float32Array | undefined} matrix
16+
* @param {number | undefined} silhouette
17+
* @param {any | undefined} effects
18+
* @param {number} effect_bits
19+
* @param {boolean} use_nearest_neighbor
1820
*/
1921
set_drawable(id: number, matrix: Float32Array | undefined, silhouette: number | undefined, effects: any | undefined, effect_bits: number, use_nearest_neighbor: boolean): void;
2022
/**
2123
* Delete the CPU-side drawable with the given ID.
22-
* @param {number} id
24+
* @param {number} id
2325
*/
2426
remove_drawable(id: number): void;
2527
/**
26-
* Update the given silhouette\'s attributes and data given the corresponding skin\'s ID.
28+
* Update the given silhouette's attributes and data given the corresponding skin's ID.
2729
* Will create a new silhouette if one does not exist.
28-
* @param {number} id
29-
* @param {number} w
30-
* @param {number} h
31-
* @param {Uint8Array} data
32-
* @param {number} nominal_width
33-
* @param {number} nominal_height
34-
* @param {boolean} premultiplied
30+
* @param {number} id
31+
* @param {number} w
32+
* @param {number} h
33+
* @param {Uint8Array} data
34+
* @param {number} nominal_width
35+
* @param {number} nominal_height
36+
* @param {boolean} premultiplied
3537
*/
3638
set_silhouette(id: number, w: number, h: number, data: Uint8Array, nominal_width: number, nominal_height: number, premultiplied: boolean): void;
3739
/**
3840
* Delete the silhouette that corresponds to the skin with the given ID.
39-
* @param {number} id
41+
* @param {number} id
4042
*/
4143
remove_silhouette(id: number): void;
4244
/**
4345
* Check if a particular Drawable is touching any in a set of Drawables.
4446
* Will only check inside the given bounds.
45-
* @param {number} drawable
46-
* @param {Int32Array} candidates
47-
* @param {any} rect
48-
* @returns {boolean}
47+
* @param {number} drawable
48+
* @param {Int32Array} candidates
49+
* @param {any} rect
50+
* @returns {boolean}
4951
*/
5052
is_touching_drawables(drawable: number, candidates: Int32Array, rect: any): boolean;
5153
/**
5254
* Check if a certain color in a drawable is touching a particular color.
53-
* @param {number} drawable
54-
* @param {Int32Array} candidates
55-
* @param {any} rect
56-
* @param {Uint8Array} color
57-
* @param {Uint8Array} mask
58-
* @returns {boolean}
55+
* @param {number} drawable
56+
* @param {Int32Array} candidates
57+
* @param {any} rect
58+
* @param {Uint8Array} color
59+
* @param {Uint8Array} mask
60+
* @returns {boolean}
5961
*/
6062
color_is_touching_color(drawable: number, candidates: Int32Array, rect: any, color: Uint8Array, mask: Uint8Array): boolean;
6163
/**
6264
* Check if a certain drawable is touching a particular color.
63-
* @param {number} drawable
64-
* @param {Int32Array} candidates
65-
* @param {any} rect
66-
* @param {Uint8Array} color
67-
* @returns {boolean}
65+
* @param {number} drawable
66+
* @param {Int32Array} candidates
67+
* @param {any} rect
68+
* @param {Uint8Array} color
69+
* @returns {boolean}
6870
*/
6971
is_touching_color(drawable: number, candidates: Int32Array, rect: any, color: Uint8Array): boolean;
7072
/**
7173
* Check if the drawable with the given ID is touching any pixel in the given rectangle.
72-
* @param {number} drawable
73-
* @param {any} rect
74-
* @returns {boolean}
74+
* @param {number} drawable
75+
* @param {any} rect
76+
* @returns {boolean}
7577
*/
7678
drawable_touching_rect(drawable: number, rect: any): boolean;
7779
/**
7880
* Return the ID of the drawable that covers the most pixels in the given rectangle.
7981
* Drawables earlier in the list will occlude those lower in the list.
80-
* @param {Int32Array} candidates
81-
* @param {any} rect
82-
* @returns {number}
82+
* @param {Int32Array} candidates
83+
* @param {any} rect
84+
* @returns {number}
8385
*/
8486
pick(candidates: Int32Array, rect: any): number;
8587
/**
8688
* Calculate the convex hull points for the drawable with the given ID.
87-
* @param {number} drawable
88-
* @returns {Float32Array}
89+
* @param {number} drawable
90+
* @returns {Float32Array}
8991
*/
9092
drawable_convex_hull_points(drawable: number): Float32Array;
9193
}

0 commit comments

Comments
 (0)