
How to draw circles, arcs and vector graphics in SDL?
How to draw circles, arcs and vector graphics in SDL? Asked 9 years, 3 months ago Modified 2 years, 10 months ago Viewed 64k times
'"SDL.h" no such file or directory found' when compiling
Here's a piece of my current Makefile: CFLAGS = -O2 -Wall -pedantic -std=gnu++11 `sdl-config --cflags --libs` -lSDL_mixer I have libsdl installed properly, SDL.h is in /usr/include/sdl where it be...
SDL_Init() fails without returning an error? - Stack Overflow
May 24, 2025 · It is preferable to return SDL_APP_CONTINUE instead of 0 in case the actual order of the SDL_AppResult enums change.
c - Drawing a rectangle with SDL2 - Stack Overflow
Feb 20, 2014 · Initialize SDL SDL and SDL2 needs to be initialized before you can use it. The way to initialize SDL is the following function. int SDL_Init(Uint32 flags) Where flags can be a …
Fastest way to draw filled quad/triangle with the SDL2 renderer?
Oct 5, 2021 · 15 I have a game written using SDL2, and the SDL2 renderer (hardware accelerated) for drawing. Is there a trick to draw filled quads or triangles? At the moment I'm …
c - How to render text in SDL2? - Stack Overflow
Apr 5, 2014 · I'm using an SDL_Window and SDL_Renderer. Is it possible to use SDL_TTF with SDL_Render/SDL_Window? If so, how?
Why are my SDL textures not being rendered onscreen?
Apr 23, 2025 · } SDL_DestroyRenderer(render1); SDL_DestroyWindow(win1); SDL_Quit(); return 0; } Problem: The textures are created successfully, but they don't render to the screen when I …
Using the new SDL3 Callback App Structure - Stack Overflow
Apr 24, 2024 · How can I use the new SDL3 callback structure with no main() function rather than the traditional one where the application pumps the main loop?
c++ - What is an SDL renderer? - Stack Overflow
SDL_Texture and SDL_Surface The SDL_Renderer renders SDL_Texture, which stores the pixel information of one element. It's the new version of SDL_Surface which is much the same. The …
How to detect if left mousebutton is being held down with SDL2
Feb 8, 2022 · 1 I know how to use events to detect when the mouse button is pressed, however, how do detect if a mouse button is currently held down? Note I am not asking how to get it …