2 ms·
I agree wgpu is great, but wgpu isn't a substitute for SDL. The Rust project that replaces SDL is called winit https://github.com/rust-windowing/winit https://
by nextaccountic 5y ago
I agree wgpu is great, but wgpu isn't a substitute for SDL. The Rust project that replaces SDL is called winit
https://github.com/rust-windowing/winit https://github.com/rust-windowing/winit
One can use wgpu with winit (which is more common) or, if they prefer, wgpu with sdl2. Here is an example:
https://github.com/Rust-SDL2/rust-sdl2/tree/master/examples/raw-window-handle-with-wgpu https://github.com/Rust-SDL2/rust-sdl2/tree/master/examples/...
edit: but, the "next-gen Vulkan API" the article refers to, that SDL will be developing, it would be a competitor to wgpu.
- codetrotter 5y ago> The Rust project that replaces SDL is called winit [...] One can use wgpu with winit Right, sorry, I should've specified that I am using winit and wgpu together, and that this is in comparison to my previous experience which includes using SDL2 alone (software rendering using SDL_Surface struct and the SDL_BlitSurface function) on one occasion during a game jam, and another time using SDL2 with Glad (OpenGL loading library) for an isometric terrain editor application that I tried to make. I think I also tried using SDL2 with GLEW at some point. > edit: but, the "next-gen Vulkan API" the article refers to, that SDL will be developing, it would be a competitor to wgpu. Yup, that's what prompted me to comment about wgpu, but I see how my comment ended up as incorrect because I didn't mention winit. Thanks for pointing it out.