About 8,450,000 results
Open links in new tab
  1. 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 …

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

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

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

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

  6. sdl - Game controller button number incompability between SDL2 …

    May 20, 2023 · With SDL input read functions (code below), I get these: When I press press leftshoulder button, event.jbutton.button says 9 When I press press rightshoulder button, …

  7. c++ - Using SDL2 with CMake - Stack Overflow

    Feb 8, 2015 · I'm trying to use CLion to create a SDL2 project. The problem is that the SDL headers can't be found when using #include's. My CMakeLists.txt file: …

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

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

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