Skip to content
A Rust port of the OpenGL superbible
Rust GLSL
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
images
src
.gitignore
Cargo.lock
Cargo.toml
README.md

README.md

OpenGL Superbible - Rust Examples

This is my repository for keeping the OpenGL examples as I work through the OpenGL Superbible's 7th edition in rust.

More examples are available than the ones listed in the readme. Storing a lot of gifs would bloat the repo, so only a few are displayed here.

Instructions

To run any of the programs:

cargo run --bin name

Images

Solid Red

Solid Red

Colors

Colors

Point

Point

Triangle

Triangle

Moving Triangle

Moving Triangle

Colored Triangle

Colored Triangle

Tessellated Triangle

Tessellated Triangle

Geometry Shader

Geometry Shader

Fragment Shader

Fragment Shader

Interpolation

Interpolation

Spinny Cube

Spinny Cube

Spinny Cubes

Spinny Cubes

Textured Triangle

Textured Triangle

KTX Viewer

KTX Viewer

This gif has artifacts from the method used to generate it but you get the idea.

You can’t perform that action at this time.