Gem Illuminator
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
Public Member Functions | Static Protected Member Functions | List of all members
ScreenAlignedQuad Class Reference

The ScreenAlignedQuad class encapsulates the drawing of a screen aligned quad. More...

#include <screenalignedquad.h>

Public Member Functions

 ScreenAlignedQuad ()
 Creates a new ScreenAlignedQuad. More...
 
 ~ScreenAlignedQuad ()
 
void draw (QOpenGLFunctions &gl)
 Draws the ScreenAlignedQuad with bound shader program. More...
 

Static Protected Member Functions

static void strip (QOpenGLBuffer &vertices)
 Writes vertices into given buffer. More...
 

Detailed Description

The ScreenAlignedQuad class encapsulates the drawing of a screen aligned quad.

Constructor & Destructor Documentation

ScreenAlignedQuad::ScreenAlignedQuad ( )

Creates a new ScreenAlignedQuad.

ScreenAlignedQuad::~ScreenAlignedQuad ( )

Member Function Documentation

void ScreenAlignedQuad::draw ( QOpenGLFunctions &  gl)

Draws the ScreenAlignedQuad with bound shader program.

Parameters
glQOpenGLFunctions that are used to do gl-calls
void ScreenAlignedQuad::strip ( QOpenGLBuffer &  vertices)
staticprotected

Writes vertices into given buffer.

Parameters
verticesThe buffer into which the vertices are written

The documentation for this class was generated from the following files: