
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
Achieving a constant frame rate in SDL - Stack Overflow
Mar 30, 2010 · I'm trying to make an SDL program that runs with a constant frame rate. However I'm finding that even though my program is lagging a lot and skipping a lot of frames (even …
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?
'"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...
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 …
sdl - SDL_PollEvent vs SDL_WaitEvent - Stack Overflow
Sep 18, 2013 · In general, you should use SDL_WaitEvent rather than SDL_PollEvent to release the CPU to the operating system to handle other tasks, like processing user input.
c++ - Change background of SDL2 window? - Stack Overflow
I can create a SDL2 window but I don't know how to change background color of this window.
c - Can't link to SDL3 using MinGW - Stack Overflow
Feb 4, 2025 · } it compiles, but linker can't find the symbols for the SDL functions, so the include seems to work, but the lib part not. What am I doing wrong here? As far as I could find …
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 …
sdl - Static-linking of SDL2 libraries - Stack Overflow
I managed to compile the SDL libraries with the guide Jonas provided, and got a libSDL2.a file. At first I only added the path of libSDL2.a to "Link libraries:" -section of Code::Blocks, but I got a …