created double buffered textures

This commit is contained in:
itsmattkc
2019-08-27 23:45:18 +10:00
parent b9ce02a0ec
commit d76218924e
4 changed files with 114 additions and 53 deletions
+4
View File
@@ -47,11 +47,15 @@ public:
void Attach(RenderTexturePtr texture);
void AttachBackBuffer(RenderTexturePtr texture);
void Detach();
const GLuint& buffer() const;
private:
void AttachInternal(GLuint tex);
QOpenGLContext* context_;
GLuint buffer_;