class names to PascalCase

This commit is contained in:
2020-03-10 15:25:37 -04:00
parent d29fc033df
commit 63692ced17
8 changed files with 71 additions and 71 deletions

View File

@@ -11,22 +11,22 @@
#include <util.hpp>
namespace cgl {
class program {
class Program {
protected:
GLuint id{};
public:
program() {
Program() {
id = glCreateProgram();
}
program(program &) = delete;
Program(Program &) = delete;
program(program &&o) noexcept {
Program(Program &&o) noexcept {
id = std::exchange(o.id, 0);
};
~program() {
~Program() {
glDeleteProgram(id);
}
@@ -48,12 +48,12 @@ namespace cgl {
}
template<GLenum mode>
void attach(const shader<mode> &sh) {
void attach(const Shader<mode> &sh) {
glAttachShader(id, sh);
}
template<GLenum mode>
void detach(const shader<mode> &sh) {
void detach(const Shader<mode> &sh) {
glDetachShader(id, sh);
}