# Nirvana2D [RCBasic Doc]

## Nirvana2D API

Type Nirvana_Vector2D

- Dim X
- Dim Y

Type Nirvana_Size2D

- Dim Width
- Dim Height

Type Nirvana_Sprite

- Dim Name$
- Dim BaseName$
- Dim Sprite_ID
- Dim Animation_Name_Index
- Dim Animation_Count

Type Nirvana_TileMap

- Dim TilesetName$
- Dim Tileset_ID
- Dim TileMap_ID
- Dim Mask_Index
- Dim Mask_Count

Type Nirvana_Background

- Dim Image_ID
- Dim RenderSetting

Type Nirvana_Shape

- Dim Sprite_ID
- Dim ShapeType

Type Nirvana_Layer

- Dim Name$
- Dim LayerType
- Dim Visible
- Dim Alpha
- Dim Scroll_Speed As Nirvana_Vector2D
- Dim Ref_Canvas
- Dim Layer_TileMap As Nirvana_TileMap
- Dim Layer_Sprite_Count
- Dim Layer_Shape_Count
- Dim Bkg As Nirvana_Background

Type Nirvana_Stage

- Dim Active
- Dim Name$
- Dim Tile_Size As Nirvana_Size2D
- Dim Stage_Size As Nirvana_Size2D
- Dim Layer_Count
- Dim Viewport_Size As Nirvana_Size2D
- Dim Stage_Offset As Nirvana_Vector2D

Function Nirvana_CreateVector2D(x, y) As Nirvana_Vector2D

- Create a 2D Vector

Function Nirvana_CreateSize2D(w, h) As Nirvana_Size2D

- Create a 2D Size