Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Nercury/rust-and-opengl-lessons
Collection of example code for learning OpenGL in Rust
https://github.com/Nercury/rust-and-opengl-lessons
Last synced: 2 months ago
JSON representation
Collection of example code for learning OpenGL in Rust
- Host: GitHub
- URL: https://github.com/Nercury/rust-and-opengl-lessons
- Owner: Nercury
- License: apache-2.0
- Created: 2018-02-08T18:00:22.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-06-14T16:08:21.000Z (over 1 year ago)
- Last Synced: 2024-08-02T13:34:25.903Z (5 months ago)
- Language: Rust
- Homepage:
- Size: 3.02 MB
- Stars: 379
- Watchers: 15
- Forks: 52
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# rust-and-opengl-lessons
__Project requires Rust 1.31__
Collection of example code for learning OpenGL in Rust
- 00 - [Setup](http://nercury.github.io/rust/opengl/tutorial/2018/02/08/opengl-in-rust-from-scratch-00-setup.html)
- 01 - [Window](http://nercury.github.io/rust/opengl/tutorial/2018/02/08/opengl-in-rust-from-scratch-01-window.html)
- 02 - [OpenGL Context](http://nercury.github.io/rust/opengl/tutorial/2018/02/09/opengl-in-rust-from-scratch-02-opengl-context.html)
- 03 - [Compiling Shaders](http://nercury.github.io/rust/opengl/tutorial/2018/02/10/opengl-in-rust-from-scratch-03-compiling-shaders.html)
- 04 - [Triangle](http://nercury.github.io/rust/opengl/tutorial/2018/02/11/opengl-in-rust-from-scratch-04-triangle.html)
- 05 - [Colored Triangle](http://nercury.github.io/rust/opengl/tutorial/2018/02/11/opengl-in-rust-from-scratch-05-triangle-colors.html)
- 06 - [GL Generator](http://nercury.github.io/rust/opengl/tutorial/2018/02/12/opengl-in-rust-from-scratch-06-gl-generator.html)
- 07 - [Basic Resources](http://nercury.github.io/rust/opengl/tutorial/2018/02/14/opengl-in-rust-from-scratch-07-basic-resources.html)
- 08 - [Failure](http://nercury.github.io/rust/opengl/tutorial/2018/02/15/opengl-in-rust-from-scratch-08-failure.html)
- 09 - [Vertex Attribute Format](http://nercury.github.io/rust/opengl/tutorial/2018/06/27/opengl-in-rust-from-scratch-09-vertex-attribute-format.html)
- 10 - [Procedural Macros](http://nercury.github.io/rust/opengl/tutorial/2018/07/11/opengl-in-rust-from-scratch-10-procedural-macros.html)
- 11 - [Vertex Data Types](http://nercury.github.io/rust/opengl/tutorial/2018/07/12/opengl-in-rust-from-scratch-11-vertex-data-types.html)
- 12 - [Buffers](http://nercury.github.io/rust/opengl/tutorial/2018/07/25/opengl-in-rust-from-scratch-12-buffers.html)
- 13 - [Safe Triangle and nalgebra](http://nercury.github.io/rust/opengl/tutorial/2018/07/27/opengl-in-rust-from-scratch-13-safe-triangle-nalgebra.html)The code directories with `-x` at the end contain experimental hacks where I explore future solutions.
## Running
```
cargo run --release --bin
```Example:
```
cargo run --release --bin lesson-23-x
```## License
This library is distributed under the terms of either of:
* MIT license ([LICENSE-MIT](LICENSE-MIT) or
[http://opensource.org/licenses/MIT](http://opensource.org/licenses/MIT))
* Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or
[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0))at your option.
### Contributing
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the
work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any
additional terms or conditions.