surface.ScreenHeight
From GMod Wiki
Function | |
Syntax |
surface.ScreenHeight( ) Where is this used? |
Description: | |
This function returns the screen height if the game is fullscreen, or returns the interior height of the user's game window if the game is windowed. | |
Returns: | Integer |
Part of Library: | surface |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Surface.ScreenHeight]Surface.ScreenHeight [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Gets the local client's screen height, same as ScrH() |
---|---|
Used on | |
Code | height = surface.ScreenHeight() |
Output | Screen height. |
Additional Notes
- This function is (when not localized) about 3 times faster than ScrH(), however this will not make a big difference if you don't call the function like 10000 times per second.