1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#pragma once #include "shader.h" #include <glad/glad.h> namespace gfx { class Program { GLuint _program_id; public: Program(); Program(const Program&& other) = delete; Program(Program&& other); ~Program(); void attach(Shader& shader); void link(); void use(); GLuint program_id(); }; }