load wireframes from files

This commit is contained in:
2020-03-18 17:41:59 -04:00
parent 33501650b2
commit 2606f74f70
3 changed files with 82 additions and 3 deletions

View File

@@ -11,7 +11,7 @@
#include <util.hpp>
namespace cgl{
namespace cgl {
class pipeline {
protected:
GLuint id{};
@@ -49,6 +49,11 @@ namespace cgl{
return std::string(buffer);
}
pipeline &unstage(GLenum stage_bits) {
glUseProgramStages(id, stage_bits, 0);
return *this;
}
pipeline &stage(const ShaderProgram<GL_VERTEX_SHADER> &pgm) {
glUseProgramStages(id, GL_VERTEX_SHADER_BIT, pgm);
return *this;