About 13,300,000 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?

    Dec 9, 2022 · 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 …

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

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

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

  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 filling them by just …

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

  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 though it's …

  10. SDL_GL_CreateContext () fails without an error message

    May 25, 2025 · What could cause SDL_GL_CreateContext() to silently fail under SDL3 when requesting an OpenGL 4.6 core profile? Is there a way to retrieve more detailed diagnostics from SDL or the …