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
- Host: GitHub
- URL: https://github.com/red1c3/gl-shader-loader
- Owner: Red1C3
- License: unlicense
- Created: 2022-10-08T19:39:37.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-13T22:27:56.000Z (over 3 years ago)
- Last Synced: 2025-06-05T19:47:26.846Z (about 1 year ago)
- Topics: loader, opengl, shaders
- Language: C++
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
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 !