node-sdl
node-sdl copied to clipboard
🎮 SDL bindings for Node.js
I tried running the base examples with [bun](https://bun.sh/) and got segmentation errors when calling `window.render`. I suspect it's related to differences in how the buffer is handled. If there is...
```js import sdl from '@kmamal/sdl' import createContext from '@kmamal/gl' ``` ``` node:internal/modules/cjs/loader:1473 return process.dlopen(module, path.toNamespacedPath(filename)); ^ Error: The specified module could not be found. \\?\C:\Users\Sev\Desktop\Projects\nodesdl-game\node_modules\@kmamal\gl\build\Release\webgl.node at Module._extensions..node (node:internal/modules/cjs/loader:1473:18) at Module.load...
(Opening this issue here because I'm using it with `@kmamal/sdl`, and with the `gl` repo being a fork, it has issues disabled, probably unintentionally?) My process just segfaulted after a...
In WebGL, it's typical to use `requestAnimationFrame` to wait for the next draw call time (synchronized with the screen refresh rate usually), so that you don't need to busy-loop and...
Hello, As a non-C developer, I'd like to get into making VR games and such. Not sure how difficult it'd be to add this, but possibly in a separate package,...
Note: this was meant for the fork of headless-gl that's compatible with this library, but issues aren't open there. So, whenever I run `npm install @kmamal/sdl @kmamal/gl` on a node...
Is there a way to boost performance for the canvas version? Or should I choose WebGL instead?
In [index.d.ts](https://github.com/kmamal/node-sdl/blob/eaa72910e3f58fb14f944f1e815bcbc0a1d1fbf7/src/types/index.d.ts#L64), line 65: ``` export interface MouseWheel extends MouseEvent { readonly type: 'flipped' readonly dx: number readonly dy: number readonly flipped: boolean } ```
This corrects the type definition for MouseWheel, and addresses 2 critical security fixes #59
This is a nice to have feature, since the browser does something similar. So, when I write the image buffer, using the function `window.render` and the size of the window...