@dayme/bunraylib 0.1.0 → 1.0.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.
- package/README.md +60 -11
- package/package.json +11 -3
- package/src/Raylib.ts +58 -3678
- package/src/c/common.h +0 -2
- package/src/constants.ts +2 -2
- package/src/index.ts +6 -6
- package/src/main.c +0 -1
- package/src/main.d.ts +1 -1
- package/src/modules/audio/AudioModule.ts +197 -0
- package/src/modules/audio/symbols.ts +70 -0
- package/src/{c/audio.c → modules/audio/wrapper.c} +40 -80
- package/src/modules/camera/CameraModule.ts +239 -0
- package/src/modules/camera/symbols.ts +49 -0
- package/src/modules/camera/wrapper.c +141 -0
- package/src/modules/collision/CollisionModule.ts +363 -0
- package/src/modules/collision/symbols.ts +149 -0
- package/src/modules/collision/wrapper.c +176 -0
- package/src/modules/color/ColorModule.ts +65 -0
- package/src/modules/color/symbols.ts +26 -0
- package/src/modules/color/wrapper.c +16 -0
- package/src/modules/draw3d/Draw3DModule.ts +441 -0
- package/src/modules/draw3d/symbols.ts +199 -0
- package/src/modules/draw3d/wrapper.c +202 -0
- package/src/modules/font/FontModule.ts +250 -0
- package/src/modules/font/symbols.ts +46 -0
- package/src/{c/font.c → modules/font/wrapper.c} +50 -70
- package/src/modules/image/ImageModule.ts +451 -0
- package/src/{symbols/image.ts → modules/image/symbols.ts} +15 -12
- package/src/{c/image.c → modules/image/wrapper.c} +23 -45
- package/src/modules/input/InputModule.ts +160 -0
- package/src/modules/input/symbols.ts +54 -0
- package/src/modules/input/wrapper.c +31 -0
- package/src/modules/model/ModelModule.ts +228 -0
- package/src/{symbols/model.ts → modules/model/symbols.ts} +17 -14
- package/src/{c/model.c → modules/model/wrapper.c} +30 -30
- package/src/modules/shader/ShaderModule.ts +78 -0
- package/src/{symbols/shader.ts → modules/shader/symbols.ts} +3 -1
- package/src/{c/shader.c → modules/shader/wrapper.c} +11 -1
- package/src/modules/shapes/ShapesModule.ts +687 -0
- package/src/modules/shapes/symbols.ts +161 -0
- package/src/modules/shapes/wrapper.c +183 -0
- package/src/modules/texture/TextureModule.ts +190 -0
- package/src/{symbols/texture.ts → modules/texture/symbols.ts} +15 -9
- package/src/{c/texture.c → modules/texture/wrapper.c} +7 -22
- package/src/modules/window/WindowModule.ts +248 -0
- package/src/modules/window/symbols.ts +85 -0
- package/src/modules/window/wrapper.c +39 -0
- package/src/symbols.ts +87 -47
- package/src/utils.ts +63 -15
- package/src/c/camera.c +0 -161
- package/src/c/collision.c +0 -176
- package/src/c/color.c +0 -100
- package/src/c/draw3d.c +0 -222
- package/src/c/filesystem.c +0 -36
- package/src/c/input.c +0 -85
- package/src/c/shapes.c +0 -283
- package/src/c/window.c +0 -150
- package/src/symbols/audio.ts +0 -64
- package/src/symbols/camera.ts +0 -46
- package/src/symbols/collision.ts +0 -116
- package/src/symbols/color.ts +0 -22
- package/src/symbols/draw3d.ts +0 -137
- package/src/symbols/filesystem.ts +0 -30
- package/src/symbols/font.ts +0 -40
- package/src/symbols/input.ts +0 -51
- package/src/symbols/shapes.ts +0 -92
- package/src/symbols/window.ts +0 -83
package/src/c/input.c
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
#include "common.h"
|
|
2
|
-
|
|
3
|
-
bool IsKeyPressedW(int key) { return IsKeyPressed(key); }
|
|
4
|
-
bool IsKeyPressedRepeatW(int key) { return IsKeyPressedRepeat(key); }
|
|
5
|
-
bool IsKeyDownW(int key) { return IsKeyDown(key); }
|
|
6
|
-
bool IsKeyReleasedW(int key) { return IsKeyReleased(key); }
|
|
7
|
-
bool IsKeyUpW(int key) { return IsKeyUp(key); }
|
|
8
|
-
int GetKeyPressedW() { return GetKeyPressed(); }
|
|
9
|
-
int GetCharPressedW() { return GetCharPressed(); }
|
|
10
|
-
void SetExitKeyW(int key) { SetExitKey(key); }
|
|
11
|
-
|
|
12
|
-
bool IsGamepadAvailableW(int gamepad) { return IsGamepadAvailable(gamepad); }
|
|
13
|
-
const char* GetGamepadNameW(int gamepad) { return GetGamepadName(gamepad); }
|
|
14
|
-
bool IsGamepadButtonPressedW(int gamepad, int button) { return IsGamepadButtonPressed(gamepad, button); }
|
|
15
|
-
bool IsGamepadButtonDownW(int gamepad, int button) { return IsGamepadButtonDown(gamepad, button); }
|
|
16
|
-
bool IsGamepadButtonReleasedW(int gamepad, int button) { return IsGamepadButtonReleased(gamepad, button); }
|
|
17
|
-
bool IsGamepadButtonUpW(int gamepad, int button) { return IsGamepadButtonUp(gamepad, button); }
|
|
18
|
-
int GetGamepadButtonPressedW() { return GetGamepadButtonPressed(); }
|
|
19
|
-
int GetGamepadAxisCountW(int gamepad) { return GetGamepadAxisCount(gamepad); }
|
|
20
|
-
float GetGamepadAxisMovementW(int gamepad, int axis) { return GetGamepadAxisMovement(gamepad, axis); }
|
|
21
|
-
int SetGamepadMappingsW(const char* mappings) { return SetGamepadMappings(mappings); }
|
|
22
|
-
|
|
23
|
-
void SetGamepadVibrationW(int gamepad, float leftMotor, float rightMotor, float duration) {
|
|
24
|
-
SetGamepadVibration(gamepad, leftMotor, rightMotor, duration);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
bool IsMouseButtonPressedW(int button) { return IsMouseButtonPressed(button); }
|
|
28
|
-
bool IsMouseButtonDownW(int button) { return IsMouseButtonDown(button); }
|
|
29
|
-
bool IsMouseButtonReleasedW(int button) { return IsMouseButtonReleased(button); }
|
|
30
|
-
bool IsMouseButtonUpW(int button) { return IsMouseButtonUp(button); }
|
|
31
|
-
int GetMouseXW() { return GetMouseX(); }
|
|
32
|
-
int GetMouseYW() { return GetMouseY(); }
|
|
33
|
-
|
|
34
|
-
void GetMousePositionW(float* out) {
|
|
35
|
-
Vector2 v = GetMousePosition();
|
|
36
|
-
out[0] = v.x; out[1] = v.y;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
void GetMouseDeltaW(float* out) {
|
|
40
|
-
Vector2 v = GetMouseDelta();
|
|
41
|
-
out[0] = v.x; out[1] = v.y;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
void SetMousePositionW(int x, int y) { SetMousePosition(x, y); }
|
|
45
|
-
void SetMouseOffsetW(int x, int y) { SetMouseOffset(x, y); }
|
|
46
|
-
|
|
47
|
-
void SetMouseScaleW(float scaleX, float scaleY) { SetMouseScale(scaleX, scaleY); }
|
|
48
|
-
float GetMouseWheelMoveW() { return GetMouseWheelMove(); }
|
|
49
|
-
|
|
50
|
-
void GetMouseWheelMoveVW(float* out) {
|
|
51
|
-
Vector2 v = GetMouseWheelMoveV();
|
|
52
|
-
out[0] = v.x; out[1] = v.y;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
void SetMouseCursorW(int cursor) { SetMouseCursor(cursor); }
|
|
56
|
-
|
|
57
|
-
int GetTouchXW() { return GetTouchX(); }
|
|
58
|
-
int GetTouchYW() { return GetTouchY(); }
|
|
59
|
-
|
|
60
|
-
void GetTouchPositionW(float* out, int index) {
|
|
61
|
-
Vector2 v = GetTouchPosition(index);
|
|
62
|
-
out[0] = v.x; out[1] = v.y;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
int GetTouchPointIdW(int index) { return GetTouchPointId(index); }
|
|
66
|
-
int GetTouchPointCountW() { return GetTouchPointCount(); }
|
|
67
|
-
|
|
68
|
-
void SetGesturesEnabledW(unsigned int flags) { SetGesturesEnabled(flags); }
|
|
69
|
-
bool IsGestureDetectedW(unsigned int gesture) { return IsGestureDetected(gesture); }
|
|
70
|
-
int GetGestureDetectedW() { return GetGestureDetected(); }
|
|
71
|
-
float GetGestureHoldDurationW() { return GetGestureHoldDuration(); }
|
|
72
|
-
|
|
73
|
-
void GetGestureDragVectorW(float* out) {
|
|
74
|
-
Vector2 v = GetGestureDragVector();
|
|
75
|
-
out[0] = v.x; out[1] = v.y;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
float GetGestureDragAngleW() { return GetGestureDragAngle(); }
|
|
79
|
-
|
|
80
|
-
void GetGesturePinchVectorW(float* out) {
|
|
81
|
-
Vector2 v = GetGesturePinchVector();
|
|
82
|
-
out[0] = v.x; out[1] = v.y;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
float GetGesturePinchAngleW() { return GetGesturePinchAngle(); }
|
package/src/c/shapes.c
DELETED
|
@@ -1,283 +0,0 @@
|
|
|
1
|
-
#include <raylib.h>
|
|
2
|
-
#include <string.h>
|
|
3
|
-
|
|
4
|
-
void DrawRectangleW(int posX, int posY, int width, int height, Color color) {
|
|
5
|
-
DrawRectangle(posX, posY, width, height, color);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
void DrawTextW(const char* text, int posX, int posY, int fontSize, Color color) {
|
|
9
|
-
DrawText(text, posX, posY, fontSize, color);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
void DrawPixelW(int posX, int posY, Color color) {
|
|
13
|
-
DrawPixel(posX, posY, color);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
void DrawLineW(int startPosX, int startPosY, int endPosX, int endPosY, Color color) {
|
|
17
|
-
DrawLine(startPosX, startPosY, endPosX, endPosY, color);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
void DrawLineExW(int startX, int startY, int endX, int endY, int thick, Color color) {
|
|
21
|
-
DrawLineEx((Vector2){startX, startY}, (Vector2){endX, endY}, thick, color);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
void DrawLineStripW(const float* points, int pointCount, Color color) {
|
|
25
|
-
DrawLineStrip((const Vector2*)points, pointCount, color);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
void DrawLineBezierW(int startX, int startY, int endX, int endY, int thick, Color color) {
|
|
29
|
-
DrawLineBezier((Vector2){startX, startY}, (Vector2){endX, endY}, thick, color);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
void DrawCircleW(int centerX, int centerY, int radius, Color color) {
|
|
33
|
-
DrawCircle(centerX, centerY, radius, color);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
void DrawCircleSectorW(int centerX, int centerY, int radius, int startAngle, int endAngle, int segments, Color color) {
|
|
37
|
-
float sa, ea;
|
|
38
|
-
memcpy(&sa, &startAngle, sizeof(float));
|
|
39
|
-
memcpy(&ea, &endAngle, sizeof(float));
|
|
40
|
-
DrawCircleSector((Vector2){centerX, centerY}, radius, sa, ea, segments, color);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
void DrawCircleSectorLinesW(int centerX, int centerY, int radius, int startAngle, int endAngle, int segments, Color color) {
|
|
44
|
-
float sa, ea;
|
|
45
|
-
memcpy(&sa, &startAngle, sizeof(float));
|
|
46
|
-
memcpy(&ea, &endAngle, sizeof(float));
|
|
47
|
-
DrawCircleSectorLines((Vector2){centerX, centerY}, radius, sa, ea, segments, color);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
void DrawCircleGradientW(int centerX, int centerY, int radius, Color inner, Color outer) {
|
|
51
|
-
float r;
|
|
52
|
-
memcpy(&r, &radius, sizeof(float));
|
|
53
|
-
DrawCircleGradient((Vector2){centerX, centerY}, r, inner, outer);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
void DrawCircleLinesW(int centerX, int centerY, int radius, Color color) {
|
|
57
|
-
DrawCircleLines(centerX, centerY, radius, color);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
void DrawEllipseW(int centerX, int centerY, int radiusH, int radiusV, Color color) {
|
|
61
|
-
DrawEllipse(centerX, centerY, radiusH, radiusV, color);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
void DrawEllipseLinesW(int centerX, int centerY, int radiusH, int radiusV, Color color) {
|
|
65
|
-
DrawEllipseLines(centerX, centerY, radiusH, radiusV, color);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
void DrawRingW(int centerX, int centerY, int innerRadius, int outerRadius, int startAngle, int endAngle, int segments, Color color) {
|
|
69
|
-
float sa, ea;
|
|
70
|
-
memcpy(&sa, &startAngle, sizeof(float));
|
|
71
|
-
memcpy(&ea, &endAngle, sizeof(float));
|
|
72
|
-
DrawRing((Vector2){centerX, centerY}, innerRadius, outerRadius, sa, ea, segments, color);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
void DrawRingLinesW(int centerX, int centerY, int innerRadius, int outerRadius, int startAngle, int endAngle, int segments, Color color) {
|
|
76
|
-
float sa, ea;
|
|
77
|
-
memcpy(&sa, &startAngle, sizeof(float));
|
|
78
|
-
memcpy(&ea, &endAngle, sizeof(float));
|
|
79
|
-
DrawRingLines((Vector2){centerX, centerY}, innerRadius, outerRadius, sa, ea, segments, color);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
void DrawRectangleProW(int x, int y, int width, int height, int originX, int originY, int rotation, Color color) {
|
|
83
|
-
Rectangle rec = { x, y, width, height };
|
|
84
|
-
DrawRectanglePro(rec, (Vector2){originX, originY}, rotation, color);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
void DrawRectangleGradientVW(int posX, int posY, int width, int height, Color top, Color bottom) {
|
|
88
|
-
DrawRectangleGradientV(posX, posY, width, height, top, bottom);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
void DrawRectangleGradientHW(int posX, int posY, int width, int height, Color left, Color right) {
|
|
92
|
-
DrawRectangleGradientH(posX, posY, width, height, left, right);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
void DrawRectangleGradientExW(int x, int y, int width, int height, Color topLeft, Color bottomLeft, Color topRight, Color bottomRight) {
|
|
96
|
-
Rectangle rec = { x, y, width, height };
|
|
97
|
-
DrawRectangleGradientEx(rec, topLeft, bottomLeft, topRight, bottomRight);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
void DrawRectangleLinesW(int posX, int posY, int width, int height, Color color) {
|
|
101
|
-
DrawRectangleLines(posX, posY, width, height, color);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
void DrawRectangleLinesExW(int x, int y, int width, int height, int lineThick, Color color) {
|
|
105
|
-
Rectangle rec = { x, y, width, height };
|
|
106
|
-
DrawRectangleLinesEx(rec, lineThick, color);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
void DrawRectangleRoundedW(int x, int y, int width, int height, int roundness, int segments, Color color) {
|
|
110
|
-
Rectangle rec = { x, y, width, height };
|
|
111
|
-
DrawRectangleRounded(rec, roundness, segments, color);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
void DrawRectangleRoundedLinesW(int x, int y, int width, int height, int roundness, int segments, Color color) {
|
|
115
|
-
Rectangle rec = { x, y, width, height };
|
|
116
|
-
DrawRectangleRoundedLines(rec, roundness, segments, color);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
void DrawRectangleRoundedLinesExW(int x, int y, int width, int height, int roundness, int segments, int lineThick, Color color) {
|
|
120
|
-
Rectangle rec = { x, y, width, height };
|
|
121
|
-
DrawRectangleRoundedLinesEx(rec, roundness, segments, lineThick, color);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
void DrawTriangleW(int x1, int y1, int x2, int y2, int x3, int y3, Color color) {
|
|
125
|
-
DrawTriangle((Vector2){x1, y1}, (Vector2){x2, y2}, (Vector2){x3, y3}, color);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
void DrawTriangleLinesW(int x1, int y1, int x2, int y2, int x3, int y3, Color color) {
|
|
129
|
-
DrawTriangleLines((Vector2){x1, y1}, (Vector2){x2, y2}, (Vector2){x3, y3}, color);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
void DrawTriangleFanW(const float* points, int pointCount, Color color) {
|
|
133
|
-
DrawTriangleFan((const Vector2*)points, pointCount, color);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
void DrawTriangleStripW(const float* points, int pointCount, Color color) {
|
|
137
|
-
DrawTriangleStrip((const Vector2*)points, pointCount, color);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
void DrawPolyW(int centerX, int centerY, int sides, int radius, int rotation, Color color) {
|
|
141
|
-
DrawPoly((Vector2){centerX, centerY}, sides, radius, rotation, color);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
void DrawPolyLinesW(int centerX, int centerY, int sides, int radius, int rotation, Color color) {
|
|
145
|
-
DrawPolyLines((Vector2){centerX, centerY}, sides, radius, rotation, color);
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
void DrawPolyLinesExW(int centerX, int centerY, int sides, int radius, int rotation, int lineThick, Color color) {
|
|
149
|
-
DrawPolyLinesEx((Vector2){centerX, centerY}, sides, radius, rotation, lineThick, color);
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
void DrawSplineLinearW(const float* points, int pointCount, int thick, Color color) {
|
|
153
|
-
float t; memcpy(&t, &thick, sizeof(float));
|
|
154
|
-
DrawSplineLinear((const Vector2*)points, pointCount, t, color);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
void DrawSplineBasisW(const float* points, int pointCount, int thick, Color color) {
|
|
158
|
-
float t; memcpy(&t, &thick, sizeof(float));
|
|
159
|
-
DrawSplineBasis((const Vector2*)points, pointCount, t, color);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
void DrawSplineCatmullRomW(const float* points, int pointCount, int thick, Color color) {
|
|
163
|
-
float t; memcpy(&t, &thick, sizeof(float));
|
|
164
|
-
DrawSplineCatmullRom((const Vector2*)points, pointCount, t, color);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
void DrawSplineBezierQuadraticW(const float* points, int pointCount, int thick, Color color) {
|
|
168
|
-
float t; memcpy(&t, &thick, sizeof(float));
|
|
169
|
-
DrawSplineBezierQuadratic((const Vector2*)points, pointCount, t, color);
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
void DrawSplineBezierCubicW(const float* points, int pointCount, int thick, Color color) {
|
|
173
|
-
float t; memcpy(&t, &thick, sizeof(float));
|
|
174
|
-
DrawSplineBezierCubic((const Vector2*)points, pointCount, t, color);
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
void DrawSplineSegmentLinearW(int p1x, int p1y, int p2x, int p2y, int thick, Color color) {
|
|
178
|
-
float t; memcpy(&t, &thick, sizeof(float));
|
|
179
|
-
DrawSplineSegmentLinear((Vector2){p1x, p1y}, (Vector2){p2x, p2y}, t, color);
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
void DrawSplineSegmentBasisW(int p1x, int p1y, int p2x, int p2y, int p3x, int p3y, int p4x, int p4y, int thick, Color color) {
|
|
183
|
-
float t; memcpy(&t, &thick, sizeof(float));
|
|
184
|
-
DrawSplineSegmentBasis((Vector2){p1x, p1y}, (Vector2){p2x, p2y}, (Vector2){p3x, p3y}, (Vector2){p4x, p4y}, t, color);
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
void DrawSplineSegmentCatmullRomW(int p1x, int p1y, int p2x, int p2y, int p3x, int p3y, int p4x, int p4y, int thick, Color color) {
|
|
188
|
-
float t; memcpy(&t, &thick, sizeof(float));
|
|
189
|
-
DrawSplineSegmentCatmullRom((Vector2){p1x, p1y}, (Vector2){p2x, p2y}, (Vector2){p3x, p3y}, (Vector2){p4x, p4y}, t, color);
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
void DrawSplineSegmentBezierQuadraticW(int p1x, int p1y, int c2x, int c2y, int p3x, int p3y, int thick, Color color) {
|
|
193
|
-
float t; memcpy(&t, &thick, sizeof(float));
|
|
194
|
-
DrawSplineSegmentBezierQuadratic((Vector2){p1x, p1y}, (Vector2){c2x, c2y}, (Vector2){p3x, p3y}, t, color);
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
void DrawSplineSegmentBezierCubicW(int p1x, int p1y, int c2x, int c2y, int c3x, int c3y, int p4x, int p4y, int thick, Color color) {
|
|
198
|
-
float t; memcpy(&t, &thick, sizeof(float));
|
|
199
|
-
DrawSplineSegmentBezierCubic((Vector2){p1x, p1y}, (Vector2){c2x, c2y}, (Vector2){c3x, c3y}, (Vector2){p4x, p4y}, t, color);
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
void GetSplinePointLinearW(float* out, int startPx, int startPy, int endPx, int endPy, int t) {
|
|
203
|
-
float tf; memcpy(&tf, &t, sizeof(float));
|
|
204
|
-
Vector2 result = GetSplinePointLinear((Vector2){startPx, startPy}, (Vector2){endPx, endPy}, tf);
|
|
205
|
-
out[0] = result.x;
|
|
206
|
-
out[1] = result.y;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
void GetSplinePointBasisW(float* out, int p1x, int p1y, int p2x, int p2y, int p3x, int p3y, int p4x, int p4y, int t) {
|
|
210
|
-
float tf; memcpy(&tf, &t, sizeof(float));
|
|
211
|
-
Vector2 result = GetSplinePointBasis((Vector2){p1x, p1y}, (Vector2){p2x, p2y}, (Vector2){p3x, p3y}, (Vector2){p4x, p4y}, tf);
|
|
212
|
-
out[0] = result.x;
|
|
213
|
-
out[1] = result.y;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
void GetSplinePointCatmullRomW(float* out, int p1x, int p1y, int p2x, int p2y, int p3x, int p3y, int p4x, int p4y, int t) {
|
|
217
|
-
float tf; memcpy(&tf, &t, sizeof(float));
|
|
218
|
-
Vector2 result = GetSplinePointCatmullRom((Vector2){p1x, p1y}, (Vector2){p2x, p2y}, (Vector2){p3x, p3y}, (Vector2){p4x, p4y}, tf);
|
|
219
|
-
out[0] = result.x;
|
|
220
|
-
out[1] = result.y;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
void GetSplinePointBezierQuadW(float* out, int p1x, int p1y, int c2x, int c2y, int p3x, int p3y, int t) {
|
|
224
|
-
float tf; memcpy(&tf, &t, sizeof(float));
|
|
225
|
-
Vector2 result = GetSplinePointBezierQuad((Vector2){p1x, p1y}, (Vector2){c2x, c2y}, (Vector2){p3x, p3y}, tf);
|
|
226
|
-
out[0] = result.x;
|
|
227
|
-
out[1] = result.y;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
void GetSplinePointBezierCubicW(float* out, int p1x, int p1y, int c2x, int c2y, int c3x, int c3y, int p4x, int p4y, int t) {
|
|
231
|
-
float tf; memcpy(&tf, &t, sizeof(float));
|
|
232
|
-
Vector2 result = GetSplinePointBezierCubic((Vector2){p1x, p1y}, (Vector2){c2x, c2y}, (Vector2){c3x, c3y}, (Vector2){p4x, p4y}, tf);
|
|
233
|
-
out[0] = result.x;
|
|
234
|
-
out[1] = result.y;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
void DrawPixelVW(int x, int y, Color color) {
|
|
238
|
-
DrawPixelV((Vector2){x, y}, color);
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
void DrawLineVW(int startX, int startY, int endX, int endY, Color color) {
|
|
242
|
-
DrawLineV((Vector2){startX, startY}, (Vector2){endX, endY}, color);
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
void DrawCircleVW(int x, int y, int radius, Color color) {
|
|
246
|
-
float r;
|
|
247
|
-
memcpy(&r, &radius, sizeof(float));
|
|
248
|
-
DrawCircleV((Vector2){x, y}, r, color);
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
void DrawCircleLinesVW(int x, int y, int radius, Color color) {
|
|
252
|
-
float r;
|
|
253
|
-
memcpy(&r, &radius, sizeof(float));
|
|
254
|
-
DrawCircleLinesV((Vector2){x, y}, r, color);
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
void DrawRectangleVW(int posX, int posY, int sizeX, int sizeY, Color color) {
|
|
258
|
-
DrawRectangleV((Vector2){posX, posY}, (Vector2){sizeX, sizeY}, color);
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
void DrawRectangleRecW(int x, int y, int w, int h, Color color) {
|
|
262
|
-
DrawRectangleRec((Rectangle){x, y, w, h}, color);
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
void SetShapesTextureW(unsigned int texId, int texW, int texH, int recX, int recY, int recW, int recH) {
|
|
266
|
-
Texture2D tex = { texId, texW, texH, 1, 7 };
|
|
267
|
-
Rectangle rec = { recX, recY, recW, recH };
|
|
268
|
-
SetShapesTexture(tex, rec);
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
void GetShapesTextureW(unsigned int* outId, int* outW, int* outH) {
|
|
272
|
-
Texture2D tex = GetShapesTexture();
|
|
273
|
-
*outId = tex.id;
|
|
274
|
-
*outW = tex.width;
|
|
275
|
-
*outH = tex.height;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
void GetShapesTextureRectangleW(float* out) {
|
|
279
|
-
Rectangle rec = GetShapesTextureRectangle();
|
|
280
|
-
out[0] = rec.x; out[1] = rec.y; out[2] = rec.width; out[3] = rec.height;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
void DrawFPSW(int posX, int posY) { DrawFPS(posX, posY); }
|
package/src/c/window.c
DELETED
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
#include "common.h"
|
|
2
|
-
|
|
3
|
-
void InitWindowW(int width, int height, const char* title) {
|
|
4
|
-
InitWindow(width, height, title);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
void CloseWindowW() {
|
|
8
|
-
CloseWindow();
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
bool WindowShouldCloseW() {
|
|
12
|
-
return WindowShouldClose();
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
void BeginDrawingW() {
|
|
16
|
-
BeginDrawing();
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
void EndDrawingW() {
|
|
20
|
-
EndDrawing();
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
void ClearBackgroundW(Color color) {
|
|
24
|
-
ClearBackground(color);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
void SetTargetFPSW(int fps) {
|
|
28
|
-
SetTargetFPS(fps);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
float GetFrameTimeW() {
|
|
32
|
-
return GetFrameTime();
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
bool IsWindowReadyW() { return IsWindowReady(); }
|
|
36
|
-
bool IsWindowFullscreenW() { return IsWindowFullscreen(); }
|
|
37
|
-
bool IsWindowHiddenW() { return IsWindowHidden(); }
|
|
38
|
-
bool IsWindowMinimizedW() { return IsWindowMinimized(); }
|
|
39
|
-
bool IsWindowMaximizedW() { return IsWindowMaximized(); }
|
|
40
|
-
bool IsWindowFocusedW() { return IsWindowFocused(); }
|
|
41
|
-
bool IsWindowResizedW() { return IsWindowResized(); }
|
|
42
|
-
bool IsWindowStateW(unsigned int flag) { return IsWindowState(flag); }
|
|
43
|
-
|
|
44
|
-
void SetWindowStateW(unsigned int flags) { SetWindowState(flags); }
|
|
45
|
-
void ClearWindowStateW(unsigned int flags) { ClearWindowState(flags); }
|
|
46
|
-
void ToggleFullscreenW() { ToggleFullscreen(); }
|
|
47
|
-
void ToggleBorderlessWindowedW() { ToggleBorderlessWindowed(); }
|
|
48
|
-
void MaximizeWindowW() { MaximizeWindow(); }
|
|
49
|
-
void MinimizeWindowW() { MinimizeWindow(); }
|
|
50
|
-
void RestoreWindowW() { RestoreWindow(); }
|
|
51
|
-
|
|
52
|
-
void SetWindowTitleW(const char* title) { SetWindowTitle(title); }
|
|
53
|
-
void SetWindowPositionW(int x, int y) { SetWindowPosition(x, y); }
|
|
54
|
-
void SetWindowMonitorW(int monitor) { SetWindowMonitor(monitor); }
|
|
55
|
-
void SetWindowMinSizeW(int w, int h) { SetWindowMinSize(w, h); }
|
|
56
|
-
void SetWindowMaxSizeW(int w, int h) { SetWindowMaxSize(w, h); }
|
|
57
|
-
void SetWindowSizeW(int w, int h) { SetWindowSize(w, h); }
|
|
58
|
-
void SetWindowOpacityW(float opacity) { SetWindowOpacity(opacity); }
|
|
59
|
-
void SetWindowFocusedW() { SetWindowFocused(); }
|
|
60
|
-
|
|
61
|
-
int GetScreenWidthW() { return GetScreenWidth(); }
|
|
62
|
-
int GetScreenHeightW() { return GetScreenHeight(); }
|
|
63
|
-
int GetRenderWidthW() { return GetRenderWidth(); }
|
|
64
|
-
int GetRenderHeightW() { return GetRenderHeight(); }
|
|
65
|
-
|
|
66
|
-
int GetMonitorCountW() { return GetMonitorCount(); }
|
|
67
|
-
int GetCurrentMonitorW() { return GetCurrentMonitor(); }
|
|
68
|
-
|
|
69
|
-
void GetMonitorPositionW(float* out, int monitor) {
|
|
70
|
-
Vector2 v = GetMonitorPosition(monitor);
|
|
71
|
-
out[0] = v.x; out[1] = v.y;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
int GetMonitorWidthW(int monitor) { return GetMonitorWidth(monitor); }
|
|
75
|
-
int GetMonitorHeightW(int monitor) { return GetMonitorHeight(monitor); }
|
|
76
|
-
int GetMonitorPhysicalWidthW(int monitor) { return GetMonitorPhysicalWidth(monitor); }
|
|
77
|
-
int GetMonitorPhysicalHeightW(int monitor) { return GetMonitorPhysicalHeight(monitor); }
|
|
78
|
-
int GetMonitorRefreshRateW(int monitor) { return GetMonitorRefreshRate(monitor); }
|
|
79
|
-
|
|
80
|
-
void GetWindowPositionW(float* out) {
|
|
81
|
-
Vector2 v = GetWindowPosition();
|
|
82
|
-
out[0] = v.x; out[1] = v.y;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
void GetWindowScaleDPIW(float* out) {
|
|
86
|
-
Vector2 v = GetWindowScaleDPI();
|
|
87
|
-
out[0] = v.x; out[1] = v.y;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
const char* GetMonitorNameW(int monitor) { return GetMonitorName(monitor); }
|
|
91
|
-
|
|
92
|
-
void SetClipboardTextW(const char* text) { SetClipboardText(text); }
|
|
93
|
-
const char* GetClipboardTextW() { return GetClipboardText(); }
|
|
94
|
-
|
|
95
|
-
void EnableEventWaitingW() { EnableEventWaiting(); }
|
|
96
|
-
void DisableEventWaitingW() { DisableEventWaiting(); }
|
|
97
|
-
|
|
98
|
-
void ShowCursorW() { ShowCursor(); }
|
|
99
|
-
void HideCursorW() { HideCursor(); }
|
|
100
|
-
bool IsCursorHiddenW() { return IsCursorHidden(); }
|
|
101
|
-
void EnableCursorW() { EnableCursor(); }
|
|
102
|
-
void DisableCursorW() { DisableCursor(); }
|
|
103
|
-
bool IsCursorOnScreenW() { return IsCursorOnScreen(); }
|
|
104
|
-
|
|
105
|
-
void BeginTextureModeW(unsigned int id, int w, int h) {
|
|
106
|
-
RenderTexture2D rt = { id, {id, w, h, 1, 7}, {0, 0, 0, 0, 0} };
|
|
107
|
-
BeginTextureMode(rt);
|
|
108
|
-
}
|
|
109
|
-
void EndTextureModeW() { EndTextureMode(); }
|
|
110
|
-
|
|
111
|
-
void BeginBlendModeW(int mode) { BeginBlendMode(mode); }
|
|
112
|
-
void EndBlendModeW() { EndBlendMode(); }
|
|
113
|
-
|
|
114
|
-
void BeginScissorModeW(int x, int y, int w, int h) { BeginScissorMode(x, y, w, h); }
|
|
115
|
-
void EndScissorModeW() { EndScissorMode(); }
|
|
116
|
-
|
|
117
|
-
double GetTimeW() { return GetTime(); }
|
|
118
|
-
int GetFPSW() { return GetFPS(); }
|
|
119
|
-
void SwapScreenBufferW() { SwapScreenBuffer(); }
|
|
120
|
-
void PollInputEventsW() { PollInputEvents(); }
|
|
121
|
-
void WaitTimeW(double seconds) { WaitTime(seconds); }
|
|
122
|
-
|
|
123
|
-
void SetRandomSeedW(unsigned int seed) { SetRandomSeed(seed); }
|
|
124
|
-
int GetRandomValueW(int min, int max) { return GetRandomValue(min, max); }
|
|
125
|
-
|
|
126
|
-
void TakeScreenshotW(const char* fileName) { TakeScreenshot(fileName); }
|
|
127
|
-
void SetConfigFlagsW(unsigned int flags) { SetConfigFlags(flags); }
|
|
128
|
-
void OpenURLW(const char* url) { OpenURL(url); }
|
|
129
|
-
|
|
130
|
-
void TraceLogW(int logLevel, const char* text) {
|
|
131
|
-
TraceLog(logLevel, "%s", text);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
void SetTraceLogLevelW(int logLevel) {
|
|
135
|
-
SetTraceLogLevel(logLevel);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
void SetWindowIconW(int imageId) {
|
|
139
|
-
if (imageId < 0 || imageId >= MAX_IMAGES || !imageUsed[imageId]) return;
|
|
140
|
-
SetWindowIcon(imageRegistry[imageId]);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
int GetClipboardImageW() {
|
|
144
|
-
int slot = imageAlloc();
|
|
145
|
-
if (slot < 0) return -1;
|
|
146
|
-
imageRegistry[slot] = GetClipboardImage();
|
|
147
|
-
return slot;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
void SetWindowIconsW(Image* images, int count) { SetWindowIcons(images, count); }
|
package/src/symbols/audio.ts
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { FFIType } from "bun:ffi";
|
|
2
|
-
const { i32, cstring, bool, ptr } = FFIType;
|
|
3
|
-
|
|
4
|
-
export const audioSymbols = {
|
|
5
|
-
InitAudioDeviceW: { args: [], returns: FFIType.void },
|
|
6
|
-
CloseAudioDeviceW: { args: [], returns: FFIType.void },
|
|
7
|
-
IsAudioDeviceReadyW: { args: [], returns: bool },
|
|
8
|
-
SetMasterVolumeW: { args: [i32], returns: FFIType.void },
|
|
9
|
-
GetMasterVolumeW: { args: [], returns: i32 },
|
|
10
|
-
LoadWaveW: { args: [cstring], returns: i32 },
|
|
11
|
-
LoadWaveFromMemoryW: { args: [cstring, ptr, i32], returns: i32 },
|
|
12
|
-
IsWaveValidW: { args: [i32], returns: bool },
|
|
13
|
-
UnloadWaveW: { args: [i32], returns: FFIType.void },
|
|
14
|
-
ExportWaveW: { args: [i32, cstring], returns: bool },
|
|
15
|
-
ExportWaveAsCodeW: { args: [i32, cstring], returns: bool },
|
|
16
|
-
WaveCopyW: { args: [i32], returns: i32 },
|
|
17
|
-
WaveCropW: { args: [i32, i32, i32], returns: FFIType.void },
|
|
18
|
-
WaveFormatW: { args: [i32, i32, i32, i32], returns: FFIType.void },
|
|
19
|
-
LoadSoundW: { args: [cstring], returns: i32 },
|
|
20
|
-
LoadSoundFromWaveW: { args: [i32], returns: i32 },
|
|
21
|
-
LoadSoundAliasW: { args: [i32], returns: i32 },
|
|
22
|
-
IsSoundValidW: { args: [i32], returns: bool },
|
|
23
|
-
UnloadSoundW: { args: [i32], returns: FFIType.void },
|
|
24
|
-
UnloadSoundAliasW: { args: [i32], returns: FFIType.void },
|
|
25
|
-
PlaySoundW: { args: [i32], returns: FFIType.void },
|
|
26
|
-
StopSoundW: { args: [i32], returns: FFIType.void },
|
|
27
|
-
PauseSoundW: { args: [i32], returns: FFIType.void },
|
|
28
|
-
ResumeSoundW: { args: [i32], returns: FFIType.void },
|
|
29
|
-
IsSoundPlayingW: { args: [i32], returns: bool },
|
|
30
|
-
SetSoundVolumeW: { args: [i32, i32], returns: FFIType.void },
|
|
31
|
-
SetSoundPitchW: { args: [i32, i32], returns: FFIType.void },
|
|
32
|
-
SetSoundPanW: { args: [i32, i32], returns: FFIType.void },
|
|
33
|
-
LoadMusicStreamW: { args: [cstring], returns: i32 },
|
|
34
|
-
LoadMusicStreamFromMemoryW: { args: [cstring, ptr, i32], returns: i32 },
|
|
35
|
-
IsMusicValidW: { args: [i32], returns: bool },
|
|
36
|
-
UnloadMusicStreamW: { args: [i32], returns: FFIType.void },
|
|
37
|
-
PlayMusicStreamW: { args: [i32], returns: FFIType.void },
|
|
38
|
-
IsMusicStreamPlayingW: { args: [i32], returns: bool },
|
|
39
|
-
UpdateMusicStreamW: { args: [i32], returns: FFIType.void },
|
|
40
|
-
StopMusicStreamW: { args: [i32], returns: FFIType.void },
|
|
41
|
-
PauseMusicStreamW: { args: [i32], returns: FFIType.void },
|
|
42
|
-
ResumeMusicStreamW: { args: [i32], returns: FFIType.void },
|
|
43
|
-
SeekMusicStreamW: { args: [i32, i32], returns: FFIType.void },
|
|
44
|
-
SetMusicVolumeW: { args: [i32, i32], returns: FFIType.void },
|
|
45
|
-
SetMusicPitchW: { args: [i32, i32], returns: FFIType.void },
|
|
46
|
-
SetMusicPanW: { args: [i32, i32], returns: FFIType.void },
|
|
47
|
-
GetMusicTimeLengthW: { args: [i32], returns: i32 },
|
|
48
|
-
GetMusicTimePlayedW: { args: [i32], returns: i32 },
|
|
49
|
-
LoadAudioStreamW: { args: [i32, i32, i32], returns: i32 },
|
|
50
|
-
IsAudioStreamValidW: { args: [i32], returns: bool },
|
|
51
|
-
UnloadAudioStreamW: { args: [i32], returns: FFIType.void },
|
|
52
|
-
IsAudioStreamProcessedW: { args: [i32], returns: bool },
|
|
53
|
-
PlayAudioStreamW: { args: [i32], returns: FFIType.void },
|
|
54
|
-
PauseAudioStreamW: { args: [i32], returns: FFIType.void },
|
|
55
|
-
ResumeAudioStreamW: { args: [i32], returns: FFIType.void },
|
|
56
|
-
IsAudioStreamPlayingW: { args: [i32], returns: bool },
|
|
57
|
-
StopAudioStreamW: { args: [i32], returns: FFIType.void },
|
|
58
|
-
SetAudioStreamVolumeW: { args: [i32, i32], returns: FFIType.void },
|
|
59
|
-
SetAudioStreamPitchW: { args: [i32, i32], returns: FFIType.void },
|
|
60
|
-
SetAudioStreamPanW: { args: [i32, i32], returns: FFIType.void },
|
|
61
|
-
SetAudioStreamBufferSizeDefaultW: { args: [i32], returns: FFIType.void },
|
|
62
|
-
LoadWaveSamplesW: { args: [i32], returns: ptr },
|
|
63
|
-
UnloadWaveSamplesW: { args: [ptr], returns: FFIType.void },
|
|
64
|
-
} as const;
|
package/src/symbols/camera.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { FFIType } from "bun:ffi";
|
|
2
|
-
const { i32, ptr, f32 } = FFIType;
|
|
3
|
-
|
|
4
|
-
export const cameraSymbols = {
|
|
5
|
-
BeginMode2DW: { args: [i32, i32, i32, i32, i32, i32], returns: FFIType.void },
|
|
6
|
-
EndMode2DW: { args: [], returns: FFIType.void },
|
|
7
|
-
BeginMode3DW: {
|
|
8
|
-
args: [i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32],
|
|
9
|
-
returns: FFIType.void,
|
|
10
|
-
},
|
|
11
|
-
EndMode3DW: { args: [], returns: FFIType.void },
|
|
12
|
-
UpdateCameraW: { args: [ptr, ptr, ptr, ptr, ptr, i32], returns: FFIType.void },
|
|
13
|
-
UpdateCameraProW: {
|
|
14
|
-
args: [ptr, ptr, ptr, ptr, ptr, f32, f32, f32, f32, f32, f32, f32],
|
|
15
|
-
returns: FFIType.void,
|
|
16
|
-
},
|
|
17
|
-
GetScreenToWorldRayW: {
|
|
18
|
-
args: [ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32],
|
|
19
|
-
returns: FFIType.void,
|
|
20
|
-
},
|
|
21
|
-
GetWorldToScreenW: {
|
|
22
|
-
args: [ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32],
|
|
23
|
-
returns: FFIType.void,
|
|
24
|
-
},
|
|
25
|
-
GetWorldToScreen2DW: {
|
|
26
|
-
args: [ptr, i32, i32, i32, i32, i32, i32, i32, i32],
|
|
27
|
-
returns: FFIType.void,
|
|
28
|
-
},
|
|
29
|
-
GetScreenToWorld2DW: {
|
|
30
|
-
args: [ptr, i32, i32, i32, i32, i32, i32, i32, i32],
|
|
31
|
-
returns: FFIType.void,
|
|
32
|
-
},
|
|
33
|
-
GetScreenToWorldRayExW: {
|
|
34
|
-
args: [ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32],
|
|
35
|
-
returns: FFIType.void,
|
|
36
|
-
},
|
|
37
|
-
GetWorldToScreenExW: {
|
|
38
|
-
args: [ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32],
|
|
39
|
-
returns: FFIType.void,
|
|
40
|
-
},
|
|
41
|
-
GetCameraMatrixW: {
|
|
42
|
-
args: [ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32],
|
|
43
|
-
returns: FFIType.void,
|
|
44
|
-
},
|
|
45
|
-
GetCameraMatrix2DW: { args: [ptr, i32, i32, i32, i32, i32, i32], returns: FFIType.void },
|
|
46
|
-
} as const;
|