implement document resize with menu and dialog

This commit is contained in:
2018-10-05 18:10:26 +02:00
parent 4723bedc31
commit 5baa807cce
14 changed files with 245 additions and 15 deletions

View File

@@ -8,6 +8,7 @@ class RTT
GLuint fboID = 0;
GLuint rboID = 0;
GLuint texID = 0;
GLint int_fmt = 0;
int w = 0;
int h = 0;
@@ -16,6 +17,7 @@ public:
~RTT();
void destroy();
void resize(int width, int height);
bool create(int width, int height, int tex = -1, GLint internal_format = GL_RGBA8);
bool recreate() { return create(w, h); }
void clear(glm::vec4 color = glm::vec4(0));