An open API service indexing awesome lists of open source software.

https://github.com/carlmartus/lingo

Rust OpenGL helper library
https://github.com/carlmartus/lingo

3d-camera glsl opengl opengl-es-20 rust

Last synced: about 2 months ago
JSON representation

Rust OpenGL helper library

Awesome Lists containing this project

README

          

# Lingo
[![Build Status](https://travis-ci.org/carlmartus/lingo.svg?branch=master)](https://travis-ci.org/carlmartus/lingo)

Rust wrapper library for OpenGL.

Using the OpenGL API directly can be a lot of work.
This library is meant to make this job easier.

## Modules
* `lingo::draw::HwBuf`, vertex array buffer handling.
* `lingo::draw::Matrix4x4`, create projection matrices.
* `lingo::draw::Pipeline`, render setup by defining a pipeline.
* `lingo::draw::Program`, GLSL program abstraction.
* `lingo::draw::ProgramBuilder`, makes GLSL shaders a bit easier.
* `lingo::draw::print_gl_error`, OpenGL error checking.

## Sample
- [Hello triangle](samples/hello_triangle.rs), *Hello world* but for GPU.
- [Stride](samples/stride.rs), multiple vertex attributes using stride.
- [3D camera](samples/camera.rs), using projections to get a 3D camera
perspective.