GlobeEngine
RenderBufferObject.h
Go to the documentation of this file.
1 
9 #ifndef GlobeEngine_RenderBufferObject_h
10 #define GlobeEngine_RenderBufferObject_h
11 
12 #include "OpenGL_Includes.h"
13 #include <string>
14 
15 namespace ge {
17  {
18  public:
21 
22  void clear();
23  void create();
24  void bind();
25  void release();
26  GLint getWidth();
27  GLint getHeight();
28  GLuint getID();
29  void createStorage(GLenum _internalformat, GLsizei _width, GLsizei _height);
30  void assign(GLenum _attachement);
31  private:
32  void getOpenGLError(std::string _input);
33 
34  /* ID */
35  GLuint rboId;
36 
37  /* size */
38  GLsizei width;
39  GLsizei height;
40 
41  };
42 }
43 #endif
GLint getHeight()
Definition: RenderBufferObject.cpp:72
void createStorage(GLenum _internalformat, GLsizei _width, GLsizei _height)
Definition: RenderBufferObject.cpp:36
void assign(GLenum _attachement)
Definition: RenderBufferObject.cpp:46
void release()
Definition: RenderBufferObject.cpp:57
Definition: RenderBufferObject.h:16
void bind()
Definition: RenderBufferObject.cpp:52
GLuint getID()
Definition: RenderBufferObject.cpp:62
Definition: AvalancheTrainingSimulationEngine.h:28
RenderBufferObject()
Definition: RenderBufferObject.cpp:11
GLint getWidth()
Definition: RenderBufferObject.cpp:67
void clear()
Definition: RenderBufferObject.cpp:23
void create()
Definition: RenderBufferObject.cpp:28
~RenderBufferObject()
Definition: RenderBufferObject.cpp:18