Module lay_rs::engine

source ·
Expand description

Contains all the logic for running the animations, execute the scheduled changes to the models, and prepare the render tree The scene is drawn in 4 stages:

  • The layout step calculates the dimensions and position of a node and generates a transformation Matrix
  • The draw step generates a displaylist
  • The render step uses the displaylist to generate a texture of the node
  • The compose step generates the final image using the textures

The LayersEngine is the main engine responsible for managing layers and rendering.

§Usage:

let engine = LayersEngine::new();
engine.add_layer(Layer::new());
engine.render();

Modules§

Structs§

Enums§

Traits§