Class Scene

Base class of scenes.

It contains methods for recursively drawing and updating nodes. You need to inherit from the Scene class to create your own scene object.

Functions

scene:init () The public constructor.
scene:render_nodes (node, environment[, renderstates[, filter]]) Recursive node render function.
scene:update_nodes (node, environment) Recursive node update function.


Functions

scene:init ()
The public constructor.
scene:render_nodes (node, environment[, renderstates[, filter]])
Recursive node render function.

Parameters:

  • node menori.Node
  • environment menori.Environment
  • renderstates table (optional)
  • filter function The callback function. (optional)

Usage:

  • renderstates = { canvas, ..., clear = true, colors = {color, ...} }
  • function default_filter(node, scene, environment) node:render(scene, environment) end
scene:update_nodes (node, environment)
Recursive node update function.

Parameters:

generated by LDoc 1.4.6 Last updated 2023-03-21 17:41:24