Skip to content

Rewrite of LearnOpenGL example source code in Rust language.

License

Notifications You must be signed in to change notification settings

srcres258/learnopengl-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LearnOpenGL Rust

Rewrite of LearnOpenGL example source code in Rust language.

Instructions on how to build this repository

Prerequisites

First of all you need Rust installed on your computer. Using rustup is recommended.

Once you've set up Rust building environment, there are some libraries required to be installed, most of which are already mentioned within the official LearnOpenGL documentation about how to get them installed; here the links are given below as well so that you can get access to these resources at once:

GLFW

Assimp

FreeType

Build the source code

To build and run test, switch to the repository root directory and run:

cargo test

To build and run example code for certain section of LearnOpenGL, switch to that directory and run:

cargo run

For example, to run example code within the "Hello Triangle" section of "Getting started" chapter, execute in shell as the following (assuming you are in the repository root directory initially):

cd crates/1.getting_started/2.1.hello_triangle
cargo run

License

For the images, audios and models used under this repository (under the resources directory), licensed under the CC BY 4.0 license as mentioned in LearnOpenGL About page.

For the other parts, licensed under the Apache License v2.0. See LICENSE.txt for details.

About

Rewrite of LearnOpenGL example source code in Rust language.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published