|
ProjectedTextures
Prototype software for spacial augmented reality applications.
|
#include <ViewportSquare.h>
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 |
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.
| ViewportSquare::ViewportSquare | ( | ) |
| ViewportSquare::~ViewportSquare | ( | void | ) |
|
protected |
| void ViewportSquare::draw | ( | QOpenGLShaderProgram * | prog) |
draws the square. needs a shader with a "uniform sampler2D colormap"
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
1.8.4