A viewport is a 'window' through which the player sees the current room.
Gets/sets the camera to be displayed in this viewport.
Gets/sets the viewport's height in screen coordinates.
Gets/sets whether the viewport is enabled and drawn on screen.
Gets/sets the viewport's width in screen coordinates.
Gets/sets the X position on the screen where this viewport is located.
Gets/sets the Y position on the screen where this viewport is located.
Gets/sets the viewport's z-order relative to other viewports.
Creates a new viewport.
Removes an existing viewport.
static Viewport GetAtScreenXY(int x, int y)
Finds if there's any viewport at the specified screen coordinates and returns the topmost one.
Point RoomToScreenPoint(int roomx, int roomy, bool clipViewport)
Returns the point on screen corresponding to the given room coordinates if seen through this viewport.
Point ScreenToRoomPoint(int scrx, int scry, bool clipViewport)
Returns the point in room corresponding to the given screen coordinates if seen through this viewport.
void SetPosition(int x, int y, int width, int height)
Changes viewport's position on the screen.