@dayme/bunraylib 0.1.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 +31 -0
- package/package.json +39 -0
- package/src/Raylib.ts +3679 -0
- package/src/c/audio.c +344 -0
- package/src/c/camera.c +161 -0
- package/src/c/collision.c +176 -0
- package/src/c/color.c +100 -0
- package/src/c/common.h +67 -0
- package/src/c/draw3d.c +222 -0
- package/src/c/filesystem.c +36 -0
- package/src/c/font.c +163 -0
- package/src/c/image.c +458 -0
- package/src/c/input.c +85 -0
- package/src/c/model.c +243 -0
- package/src/c/registries.c +111 -0
- package/src/c/shader.c +56 -0
- package/src/c/shapes.c +283 -0
- package/src/c/texture.c +139 -0
- package/src/c/window.c +150 -0
- package/src/constants.ts +396 -0
- package/src/index.ts +29 -0
- package/src/main.c +15 -0
- package/src/main.d.ts +4 -0
- package/src/symbols/audio.ts +64 -0
- package/src/symbols/camera.ts +46 -0
- package/src/symbols/collision.ts +116 -0
- package/src/symbols/color.ts +22 -0
- package/src/symbols/draw3d.ts +137 -0
- package/src/symbols/filesystem.ts +30 -0
- package/src/symbols/font.ts +40 -0
- package/src/symbols/image.ts +90 -0
- package/src/symbols/input.ts +51 -0
- package/src/symbols/model.ts +38 -0
- package/src/symbols/shader.ts +15 -0
- package/src/symbols/shapes.ts +92 -0
- package/src/symbols/texture.ts +56 -0
- package/src/symbols/window.ts +83 -0
- package/src/symbols.ts +131 -0
- package/src/types.ts +73 -0
- package/src/utils.ts +25 -0
package/README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# rraylib
|
|
2
|
+
|
|
3
|
+
TypeScript FFI bindings for [raylib](https://www.raylib.com/) — built entirely with [Bun](https://bun.sh/).
|
|
4
|
+
|
|
5
|
+
No external dependencies required. Everything is compiled through `bun ffi cc`, so all you need is Bun.
|
|
6
|
+
|
|
7
|
+
## Progress
|
|
8
|
+
|
|
9
|
+
**500 / 548 functions implemented (91.2%)**
|
|
10
|
+
|
|
11
|
+
| Module | Progress |
|
|
12
|
+
| --- | --- |
|
|
13
|
+
| Window and Graphics Device | 114/147 (78%) |
|
|
14
|
+
| Input Handling | 37/37 (100%) |
|
|
15
|
+
| Gestures and Touch | 8/8 (100%) |
|
|
16
|
+
| Camera System | 2/2 (100%) |
|
|
17
|
+
| Shapes Drawing | 66/69 (96%) |
|
|
18
|
+
| Texture Loading and Drawing | 112/112 (100%) |
|
|
19
|
+
| Font Loading and Text Drawing | 34/37 (92%) |
|
|
20
|
+
| Basic 3D Shapes | 21/21 (100%) |
|
|
21
|
+
| Model Loading and Drawing | 48/50 (96%) |
|
|
22
|
+
| Audio Loading and Playing | 58/65 (89%) |
|
|
23
|
+
|
|
24
|
+
Full breakdown: [PROGRESS.md](./PROGRESS.md)
|
|
25
|
+
|
|
26
|
+
## Usage
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
bun install
|
|
30
|
+
bun run index.ts
|
|
31
|
+
```
|
package/package.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dayme/bunraylib",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "TypeScript FFI bindings for raylib — zero dependencies, powered by Bun",
|
|
5
|
+
"keywords": ["raylib", "ffi", "bun", "gamedev", "graphics"],
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"module": "src/index.ts",
|
|
9
|
+
"main": "src/index.ts",
|
|
10
|
+
"types": "src/index.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./src/index.ts",
|
|
14
|
+
"import": "./src/index.ts"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"src/"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"lint": "oxlint src/*",
|
|
22
|
+
"fmt": "oxfmt src/*",
|
|
23
|
+
"progress": "bun run scripts/progress.ts",
|
|
24
|
+
"prepublishOnly": "bun run lint"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@types/bun": "^1.3.11"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"oxfmt": "^0.43.0",
|
|
31
|
+
"oxlint": "^1.58.0"
|
|
32
|
+
},
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"typescript": "^5"
|
|
35
|
+
},
|
|
36
|
+
"engines": {
|
|
37
|
+
"bun": ">=1.3"
|
|
38
|
+
}
|
|
39
|
+
}
|