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