Crate moon_engine

Source
Expand description

Moon Engine

Re-exports§

pub use math::*;

Modules§

camera
The Camera struct.
collider
Definition of the Collider and Collide traits, as well as simple Colliders.
component
The Component trait.
gl
A collection of functions and traits related to WebGl2RenderingContext, as well as the GL alias.
input
The InputManager struct.
math
Math related functionality, and aliases to nalgebra structs.
mesh
The definitions of Vertex, Mesh and their implementations.
particle
The Particle and ParticleSystem structs.
renderer
The Renderer annd Quad structs. Used for rendering.
shader
The Shader struct, and ShaderType enum.
texture
The Texture and SubTexture structs.
transform
The Transform ans Transform2D structs.
ui
The User-Interface.
utils
Utilities that make working with Rust and WASM much easier.
web
Web related utilities and the Canvas alias to web_sys::HtmlCanvasElement

Macros§

console_log
A macro that can be used to write output to the browser

Structs§

Application
The Application struct acts as the communicator between the browser and the game logic. It consists of calls made from JavaScript.