Skip to content

peerhenry/rust_hello_triangle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Hello Triangle

This is a simple program in Rust that compiles a basic shader program and renders a triangle.

Render output

Run the program with cargo run --bin triangle

Alternatively you can run some other scenes

  • cargo run --bin dummy
  • cargo run --bin point

Update

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.)

Todo

  • FPS counter
  • Entity allocator
  • Make draw behavior a component in GameState

About

Hello Triangle in Rust with OpenGL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published