Huge graphics overhaul
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user