Render
Info
Dependencies:
- List
- View
- PermMem
Implementation:
Render.d on GitHub
With this package items can be rendered on the screen. Since items are rendered independently of the normal views, textures that are 'below' the items must also be managed by this package, this behaviour is managed by the priority system. The view with the highest priority is always rendered first, so it is at the bottom. In theory, any .3DS model can be rendered if you just create a suitable item script.
Initialization
Initialize with LeGo_Render
flag.
Warning
This package is still experimental and not included in LeGo_All
initialization flag.
Functions
Render_AddItemPrio
Render_AddItemPrio
Generates the render of an item, with a manually specified priority.
var int itemInst
The instance of the item to rendervar int x1
var int y1
The top left coordinate of the viewvar int x2
var int y2
The bottom right coordinate of the viewvar int priority
The priority of this render object
Return value
The function returns a handle of the render object.
Render_AddItem
Render_AddItem
Generates the render of an item, with priority set to 0
.
var int itemInst
The instance of the item to rendervar int x1
var int y1
The top left coordinate of the viewvar int x2
var int y2
The bottom right coordinate of the view
Return value
The function returns a handle of the render object.
Render_AddViewPrio
Render_AddViewPrio
Generates the render of a View, with a manually specified priority.
var int view
A handle to a Viewvar int priority
The priority of this render object
Return value
The function returns a handle of the render object.
Render_AddView
Render_AddView
Generates the render of a View, with priority set to 0
.
var int view
A handle to a View
Return value
The function returns a handle of the render object.
Render_OpenView
Render_OpenView
Opens a render object. Only open render objects are displayed.
var int handle
Handle of a render object
Render_CloseView
Render_CloseView
Closes a render object. Only open render objects are displayed.
var int handle
Handle of a render object
Render_Remove
Render_Remove
Deletes a render object. The associated view is deleted automatically.
var int handle
Handle of a render object