This is a simple program in Rust that compiles a basic shader program and renders a triangle.
Run the program with cargo run --bin triangle
Alternatively you can run some other scenes
cargo run --bin dummy
cargo run --bin point
This project features:
- An update method that rotates the triangle
- Segregated responsibilities in modules
- Builder pattern for VAO, Camera and ShaderProgram and GameState
- Reusable game logic in a separate library crate (under
lib/engine
) - A basic ECS - inspired by the RustConf keynote by Catherine West.)
- FPS counter
- Entity allocator
- Make draw behavior a component in
GameState