+ 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?
1 ответ
0
I find the solution
The first method should be:
SDL_SetRenderTarget
SDL_RenderFillRect
resetting the target
SDL_RenderCopy
SDL_RenderPresent