About 67,000 results
Open links in new tab
  1. '"SDL.h" no such file or directory found' when compiling

    On linux, simply change #include <SDL.h> to #include <SDL2/SDL.h> fixed it, of course on compiling need -lSDL2 flag.

  2. sdl2 - SDL_Image setup problems on windows / mingw 64 / eclipse

    Again, this worked when I was only including SDL2, and broke when I tried to include SDL2_image because the image library references the normal library in a way that can't be reconciled. Has …

  3. sdl - Static-linking of SDL2 libraries - Stack Overflow

    sdl2-config script can help with this. Particulary form sdl2-config --static-libs should supply all that is needed (should work cross-platform). More info : link

  4. sdl2 - How do I modify textures in SDL with direct pixel access? - Game ...

    I'm trying to use SDL_LockTexture and SDL_UnlockTexture for directly editing pixels in a texture. I'm using SDL 2.0. Setting the pixel value using the following code doesn't modify the texture: vo...

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

  6. sdl2 - How to stop SDL from freezing the rendering while resizing the ...

    I have a simple SDL application with a re-sizeable window. If I minimize it and then maximize the window the rendering freezes. I've included a simple code example below which makes the screen flash

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

    How does one draw with pixels in SDL2.0? I'm trying to get familiar with C++, but this is very difficult to do without pretty pictures, so I'm trying to get a very basic graphics display thing running.

  8. sdl2 - Detect which monitor an SDL window uses - Game Development …

    I have some SDL code that, before creating a Window and a Renderer, detects the display DPI using SDL_GetDisplayDPI, to properly scale textures late on for different types of monitors (for instance...

  9. c++ - Using SDL2 with CMake - Stack Overflow

    Feb 8, 2015 · I'm trying to use CLion to create a SDL2 project. The problem is that the SDL headers can't be found when using #include's. My CMakeLists.txt file: cmake_minimum_required(VERSION …

  10. sdl2 - How can I get the window associated with a SDL_Renderer?

    As the title says, is there a member or function to get this? For example renderer-&gt;window? Or renderer.window? Or so?