3d7c2f65 |
# `glshader`
A C++11 helper for [OpenGL][] >=2.0 [shaders][Shader].
[OpenGL]: https://www.opengl.org
[Shader]: https://www.khronos.org/opengl/wiki/Shader
|
be00138c |
[`std::runtime_error`]: https://en.cppreference.com/w/cpp/error/runtime_error
[`what()`]: https://en.cppreference.com/w/cpp/error/exception/what
|
c80e256d |
## Tests
A test, using [GLFW][], is provided in [`test/`](test/) and can be run with
`make test` from the repository root.
[GLFW]: https://www.glfw.org/
|
be00138c |
## Dependencies
|
c80e256d |
The [OpenGL Extension Wrangler (GLEW)][] library is used for extension loading.
|
be00138c |
[`str.hpp`][] is bundled.
|
c80e256d |
Installing dependencies on a Linux distribution using the [APT package
manager][] can be done with:
```sh
// Library dependencies.
sudo apt-get install \
libgl1-mesa-dev \
libglew-dev
// Test dependencies.
sudo apt-get install \
libglfw3-dev
```
[OpenGL Extension Wrangler (GLEW)]: http://glew.sourceforge.net
|
be00138c |
[`str.hpp`]: https://git.rcrnstn.net/rcrnstn/str.hpp
|
c80e256d |
[APT package manager]: https://en.wikipedia.org/wiki/APT_(software)
|
d693de71 |
## License
Licensed under the [ISC license][], see the [`LICENSE`](LICENSE) file.
[ISC license]: https://en.wikipedia.org/wiki/ISC_license
|