About 50 results
Open links in new tab
  1. How to draw circles, arcs and vector graphics in SDL?

    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 …

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

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

  4. SDL3 fails to create OpenGL ES 2.0 context? - Stack Overflow

    Feb 18, 2025 · SDL_GL_CreateContext - Remarks Windows users new to OpenGL should note that, for historical reasons, GL functions added after OpenGL version 1.1 are not available by default.

  5. 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 navigation arrows are …

  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. '"SDL.h" no such file or directory found' when compiling

    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 directory to your include directories.

  8. Problem with using SDL_ttf in CLion on Windows (C++)

    Oct 24, 2024 · 0 I am trying to use SDL_ttf in CLion on Windows to display text on screen within a game loop.

  9. When linking SDL, getting `unresolved external symbol SDL_main`

    When linking SDL, getting `unresolved external symbol SDL_main` Asked 2 years, 1 month ago Modified 2 years, 1 month ago Viewed 1k times

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