media now plays in node graph
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user