About 26,700,000 results
Open links in new tab
  1. c++ - Resize SDL2 window? - Stack Overflow

    SDL_DestroyWindow(Window); Window = SDL_CreateWindow("Test", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, ScreenSizeX, …

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

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

  4. sdl - SDL2 access render framebuffer - Stack Overflow

    I am trying to access the framebuffer of an SDL_Renderer as an array of Uint32* pixel to pass to Libretro's display function. I created this minimal example to show two methods of accessing …

  5. Why are SDL and OpenGL related? - Stack Overflow

    SDL is a layer above OpenGL; in fact it uses GDI on Windows by default and also has a DirectX backend. People are probably saying you can use OpenGL to get around limitations of SDL on …

  6. sdl - How to render fonts and text with SDL2 efficiently ... - Stack ...

    31 Saw this post here about using SDL_ttf to render text in a game. However that approach requires calling SDL_CreateTextureFromSurface (), along with the SDL_FreeSurface () and …

  7. 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. My code:

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

  9. gcc - Setting up SDL in MinGW - Stack Overflow

    Generally you want to have your SDL.dll in the same directory as your executable developing and you'll always want to have SDL.dll in the same directory as the exe when distributing your app. …

  10. sdl - SDL2: How to properly toggle fullscreen? - Stack Overflow

    I have problems deactivating fullscreen mode with my program. Entering fullscreen happens correctly, but trying to go back to windowed mode doesn't work, the only effect is that the …