Coder Social home page Coder Social logo

willcrichton / learn-opengl-rust Goto Github PK

View Code? Open in Web Editor NEW
18.0 2.0 2.0 51.59 MB

Learn OpenGL in Rust with web compatibility

Home Page: https://willcrichton.net/learn-opengl-rust/

Rust 83.93% HTML 3.89% GLSL 11.15% Python 1.03%
opengl rust webgl

learn-opengl-rust's Introduction

Learn OpenGL in Rust

This repository documents my process in following the Learn OpenGL book, but with a few twists:

  1. Using Rust and glow instead of C
  2. Getting both native and web compatibility
  3. Incrementally designing Rustic abstractions over GL patterns

Each chapter has a corresponding tag for the commit that implements it. You can view every tag online using WebGL: https://willcrichton.net/learn-opengl-rust/

Setup

Native:

cargo run

Web:

cargo install cargo-make basic-http-server
cargo make build-web
basic-http-server wasm

Then visit http://localhost:4000.

learn-opengl-rust's People

Contributors

willcrichton avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

sguzman dr-42

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.