Re: How to control device context in two ways

"MZIskandar" <[email protected]>
Newsgroups gmane.comp.lib.sdl
Message-ID <[email protected]>
Hello.

You can use SDL_SetRenderTarget to draw/prepare everything first on a texture.

eg: 
1. Rendering a sentence "Hello World"
2. Use SDL_SetRenderTarget to draw each character on a texture.
3. Use SDL_RenderCopy to "present" it many times/game loop without recreating the sentence.
4. SDL_RenderPresent to draw everything.

------------------------
http://digitalspine.blogspot.com

_______________________________________________
SDL mailing list
[email protected]
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.