About 11,100,000 results
Open links in new tab
  1. 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

  2. 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 …

  3. 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 …

  4. 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 …

  5. '"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...

  6. 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?

  7. 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 …

  8. How to handle multiple keypresses at once with SDL?

    Jan 14, 2017 · SDL keeps track of the current state of all keys. You can access this state via: SDL_GetKeyState () So, each iteration you can update the movements based on the key …

  9. 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.

  10. SDL2: LNK1561: entry point must be defined - Stack Overflow

    Sep 7, 2013 · The second half is to add SDL_MAIN_HANDLED to your additional defines. The clue I used to resolve this can be found in SDL_main.h. Setting SDL_MAIN_HANDLED tell the …