Giter Site home page Giter Site logo

learnopengl-rust's Introduction

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.

learnopengl-rust's People

Contributors

srcres258 avatar

Stargazers

 avatar Poom Yimyuean avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.