Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/willcrichton/learn-opengl-rust
Learn OpenGL in Rust with web compatibility
https://github.com/willcrichton/learn-opengl-rust
opengl rust webgl
Last synced: 2 months ago
JSON representation
Learn OpenGL in Rust with web compatibility
- Host: GitHub
- URL: https://github.com/willcrichton/learn-opengl-rust
- Owner: willcrichton
- Created: 2021-02-13T17:57:07.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-01T01:18:53.000Z (almost 4 years ago)
- Last Synced: 2023-03-12T05:02:37.309Z (almost 2 years ago)
- Topics: opengl, rust, webgl
- Language: Rust
- Homepage: https://willcrichton.net/learn-opengl-rust/
- Size: 50.4 MB
- Stars: 13
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Learn OpenGL in Rust
This repository documents my process in following the [Learn OpenGL](https://learnopengl.com/) book, but with a few twists:
1. Using Rust and [glow](https://github.com/grovesNL/glow/) instead of C
2. Getting both native and web compatibility
3. Incrementally designing Rustic abstractions over GL patternsEach 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](http://localhost:4000).