Crate meenle_noonle

source ·
Expand description

Meenle_Noonle is my software renderer demo, built to help me learn things I didn’t previously know. It is a small Rust library with no dependencies, targeting wasm. It exports functions to act on an internal frame buffer (render, draw_line), as well as a function to get a pointer to the frame buffer itself (get_buffer).

Modules

  • 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.
  • Some sample meshes for demonstration.

Structs

  • Simple 3x3 Matrix for graphics maths.
  • Mesh of triangles.
  • Pixel for the frame buffer. RGBA color, to match HTML canvas’ buffer format.
  • Triangle.

Enums

Constants

Statics

  • BG_BUFFER 🔒
    Frame buffer with the pretty background pattern. Used to clear the scene.
  • BUFFER 🔒
    Frame buffer.

Functions

Type Definitions