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

https://github.com/red1c3/gl-shader-loader

An OpenGL shader loader
https://github.com/red1c3/gl-shader-loader

loader opengl shaders

Last synced: 2 months ago
JSON representation

An OpenGL shader loader

Awesome Lists containing this project

README

          

# gl-shader-loader

An OpenGL shader loader

## Support
So far it only provides a vertex-fragment shaders support, so it is safe to say that is supports 3.3 onwards, it should work with C++11 onwards compilers too.

## Requirements
glbinding library should be installed and initilized before using the loader.

## Usage
The library has a single class that provides static methods for loading, the methods recieve the paths of the shaders and return a shader program handle, the loader expects an existant OpenGL context, otherwise it will fail.

Any Error will throw a runtime_error exception with a message.

## Installtion
On Unix-based systems, it's easier to use Meson for installation, Windows users will have to compile and move the compiled files to a suitable location.

## Motivation
I've written shader loading code many times and just decided to create a loader instead !