rust-sdl2
SDL2 bindings for Rust (by Rust-SDL2)
piston
A modular game engine written in Rust (by PistonDevelopers)
Our great sponsors
rust-sdl2 | piston | |
---|---|---|
33 | 11 | |
2,600 | 4,542 | |
1.2% | 0.3% | |
7.1 | 4.9 | |
7 days ago | 5 months ago | |
Rust | Rust | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
rust-sdl2
Posts with mentions or reviews of rust-sdl2.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-03-04.
- Nannou – An open-source creative-coding framework for Rust
-
Game Lib similar to LWJGL Pygame SDL
Those are 3 very different libraries. Are you looking for something in the middle, or do you want all of the features you described? For what it's worth, there's SLD2 bindings for Rust https://github.com/Rust-SDL2/rust-sdl2
-
How would I connect renderer coded in C and logic coded in rust?
There's already a Rust binding for SDL2. See https://crates.io/crates/sdl2
-
SDL2 vs Winit/Pixels/CPAL/etc. Is going "native" really worth it?
nope. https://github.com/Rust-SDL2/rust-sdl2/issues/884 emscripten target won't work yet either.
-
I would like a simple, but abstracted, drawing library
it seems like what you are looking for is sdl2 bindings
-
C++ coders, why do you stick with the language?
*and* SDL2-sys *and* Rust-SDL2
In Rust you would need libSDL2 *and* SDL2-sys *and* SDL2 *and* libc *and*
-
Hey Rustaceans! Got a question? Ask here! (21/2022)!
The SDL2 crate had something like this, and it's an option I'm considering. However, if possible, I'd prefer a different, simpler GUI library, so if there's an input-specialized crate out there that does this, I'd love it.
-
What do you think about using SDL2 bindings for a simple game?
After a quick look onto the SDL2 bindings, https://github.com/Rust-SDL2/rust-sdl2, it seems quite mature and the sample code I'm reading uses very basic Rust features, nothing too fancy. Which makes sense, since we're binding to a C library.
-
[Media] Fish Fight v0.3: Level Editor; Overhauled modding system; How-to (gameplay, modding, gamedev) Book
This fails to build on Fedora due to an issue with sdl2-sys.
piston
Posts with mentions or reviews of piston.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-05-15.
-
placing pixels
Well, it depends on how you use it; writing to an image buffer isn't much less efficient than writing to any normal buffer (in fact, although displaying your scene to a window efficiently is important, your main bottleneck will be the actual ray tracing loop). You may want to read this article for a practical example of using an ImageBuffer to create and draw a texture with Piston. Other window backends you could use, apart from pixels which was already mentioned in another comment, include minifb and Mini GL, though I haven't personally used them.
-
Ways to create game engines
And I really like generic systems where you can create a lot of different things. A program that interested me is Piston (https://github.com/PistonDevelopers/piston), I haven't researched it in depth yet, but the concept of being able to create several things with a base and different modules is very interesting
-
Really frustrated. [Warning: Bit of a negative rant]
Try Piston
-
I made my first GL project using Piston.
Check out their homepage, https://piston.rs, they even show off some great examples of how their library has been used!
So, I made a Tweet not too long before I made this post, and it was me showing off my first OpenGL project using Piston. And I attached two images.
-
Emulating the Sega Genesis - Part II
Before I could implement the display output, I needed something to draw the images onto. There are quite a few Rust crates available to create a GUI window and update it with 2D graphics. Most of these are of course intended for making games, and also include ways of getting key presses as input, which I'll also need. I looked at Piston, which I've used before on other projects, Macroquad, which also supports web assembly as well as desktop targets, Pixels, which is intended specifically for 2D games, and Minifb, which is also specifically for 2D applications, but is much simpler. I also tried out libretro, which is specifically made for video game emulation, but I found it much more restrictive than the others because of it's narrow focus.
-
I'm a "low-level, terminal-only" kind of developer, completely new to the game dev world. I've been working on a 2D platformer in my spare time. Can you explain to me what I'm missing out on, by not using a "game engine"?
Depends on my goals. I year ago I wanted to learn rust, so I used piston for a gamejam. (There are several rust engines including bevy, piston, amethyst. They probably vary in quality, features, and constraints.) Piston was a terrible experience because compilation is slow even on that tiny project.
- Question about rust graphics libraries
-
Rust Game Engines (again)
Piston
What are some alternatives?
When comparing rust-sdl2 and piston you can also consider the following projects:
bevy - A refreshingly simple data-driven game engine built in Rust
winit - Window handling library in pure Rust
Amethyst - Data-oriented and data-driven game engine written in Rust
rust-sdl - SDL bindings for Rust
ggez - Rust library to create a Good Game Easily
raylib - A simple and easy-to-use library to enjoy videogames programming
Crayon - A small, portable and extensible game framework written in Rust.
Pinky - An NES emulator written in Rust
Vcpkg - C++ Library Manager for Windows, Linux, and MacOS
challonge-rs - Challonge REST API Client