About 50 results
Open links in new tab
  1. 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.

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

    26 I'm using SDL2. The only way I can find to draw a shape is with the line, rect and pixel functions, as explained here. Apart from using trig or the "equation of a circle", how could I draw a curve? How …

  3. How do I use SDL2 in my programs correctly? - Stack Overflow

    Oct 16, 2020 · I want to make a game using SDL2, but I'm unable to compile and/or run my code, please help! SDL2 is notoriously hard to set up, and it's often the first library aspiring game developers try to …

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

    I'm starting with SDL2 and having some trouble trying to understand what an SDL_Renderer is. What is it? What does it do? What's the difference between SDL_Renderer, SDL_Window, SDL_Surface and

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

    Feb 20, 2014 · SDL_Renderer* SDL_CreateRenderer(SDL_Window* window, int index, Uint32 flags) index defines what driver to use. Set it to -1 to use the first driver that supports the other arguments. …

  6. c - Can't link to SDL3 using MinGW - Stack Overflow

    Feb 4, 2025 · In SDL3, you need to add #include <SDL3/SDL_main.h> to the source file containing your main function (below #include <SDL3/SDL.h>). This header will create a platform appropriate entry …

  7. c++ - Can't draw multiple objects using SDL? - Stack Overflow

    Jan 2, 2025 · The second solution, using smart pointers and their built-in copy-/move-semantics is a better solution, since copying a SDL_Texture seems to ber flawed (but possible, see this answer).

  8. Forcing non-exclusive borderless fullscreen with SDL3 + OpenGL on ...

    May 9, 2025 · The actual behavior is the window entering an exclusive fullscreen-like mode upon the first call to SDL_GL_SwapWindow: There is a brief screen flicker or blanking, suggesting a display …

  9. What is the best way to read input from keyboard using SDL?

    Feb 27, 2016 · I'm running an update() method n times per second to "update" the keyboard input from the user so I can read it later in the logic part of the program. So I find two ways of implementing this …

  10. sdl - How to use OpenGL context in SDL2? - Stack Overflow

    Nov 26, 2020 · My questions are How to use OpenGL context in SDL2? What library/libraries is/are needed to use OpenGL in SDL2? I am on Windows 10, vs2019. I am trying use OpenGL context in …