node-raylib
node-raylib copied to clipboard
Node.js bindings for Raylib
Missing support for parameters for... - float[4] - char[32] - Matrix[2] - float[2] - float[16]
i have an issue with the compiled program that refuses to run due to my unsupported OpenGL of my laptop ``` INFO: Initializing raylib 4.0 WARNING: GLFW: Error: 65542 Description:...
https://github.com/RobLoach/node-raylib/blob/4887ee14392e01883921909de0382fb53f6c1f1f/tools/generate_templates/ArgumentTypeConversion.js#L21 I guess it should look more like: ```typescript arg = arg.replace('const ', '') if (arg.includes('*')) { if (arg.trim().startsWith("float")) { return 'number[] | Float32Array' } return 'number' } ``` and...
https://github.com/RobLoach/node-raylib/blob/4887ee14392e01883921909de0382fb53f6c1f1f/tools/generate_templates/node-raylib-bindings.js#L222 I might be missing something, but I didn't see any place that does free it, is not that a memory leak?
- Add more screenshots at the top - Add a minimal example right at the top too - Rename the Install section to "Getting Started" or something
npm ERR! code 1 npm ERR! path C:\cygwin64\myexample\node_modules\raylib npm ERR! command failed npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c cmake-js compile npm ERR! [ npm ERR! 'C:\\Program Files\\nodejs\\node.exe', npm ERR!...
I am on Pop!OS 20.04 (very similar to same version of Ubuntu) I have latest raylib installed, and `pkg-config --cflags --libs raylib` returns this (correctly): ``` -I/usr/local/include -L/usr/local/lib -lraylib ```...
Tree-shaking doesn't really work well with commonjs modules, in general, and es6 users (node natively supports esm, now, with `type: module` in package.json) would be able to use our lib...
async addon
I was thinking about how prevalent async control-structure is in nodejs (callbacks, promises, async/await), and how weird it gets if you use the standard `SetTargetFPS`/`WindowShouldClose` loop, and how I could...