Module meenle_noonle::demo
source · Expand description
Demonstration of the meenle-noonle library. To use, first call generate_background, then pick your mesh with set_mesh, and use get_buffer to get the frame buffer where the output will be rendered. Call render_spin every frame to update the frame buffer. NOTE: The demo is not thread safe. You must wait for set_mesh to finish execution before rendering.
Example usage:
meenle_noonle::generate_background();
meenle_noonle::demo::set_mesh(0);
pFFB = meenle_noonle::get_buffer();
loop {
meenle_noonle::demo::render_spin(epoch, 5.0);
sleep(1.0 / 60.0);
}
Statics
Functions
- Render the spinning mesh animation into the frame buffer.