Nice old example on SDL2 render-to-texture, window doesn’t appear, what changed?
Seeking to understand how to use SDL2 in the render-to-texture mode, I found this nice, crisp example from the answer to this question and tried it. It builds, it executes without reporting any error and runs for 8 seconds as specified, but no window appears. Changing the position to SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED doesn’t make a difference.
SVG format and IMG_Init
if I’m trying to use only *.SVG format vectorial files, at IMG_Init(flags) in SVG_image.h I see listed only this flags:
Why SDL2 function SDL_RWFromConstMem size need type int instead of unsigned int?
Why SDL2 function SDL_RWFromConstMem size need type int instead of unsigned int?
I have a std::vector that hold data. vector.size() cannot return a value is less than 0.
Is that possible data’s size is less than 0?
SDL2 Render to texture black outline problem
I’m trying to render a letter onto a texture then render that texture to the screen.