+ 1

SDL Texture rendering

Hey I have a texture and i want to render it. There are two ways: 1. SDL_SetRenderTarget SDL_RenderFillRect resetting the target SDL_RenderPresnt (I'm not sure about this one) 2.SDL_RenderFillRect SDLRenderCopy SDL_RenderPresent Can anyone tell me what is the difference between these two methods? And what is the usage of SDL_SetRenderTarget and if the first method is wrong what will be the correct form?

5th Dec 2021, 1:53 PM
GHOST mHBr
GHOST mHBr - avatar
1 Réponse
0
I find the solution The first method should be: SDL_SetRenderTarget SDL_RenderFillRect resetting the target SDL_RenderCopy SDL_RenderPresent
5th Dec 2021, 7:59 PM
GHOST mHBr
GHOST mHBr - avatar