render.SetViewPort
From GMod Wiki
Function | |
Syntax |
render.SetViewPort( Number x, Number y, Number width, Number height ) Where is this used? |
Description: | |
Sets the current viewport position and size, then you can render a target. This is similar to the players normal screen. | |
Returns: | nil |
Part of Library: | render |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Render.SetViewPort]Render.SetViewPort [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- ScrW() and ScrH() return the viewport, so if you want to reset the viewport back to the default store the default viewport values in variables.