Re:MiniFB: Small cross platform library to create framebuffe...
by ChickeNES on Saturday August 15, 2020 @10:54PM
(#24174523)
There's already a version of minifb for Rust though: https://github.com/emoon/rust_minifb
Re:MiniFB: Small cross platform library to create framebuffe...
by qchris on Sunday August 16, 2020 @12:05AM
(#24174973)
I've used this library on a few occasions on personal projects, and once the necessary system deps are installed (just a few apt-get commands that are well-documented), it's worked pretty flawlessly. Fairly low boilerplate, good examples--I haven't had any regrets on deciding to use it.
Re:MiniFB: Small cross platform library to create framebuffe...
by jms55 on Saturday August 15, 2020 @10:56PM
(#24174546)
Yes, that's also an option. I tried that initially for my game, but I ended up liking pixels better, in part due to the WASM and shader support.
Re:MiniFB: Small cross platform library to create framebuffe...
by fulafel on Sunday August 16, 2020 @04:37AM
(#24176227)
Do you mean it will run on browsers when/if they enable webgpu, or does wgpu-rs have other browser compatible backends?
Re:MiniFB: Small cross platform library to create framebuffe...
by icebraining on Sunday August 16, 2020 @07:42AM
(#24177004)
There's early support for an OpenGL backend, which can then run on WebGL.
It's built over wgpu-rs, so it runs on Vulkan/Metal/DirectX12/WEBGPU. You can compile to wasm, and then run your game in the browser, which is neat. And you can add custom shaders on top.
I used it for my game, and was very happy with it https://github.com/JMS55/sandbox