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

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

  3. How do I statically link SDL2 in Visual Studio 2022?

    Jul 30, 2023 · How do I link SDL2 statically without having to have DDL's? also I've read somewhere online that you have to statically build DDL's into lib libraries?

  4. sdl 2 - Installing SDL2 on Linux - Stack Overflow

    Jun 29, 2014 · SDL2 is available as packages in Debian unstable, testing, and wheezy-backports. I have no experience with Ubuntu or Mint, but there might be similar packages available for those distributions.

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

  6. Drawing a rectangle with SDL2 - Stack Overflow

    Feb 20, 2014 · I just started using SDL2 and I already have a problem. I want to create a window and paint it in red. But it remains white, and I don't understand why. Here is the code : int main (int argc, …

  7. '"SDL.h" no such file or directory found' when compiling

    3 the simplest idea is to add pkg-config --cflags --libs sdl2 while compiling the code. g++ file.cpp `pkg-config --cflags --libs sdl2`

  8. Game controller button number incompability between SDL2 and other ...

    May 20, 2023 · You can convert between SDL2 and Gamepad API buttons fairly easily because they both define essentially the same set of standard buttons. The Windows game controller utility …

  9. 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 cursor gets shown

  10. SDL2 cross-platform OpenGL 3+ and OpenGL ES 2.0 or 3.0

    Dec 8, 2013 · Is there some super-easy basic hello world cube project (with setup tutorial) for SDL2 that builds and runs easily across (Windows, Linux eg Ubuntu, Mac OS X, Android, iOS), using modern …