Main Page | Class Hierarchy | Class List | Directories | File List

ViewportGL Class Reference

An interface to the OpenGL viewport. More...

#include <ApiGraphics/ViewportGL.h>

List of all members.

Public Member Functions

 ViewportGL (int x, int y, int w, int h)
void getGL ()
void setGL () const
ViewportGL subViewport (int wSub, int hSub)
ViewportGL subViewport (int margin, float ratio)
ViewportGL subViewport (int margin)
ViewportGL subViewport (ViewportGL relativeView) const
ViewportGL relativeViewport (ViewportGL view) const
void setUnitSquare (ViewportGL subView) const
void pushScreenMatrices () const
void popScreenMatrices () const
void drawScreenQuad (bool filled=true, float z=0) const
float ratio () const
QDomElement domElement (const QString &name, QDomDocument &document) const
void initFromDOMElement (const QDomElement &element)

Static Public Member Functions

static void pushFrame2D (float xmin, float xmax, float ymin, float ymax)
static void popFrame2D ()
static void push ()
static void pop ()

Public Attributes

int x
int y
int w
int h


Detailed Description

An interface to the OpenGL viewport.

It allows to easily set or get the current viewport and provides handful methods.


The documentation for this class was generated from the following files:
Generated on Fri Nov 14 20:49:48 2008 for Api Graphics by  doxygen 1.4.4