surface.ScreenWidth
From GMod Wiki
Function | |
Syntax |
surface.ScreenWidth( ) Where is this used? |
Description: | |
This function returns the screen width if the game is fullscreen, or returns the interior width 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.ScreenWidth]Surface.ScreenWidth [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Gets the local client's screen width, same as ScrW() |
---|---|
Used on | |
Code | width = surface.ScreenWidth |
Output | Screen width. |
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.