G.ScrH
From GMod Wiki
Revision as of 09:45, 16 December 2010 by Wizard of Ass (Talk | contribs)
Function | |
Syntax |
ScrH( ) Where is this used? |
Description: | |
Returns the height of the currently used viewport (Mostly fits to the screen resolution) | |
Returns: | Number height |
Part of Library: | Global Functions |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.ScrH]G.ScrH [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Prints the height of the currently used resolution |
---|---|
Used on | |
Code | print("Your resolution height is "..ScrH()) |
Output | Your resolution height is 800 |
Addition Notes
- * This function is (when not localized) about 3 times slower than surface.ScreenHeight(), however this will not make a big difference if you don't call the function like 10000 times per second.