ProjectedTextures
Prototype software for spacial augmented reality applications.
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ViewportSquare Class Reference

#include <ViewportSquare.h>

Inheritance diagram for ViewportSquare:

Public Member Functions

 ViewportSquare ()
 
 ~ViewportSquare (void)
 
void draw (QOpenGLShaderProgram *prog)
 

Protected Member Functions

void createBuffers ()
 

Protected Attributes

bool valid
 
QVector< QVector3D > positions
 
QVector< GLuint > indices
 
QOpenGLVertexArrayObject vao
 
QOpenGLBuffer positionBuffer
 
QOpenGLBuffer indexBuffer
 

Detailed Description

Merely a viewport filling square that can be drawn. Only fills the viewport when drawn in viewport space, obviously. Can be used for drawing full screen textures, such as camera frames, to be more specific. can draw itself.

Constructor & Destructor Documentation

ViewportSquare::ViewportSquare ( )
ViewportSquare::~ViewportSquare ( void  )

Member Function Documentation

void ViewportSquare::createBuffers ( )
protected
void ViewportSquare::draw ( QOpenGLShaderProgram *  prog)

draws the square. needs a shader with a "uniform sampler2D colormap"

Member Data Documentation

QOpenGLBuffer ViewportSquare::indexBuffer
protected
QVector<GLuint> ViewportSquare::indices
protected
QOpenGLBuffer ViewportSquare::positionBuffer
protected
QVector<QVector3D> ViewportSquare::positions
protected
bool ViewportSquare::valid
protected
QOpenGLVertexArrayObject ViewportSquare::vao
protected

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