Olive
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
framebufferobject.h
Go to the documentation of this file.
1 #ifndef FRAMEBUFFEROBJECT_H
2 #define FRAMEBUFFEROBJECT_H
3 
4 #include <QOpenGLContext>
5 
7 {
8 public:
11 
12  bool IsCreated();
13  void Create(QOpenGLContext* ctx, int width, int height);
14  void Destroy();
15 
16  const GLuint& buffer();
17  const GLuint& texture();
18 private:
19  QOpenGLContext* ctx_;
20  GLuint buffer_;
21  GLuint texture_;
22 };
23 
24 #endif // FRAMEBUFFEROBJECT_H
void Destroy()
Definition: framebufferobject.cpp:64
bool IsCreated()
Definition: framebufferobject.cpp:16
const GLuint & buffer()
Definition: framebufferobject.cpp:75
~FramebufferObject()
Definition: framebufferobject.cpp:11
FramebufferObject()
Definition: framebufferobject.cpp:5
GLuint buffer_
Definition: framebufferobject.h:20
QOpenGLContext * ctx_
Definition: framebufferobject.h:19
void Create(QOpenGLContext *ctx, int width, int height)
Definition: framebufferobject.cpp:21
const GLuint & texture()
Definition: framebufferobject.cpp:80
GLuint texture_
Definition: framebufferobject.h:21
Definition: framebufferobject.h:6