(Formerly known as system.viewport_width, which is now obsolete)
readonly static int System.ViewportWidth;
Returns the width of the current viewport. This is reported in 320x200-resolution units,
and allows you to find out what the maximum co-ordinates you can pass to functions like
Mouse.SetPosition are.
Example:
Display("Game viewport: %d x %d", System.ViewportWidth, System.ViewportHeight);
will display the current viewport size
See Also: System.ViewportHeight
|