About 59,500 results
Open links in new tab
  1. 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?

  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 …

  3. sdl 2 - SDL2: How to deal with transparency? - Stack Overflow

    I'm experimenting SDL2 and I encounter a case I cannot manage correctly when I draw on an intermediate transparent texture. The images I'm attempting to blend: img_w_A_channel …

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

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

  6. How to use SDL2 and SDL_image with cmake - Stack Overflow

    May 25, 2014 · I'm looking for the simplest way to compile a c++ program using SDL2 and SDL_image with cmake. Here is my best attempt, after hours of searching: CMakeLists.txt …

  7. undefined reference to WinMain@16 C++, SDL-2 - Stack Overflow

    Sep 2, 2015 · In SDL / SDL2, in an effort to try to make cross-platform development of certain kinds of applications simpler, SDL creates a custom "entry-point" to your application.

  8. sdl2 - What do I provide to SDL_LockTexture **pixels? - Game ...

    Sep 9, 2019 · You'll need to complete a few actions and gain 15 reputation points before being able to upvote. Upvoting indicates when questions and answers are useful. What's reputation …

  9. sdl2 - How can I directly write pixel data in an SDL window using ...

    Apr 22, 2021 · I'd like to directly modify pixels in my window in SDL 2. I expect this code to display an entirely red window, but instead I'm getting an all black window. I'm able to get it working if I …

  10. sdl2 - Delta Time FPS with SDL 2 in C++ - Game Development …

    May 3, 2021 · I have tried achieving a good delta time and fps counter over the last few days, read and watched a lot about it, but still can't seem to get it to work. Here is an example: …