|
- SDL_Init() fails without returning an error? - Stack Overflow
It is preferable to return SDL_APP_CONTINUE instead of 0 in case the actual order of the SDL_AppResult enums change
- SDL. h no such file or directory found when compiling
The way to get the correct preprocessor flags is to use sdl-config --cflags --libs in the command line, which OP did
- 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, SDL_Surface and
- Achieving a constant frame rate in SDL - Stack Overflow
I'm trying to make an SDL program that runs with a constant frame rate However I'm finding that even though my program is lagging a lot and skipping a lot of frames (even though it's running at a
- c - Drawing a rectangle with SDL2 - Stack Overflow
SDL_Renderer* SDL_CreateRenderer(SDL_Window* window, int index, Uint32 flags) index defines what driver to use Set it to -1 to use the first driver that supports the other arguments flags are used to make the rendering optimized, software rendiring, prevent vsync, etc Set it to SDL_RENDERER_ACCELERATED
- c - How to render text in SDL2? - Stack Overflow
I'm using an SDL_Window and SDL_Renderer Is it possible to use SDL_TTF with SDL_Render SDL_Window? If so, how?
- Rotating sprite with a center of rotation in SDL2
0 I want to rotate a sprite in C and SDL2, with a set center of rotation, and without scaling or anti-aliasing My game resolution is 320x240, and the display is scaled up when I set the game to full screen, because I'm using SDL_RenderSetLogicalSize(renderer, 320, 240) Using SDL2's SDL_RenderCopyEx() (or SDL_RenderCopyExF()) to rotate a SDL
- Fastest way to draw filled quad triangle with the SDL2 renderer?
15 I have a game written using SDL2, and the SDL2 renderer (hardware accelerated) for drawing Is there a trick to draw filled quads or triangles? At the moment I'm filling them by just drawing lots of lines (SDL_Drawlines), but the performance stinks I don't want to go into OpenGL
|
|
|