mirror of
https://github.com/allemangD/toddcox-visualize.git
synced 2025-11-10 12:02:47 -05:00
load wireframes from files
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user