split fbo and texture into two separate objects

This commit is contained in:
itsmattkc
2019-08-27 15:36:13 +10:00
parent 46ea071b99
commit 4b5516abb5
14 changed files with 459 additions and 271 deletions
+3 -4
View File
@@ -25,9 +25,8 @@
#include <QOffscreenSurface>
#include <QOpenGLContext>
#include "render/renderframebuffer.h"
#include "render/rendermodes.h"
#include "render/rendertypes.h"
#include "render/texturebuffer.h"
/**
* @brief An object containing all resources necessary for each thread to support hardware accelerated rendering
@@ -50,14 +49,14 @@ public:
bool IsStarted();
TextureBuffer* buffer();
RenderFramebuffer* buffer();
private:
QOpenGLContext ctx_;
QOffscreenSurface surface_;
TextureBuffer buffer_;
RenderFramebuffer buffer_;
int width_;