Huge graphics overhaul

This commit is contained in:
NaifBanana
2026-08-20 08:14:29 -05:00
parent 960689ecb6
commit 3bad580793
19 changed files with 1534 additions and 252 deletions
+4 -1
View File
@@ -15,7 +15,7 @@ class OGLError : public Error<OGLError> {
using Base::Base;
enum Codes : unsigned int {
UNDEFINED, HANGING_OBJECT
UNDEFINED, HANGING_OBJECT, INVALID_OBJECT
};
static const std::string type;
@@ -26,6 +26,8 @@ class OpenGLObject {
public:
OpenGLObject(const OpenGLObject&) = delete;
OpenGLObject& operator=(const OpenGLObject&) = delete;
OpenGLObject(OpenGLObject&&);
OpenGLObject& operator=(OpenGLObject&&);
virtual ~OpenGLObject() {};
virtual void bind() const = 0;
@@ -33,6 +35,7 @@ class OpenGLObject {
GLuint id() const { return _id; }
protected:
using Codes = OGLError::Codes;
OpenGLObject() = default;
virtual GLuint declare() = 0;