media now plays in node graph

This commit is contained in:
itsmattkc
2019-08-04 19:45:06 +10:00
parent 298ae2f36c
commit f55094c5df
15 changed files with 484 additions and 229 deletions
+7 -1
View File
@@ -40,9 +40,11 @@ public:
~TextureBuffer();
bool IsCreated();
void Create(QOpenGLContext* ctx, const olive::PixelFormat& format, int width, int height);
void Create(QOpenGLContext* ctx, const olive::PixelFormat& format, int width, int height, void *data = nullptr);
void Destroy();
void Upload(void *data);
const GLuint& buffer() const;
const GLuint& texture() const;
@@ -55,6 +57,10 @@ private:
QOpenGLContext* ctx_;
GLuint buffer_;
GLuint texture_;
int width_;
int height_;
olive::PixelFormat format_;
};
#endif // FRAMEBUFFEROBJECT_H