Skip to content

shampoofactory/moody_animals

Repository files navigation

MIT/Apache 2.0 Licensed Rust

moody_animals

Simple OpenGL bitmap font demo. Created to test bmfont_rs in a standalone application.

The code uses bare OpenGL calls as opposed to a wrapper such as glium. As a consequence the codebase is quite dense. Most of the pain resides in the glx module.

Alt text

Build

Build requirements:

  • OpenGL 3.3 or higher.
  • SDL2 dev libraries, install guide here.

Then:

$ cargo build --release

The binary is located at

$ target/release/moody_animals --help

Run

Press escape or close the window to stop the demo.

Run windowed:

$ moody_animals

Run full screen:

$ moody_animals -f

Run full screen with settings:

$ moody_animals -f -s 90 -d 80

Help file:

$ moody_animals --help
moody_animals 0.1.0
Vin Singh <github.com/shampoofactory>
Simple OpenGL bitmap font demo

USAGE:
    moody_animals [FLAGS] [OPTIONS]

FLAGS:
    -f, --fullscreen    fullscreen, overrides width/ height
        --help          Prints help information
    -V, --version       Prints version information

OPTIONS:
    -d, --density <PERCENT>    word density [default: 5]
    -h, --height <PIXELS>      screen height [default: 768]
    -s, --speed <PERCENT>      animation speed [default: 70]
    -w, --width <PIXELS>       screen width [default: 1024]

Alternatively, run with cargo and pass any flags after --:

$ cargo run -- --help

License

Licensed under either of

at your option.

About

Simple OpenGL bitmap font demo

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages