rust-sdl2
learn-wgpu
Our great sponsors
rust-sdl2 | learn-wgpu | |
---|---|---|
33 | 75 | |
2,614 | 1,382 | |
1.8% | - | |
6.9 | 8.0 | |
2 days ago | 21 days ago | |
Rust | Rust | |
MIT License | MIT License |
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
- Nannou – An open-source creative-coding framework for Rust
- SDL2 issues
-
SDL&C Or Wgpu&Rust, for Learning Graphics Programming ?
I don't think that SDL and WGPU are really comparable. You'd be better off comparing SDL to something like Notan or even the SDL bindings for Rust. That said, SDL will have vastly more learning resources than Wgpu or Notan or any Rust alternative. If you know and like rust you can probably use the resources with the Rust SDL bindings.
-
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
-
cannot borrow `renderer` as mutable more than once at a time
Dude. It's literally at most 50 lines of code, the entire project. What kind of documentation do you expect me to write? The library I'm using is this one. I don't know why you'd need to know anything about it since it's purely something that can appear literally anywhere, it's part of the language.
-
C++ coders, why do you stick with the language?
*and* SDL2-sys *and* Rust-SDL2
-
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.
learn-wgpu
-
Practicing Rust, Learning Bevy, Creating a WASM Snake Game for the Browser
Nice.
Speaking of Snake game, if you want to go even deeper, you can try to use the wgpu crate to combine Rust and WebGPU to write everything from scratch. Here is the tutorial:
https://sotrh.github.io/learn-wgpu/#what-is-wgpu
I once wrote a code editor with wgpu, from font rendering to char/line state management (very rough) for music live coding:
https://github.com/glicol/glicol-wgpu
It runs in browsers, even including Safari!
- Please review my ECS geospatial engine so far
- Help me get started with 3D graphics in Rust
-
Realtime Ray Marching implemented with Rust and wgpu
https://sotrh.github.io/learn-wgpu/ This is probably the best resource out there for learning wgpu specifically. If you're unfamiliar with graphics, the learnopengl one is good. If you've got experience though, jumping right into that one is a shout or looking at some vulkan ones as they're pretty similar in terms of architecture.
-
Is it possible and realistic to learn independent of an API?
- https://sotrh.github.io/learn-wgpu
-
What would be a good project structure/ design for a game engine using WebGPU?
Most of The WGPU I learnt is from https://sotrh.github.io/learn-wgpu/ but it doesn't really talk about designing n stuff, I thought of checking out the source code for Bevy or even games like veloren. But well, their codebases are pretty big to get started in the first place.
- Learn Wgpu
-
Learning OpenGL before wgpu?
So I was wondering if opting for option 1 would be better to begin with. OpenGL has a much bigger community and wgpu only has its documentation which I hear is not quite up there yet. There is this excellent tutorial for wgpu that I read through, but it seems like wgpu can be a lot more complicated than starting with OpenGL.
-
Getting started with computer graphics with Rust
I started with wgpu tutorial (https://sotrh.github.io/learn-wgpu/) since I like the idea of portability and it's a Rust-first library, but it seems I'm missing some foundations of how CG works in general: the code is given, a little of explanation like it assumes I already know something, maybe I'm wrong, but I wish there was a longer explicit version.
-
Trying to learn wgpu
If you haven't seen it: https://sotrh.github.io/learn-wgpu/ is a good introduction that will explain most of what you asked, then can refer to rend3d or bevys renderer to see how a render graph works.
What are some alternatives?
winit - Window handling library in pure Rust
ash - Vulkan bindings for Rust
bevy - A refreshingly simple data-driven game engine built in Rust
glium - Safe OpenGL wrapper for the Rust language.
Amethyst - Data-oriented and data-driven game engine written in Rust
SDL - Simple Directmedia Layer
rust-sdl - SDL bindings for Rust
raylib - A simple and easy-to-use library to enjoy videogames programming
egui - egui: an easy-to-use immediate mode GUI in Rust that runs on both web and native
Crayon - A small, portable and extensible game framework written in Rust.
wgsl-mode - Emacs syntax highlighting for the WebGPU Shading Language (WGSL)