minor render thread refactor

This commit is contained in:
itsmattkc
2019-03-03 12:17:55 -08:00
parent 2b406d71f2
commit 7af3a0cd6e
6 changed files with 173 additions and 134 deletions
+24
View File
@@ -0,0 +1,24 @@
#ifndef FRAMEBUFFEROBJECT_H
#define FRAMEBUFFEROBJECT_H
#include <QOpenGLContext>
class FramebufferObject
{
public:
FramebufferObject();
~FramebufferObject();
bool IsCreated();
void Create(QOpenGLContext* ctx, int width, int height);
void Destroy();
const GLuint& buffer();
const GLuint& texture();
private:
QOpenGLContext* ctx_;
GLuint buffer_;
GLuint texture_;
};
#endif // FRAMEBUFFEROBJECT_H