break render apart into multiple files

This commit is contained in:
2020-03-10 14:11:13 -04:00
parent b504e5b7c3
commit d29fc033df
10 changed files with 452 additions and 487 deletions

28
vis/include/cgl/error.hpp Normal file
View File

@@ -0,0 +1,28 @@
#pragma once
#include <stdexcept>
#include <glad/glad.h>
namespace cgl {
class gl_error : public std::domain_error {
public:
explicit gl_error(const std::string &arg) : domain_error(arg) {}
explicit gl_error(const char *string) : domain_error(string) {}
};
class shader_error : public gl_error {
public:
explicit shader_error(const std::string &arg) : gl_error(arg) {}
explicit shader_error(const char *string) : gl_error(string) {}
};
class program_error : public gl_error {
public:
explicit program_error(const std::string &arg) : gl_error(arg) {}
explicit program_error(const char *string) : gl_error(string) {}
};
}