Added new functions to documentation
This commit is contained in:
86
doc/nirvana_docs/nirvana_api_background.html
Normal file
86
doc/nirvana_docs/nirvana_api_background.html
Normal file
@@ -0,0 +1,86 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>Nirvana2D [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>Nirvana2D Background API </h2></p>
|
||||
<p>
|
||||
<b>Function Nirvana_GetLayerBackgroundImageID(layer_index)</b>
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
Returns the RCBasic image id of the image set on the given layer or -1 if no image is set
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
<br>
|
||||
</p>
|
||||
<p>
|
||||
<b>Function Nirvana_SetLayerBackgroundImage(layer_index, image_id)</b>
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
Sets a new image on the given layer (NOTE: Layer must be a Canvas2D layer)
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
<br>
|
||||
</p>
|
||||
<p>
|
||||
<b>Function Nirvana_GetLayerBackgroundRenderType(layer_index)</b>
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
Returns the render type of the layer image set in Nirvana2D
|
||||
</li>
|
||||
<li>
|
||||
Possible Render Types
|
||||
<ul>
|
||||
<li>
|
||||
NIRVANA_IMG_RENDER_SETTING_NORMAL
|
||||
</li>
|
||||
<li>
|
||||
NIRVANA_IMG_RENDER_SETTING_STRETCHED
|
||||
</li>
|
||||
<li>
|
||||
NIRVANA_IMG_RENDER_SETTING_TILED
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
<br>
|
||||
</p>
|
||||
<p>
|
||||
<b>Function Nirvana_SetLayerBackgroundRenderType(layer_index, render_type)</b>
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
Sets the render type of the layer image (NOTE: Layer must be a Canvas2D layer)
|
||||
</li>
|
||||
<li>
|
||||
Possible Render Types
|
||||
<ul>
|
||||
<li>
|
||||
NIRVANA_IMG_RENDER_SETTING_NORMAL
|
||||
</li>
|
||||
<li>
|
||||
NIRVANA_IMG_RENDER_SETTING_STRETCHED
|
||||
</li>
|
||||
<li>
|
||||
NIRVANA_IMG_RENDER_SETTING_TILED
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
<br>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user