C++ Shader class
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
include/Shader
src
test
Include.mk
Makefile
README.md
buildinfo

README.md

A simple OpenGL shader library

requires my Common C++ library found here

example:

std::vector<Shader::Shader> shaders = {
	Shader::VertexShader(vertexShaderCode),
	Shader::FragmentShader(fragmentShaderCode)
};
program = std::make_shared<Shader::Program>(shaders);
program->link()
	.setUniform<int>("texSampler", 0)
	.setUniform<float>("alpha", .5)
	.done();

...

program->use();

program->done();