About 59,900 results
Open links in new tab
  1. sdl2 - SDL TTF render variable - Game Development Stack Exchange

    It's been a while since I've done any SDL but I think your problem is here: texture = SDL_CreateTextureFromSurface(renderer, surface); You're creating a texture and then never …

  2. SDL2 - Why does SDL_CreateTextureFromSurface() need a …

    Dec 23, 2015 · You need SDL_Renderer to get information about the applicable constraints: maximum supported size pixel format And probably something more..

  3. sdl2 - Render to texture and then to screen cause flickering

    Nov 6, 2015 · So I have my class vItem which has a vector (consider elements like layers) of textures, origin rects and destination rects plus other stuff. Basically whenever I update any of …

  4. How to build SDL_Image from FetchContent? - Stack Overflow

    Mar 15, 2022 · I'm attempting to build a C++ program with SDL2 and SDL_Image using CMake by fetching them from their respective GitHub repositories; and it works for the most part! When I …

  5. sdl2 - SDL_UpdateTexture is slow - Game Development Stack …

    Nov 25, 2014 · I am raytracing on the CPU and I need to display my renders to the screen in realtime. I chose SDL 2 as it seems to be made for low level stuff. I made this basic test which …

  6. pygame installation: sdl-config command not found

    5 ORIGINAL: 2013.10.25 PyGame-1.9.1 was created in 2009 so it still use old SDL 1.2 not new SDL2. PySDL2 use SDL2 EDIT: 2021.10.17 Question and my original answer is almost 8 …

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

    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 …

  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. sdl2 - How do I modify textures in SDL with direct pixel access?

    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: …

  10. python - How do I utilize the pygame._sdl2.controller module?

    Jul 5, 2023 · Yeah, the tutorial side of _sdl2.controller is pretty much non-existent to my knowledge/ If you want to use anything from _sdl2, you need to explicitly import it: import …