Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
screenquad.h
1 #pragma once
2 
3 #include <glow/ref_ptr.h>
4 
5 #include "etc/contextdependant.h"
6 
7 
8 namespace glow {
9  class VertexArrayObject;
10  class Buffer;
11 }
12 
13 class Camera;
14 
15 class ScreenQuad : public ContextDependant {
16 public:
17  static const int VERTEX_ATTRIBUTE_LOCATION = 0;
18 
19  ScreenQuad();
20 
21  void draw();
22 
23 
24 protected:
25  glow::ref_ptr<glow::VertexArrayObject> m_vertexArrayObject;
26  glow::ref_ptr<glow::Buffer> m_vertexBuffer;
27 
28  void initialize();
29  void beforeContextDestroy() override;
30  void afterContextRebuild() override;
31 };
32 
Definition: contextdependant.h:7
Definition: camera.h:10
Definition: screenquad.h:15