Top "Sdl-2" questions

For questions and issues regarding Simple DirectMedia Layer 2 (SDL2).

SDL2_image not found

I am trying to compile the following code which has the headers: #include <SDL2/SDL.h> #include <…

c++ ubuntu sdl sdl-2 sdl-image
Why do I get bad performance with SDL2 and SDL_RenderCopy inside a double for loop over all pixels?

I am programming a raycasting game using SDL2. When drawing the floor, I need to call SDL_RenderCopy pixelwise. This …

c++ performance game-engine sdl-2 raycasting
SDL2 Can't create window since it couldn't find matching GLX visual

I have a problem as i am currently running Ubuntu Terminal on Windows 10. I also have XMing installed as my …

c++ sdl-2 windows-subsystem-for-linux glx
Using homebrew installed SDL2 with Xcode

I have installed SDL2 using Homebrew but now I don't know how to make sure Xcode can use it! I …

homebrew sdl-2
How do I take and save a BMP screenshot in SDL 2?

Using just a given SDL_Window* and SDL_Renderer*, how can I create and save a screenshot in SDL 2.0?

c++ opengl sdl sdl-2
Is SDL Renderer useless if I use opengl for drawing?

I'm am learning SDL2, but I am also using the imgui library that is using OpenGL calls. From what I …

c++ opengl sdl-2 opengl-3