Nirvana2D [RCBasic Doc]

## Nirvana2D Stages API

Function Nirvana_LoadStage(stage_name$, viewport_x, viewport_y, viewport_w, viewport_h)

- Loads a stage and sets the part of the window to render it to

Sub Nirvana_SetStageViewport(v_position As Nirvana_Vector2D, v_size As Nirvana_Size2D)

- Returns the current viewport position and size

Function Nirvana_GetViewportPosition() As Nirvana_Vector2D

- Returns the current viewport position

Function Nirvana_GetViewportSize() As Nirvana_Size2D

- Returns the current viewport size

Sub Nirvana_SetStageOffset(offset As Nirvana_Vector2D)

- Sets the camera position

Function Nirvana_GetStageOffset() As Nirvana_Vector2D

- Returns the camera position

Sub Nirvana_Update()

- This update function must be used in place of Update() when using Nirvana2D