[2.0.4]-How To Clip Standard SDL2 Drawing Area? |
Re: [2.0.4]-How To Clip Standard SDL2 Drawing Area? |
JeZ-l-Lee
|
Would: "SDL_RenderSetViewport()" do the above? https://wiki.libsdl.org/SDL_RenderSetViewport?highlight=%28%5CbCategoryRender%5Cb%29%7C%28CategoryEnum%29%7C%28CategoryStruct%29 I don't have a running alpha version to test it yet. (will be using a modified version of the "TetriCrisis 4 110% A.I. Turbo" game engine) Thanks! Here is the title screen logo: (made in Microsoft Office 2013 Publisher exported to NeoPaint 5) |
|||||||||||||
|
Naith
|
SDL_RenderSetViewport() function will indeed do what you want. Check out this tutorial for more information: http://lazyfoo.net/tutorials/SDL/09_the_viewport/index.php
|
|||||||||||
|
[2.0.4]-How To Clip Standard SDL2 Drawing Area? |
Jonny D
|
If you want clipping instead of a viewport, use SDL_RenderSetClipRect():https://wiki.libsdl.org/SDL_RenderSetClipRect
Jonny D On Sun, Jun 19, 2016 at 4:38 PM, Naith wrote:
|
|||||||||||||
|