DeferredRenderer 1.0
|
00001 #ifndef SCREEN_QUAD_H 00002 #define SCREEN_QUAD_H 00003 00004 #include "ngl/Vector.h" 00005 #include "ngl/TransformStack.h" 00006 00014 class ScreenQuad 00015 { 00016 public: 00018 ScreenQuad(); 00019 00025 ScreenQuad(const float &_x, const float &_y, const float &_extent, const float &_depth); 00026 00028 ~ScreenQuad(); 00029 00030 void genVAO(); 00031 00035 void draw(const std::string &_shaderName, unsigned int &_vao); 00036 private: 00038 float m_x; 00040 float m_y; 00042 float m_extent; 00044 float m_depth; 00045 }; 00046 00047 #endif // ScreenQuad_H