Added new functions to documentation

This commit is contained in:
n00b87
2025-08-13 19:20:25 -05:00
parent 6ad655f40d
commit 4b2f517de4
152 changed files with 8947 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
#title Nirvana2D [RCBasic Doc]
#header Nirvana2D Background API
<b>Function Nirvana_GetLayerBackgroundImageID(layer_index)</b>
#list ul
#li Returns the RCBasic image id of the image set on the given layer or -1 if no image is set
#/list
<br>
<b>Function Nirvana_SetLayerBackgroundImage(layer_index, image_id)</b>
#list ul
#li Sets a new image on the given layer (NOTE: Layer must be a Canvas2D layer)
#/list
<br>
<b>Function Nirvana_GetLayerBackgroundRenderType(layer_index)</b>
#list ul
#li Returns the render type of the layer image set in Nirvana2D
#li Possible Render Types
#list ul
#li NIRVANA_IMG_RENDER_SETTING_NORMAL
#li NIRVANA_IMG_RENDER_SETTING_STRETCHED
#li NIRVANA_IMG_RENDER_SETTING_TILED
#/list
#/list
<br>
<b>Function Nirvana_SetLayerBackgroundRenderType(layer_index, render_type)</b>
#list ul
#li Sets the render type of the layer image (NOTE: Layer must be a Canvas2D layer)
#li Possible Render Types
#list ul
#li NIRVANA_IMG_RENDER_SETTING_NORMAL
#li NIRVANA_IMG_RENDER_SETTING_STRETCHED
#li NIRVANA_IMG_RENDER_SETTING_TILED
#/list
#/list
<br>