GPU Splatting  1.0
A deffered render that draws the surface of point cloud data.
Quad.h
1 #ifndef HEADER_Quad_CLASS
2 #define HEADER_Quad_CLASS
3 
4 //includes go here
5 #include <gl/glew.h>
6 
7 namespace GL {
8 
10  class Quad {
11  public:
12  Quad();
13 
14  virtual ~Quad();
15 
17  void init();
18 
20  void draw();
21 
23  bool isInitialized() const;
24 
26  void dispose();
27 
28  private:
29  GLuint vbo;
30  GLuint indicesBuffer;
31  GLuint uvBuffer;
32  GLuint vao;
33  bool initialized = false;
34  };
35 }
36 
37 #endif
A quadratic plane, centered at (0,0,0) with size 2, faceing z.
Definition: Quad.h:10
Definition: GLProgram.h:11
bool isInitialized() const
Returns true if the model is initialized and ready to draw.
Definition: Quad.cpp:102
void init()
Initializes the model, so it can be drawn.
Definition: Quad.cpp:14
void dispose()
Frees the ressources the model has accquired - only works if the model has been initialized.
Definition: Quad.cpp:106
void draw()
Draws the model - only works if the model has been initialized.
Definition: Quad.cpp:116