About 3,090,000 results
Open links in new tab
  1. SDL_GetKeyboardState not capturing key presses - Stack Overflow

    Mar 4, 2025 · I am trying to make a controller for a game with SDL 2(didn't want to ask on gamedev since it is not a game issue directly) I use SDL_GetKeyboardState to see if the …

  2. How to draw circles, arcs and vector graphics in SDL?

    SDL allows for third party libs to draw on a texture. If cairo was desirable, it could be used in a ...

  3. c - How to render text in SDL2? - Stack Overflow

    Apr 6, 2014 · SDL_Color TextColor = { 255, 0, 0, 255}; // Red SDL color. TTF_Font* Font; // The font to be loaded from the ttf file. SDL_Surface* TextSurface; // The surface necessary to …

  4. c++ - How to draw pixels in SDL 2.0? - Stack Overflow

    If you want to set a large rectangle of pixels at once, e.g. the entire screen or a sprite, use SDL_Texture + SDL_RenderCopy and possibly SDL_TEXTUREACCESS_STREAMING, as …

  5. c++ - Why SDL defines main macro? - Stack Overflow

    Oct 10, 2015 · After having some trouble setting up SDL, I found out that SDL defines a macro that replaces main: #define main SDL_main // And then extern C_LINKAGE int SDL_main(int …

  6. c++ - What is an SDL renderer? - Stack Overflow

    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 difference is mostly that …

  7. c - Drawing a rectangle with SDL2 - Stack Overflow

    Feb 20, 2014 · SDL_Renderer and SDL_Window needs to be set up before you can use them. You already create your window properly, so I won't cover that. Here's how to set up an …

  8. '"SDL.h" no such file or directory found' when compiling

    Most times SDL is in /usr/include/SDL. If so then your #include <SDL.h> directive is wrong, it should be #include <SDL/SDL.h>. An alternative for that is adding the /usr/include/SDL …

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

  10. c++ - SDL2 on Raspberry Pi without X? - Stack Overflow

    Aug 27, 2019 · SDL_VIDEODRIVER available: x11 wayland KMSDRM RPI dummy SDL_VIDEODRIVER usable : KMSDRM SDL_VIDEODRIVER selected : KMSDRM …

Refresh