About 19,100,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

    '"SDL.h" no such file or directory found' when compiling [closed] Asked 13 years, 7 months ago Modified 2 months ago Viewed 219k times

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

  5. How to set a pixel in a SDL_surface? - Stack Overflow

    void set_pixel(SDL_Surface *surface, int x, int y, Uint32 pixel) { Uint8 *target_pixel = (Uint8 *)surface->pixels + y * surface->pitch + x * 4; *(Uint32 *)target_pixel = pixel; } Here I have few …

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

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

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

  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 …

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

    I managed to compile the SDL libraries with the guide Jonas provided, and got a libSDL2.a file. At first I only added the path of libSDL2.a to "Link libraries:" -section of Code::Blocks, but I got a …