Gem Illuminator
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
screenalignedquad.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <QOpenGLBuffer>
4 
5 class QOpenGLFunctions;
6 
11 {
12 public:
18 
23  void draw(QOpenGLFunctions &gl);
24 
25 protected:
30  static void strip(QOpenGLBuffer &vertices);
31 
32 private:
33  QOpenGLBuffer *m_vertices;
34 };
ScreenAlignedQuad()
Creates a new ScreenAlignedQuad.
Definition: screenalignedquad.cpp:8
~ScreenAlignedQuad()
Definition: screenalignedquad.cpp:16
static void strip(QOpenGLBuffer &vertices)
Writes vertices into given buffer.
Definition: screenalignedquad.cpp:30
The ScreenAlignedQuad class encapsulates the drawing of a screen aligned quad.
Definition: screenalignedquad.h:10
void draw(QOpenGLFunctions &gl)
Draws the ScreenAlignedQuad with bound shader program.
Definition: screenalignedquad.cpp:22