Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

GltViewport Class Reference
[GLT]

OpenGL Viewport Class. More...

#include <viewport.h>

List of all members.

Public Methods

 GltViewport (bool getIt=false)
 Constructor.

 GltViewport (const GltViewport &viewport)
 Copy constructor.

 GltViewport (const GLint x, const GLint y, const GLint width, const GLint height)
 Constructor.

 ~GltViewport ()
 Destructor.

bool valid () const
 Is the viewport a valid size?

void get ()
 Get the current OpenGL viewport.

void set () const
 Set the current OpenGL viewport.

void set (const GLint width, const GLint height)
 Set the current OpenGL viewport width and height.

void set (const GLint x, const GLint y, const GLint width, const GLint height)
 Set the current OpenGL viewport x, y, width and height.

GLint & x ()
 Left position of viewport.

GLint & y ()
 Right position of viewport.

GLint & width ()
 Width of viewport.

GLint & height ()
 Height of viewport.

const GLint & x () const
 Left position of viewport.

const GLint & y () const
 Right position of viewport.

const GLint & width () const
 Width of viewport.

const GLint & height () const
 Height of viewport.

const GLint pixels () const
 Viewport size, in pixels.

bool resize (const GLint width, const GLint height)
 Resize the viewport.

bool resize (const GLint x, const GLint y, const GLint width, const GLint height)
 Resize the viewport.

bool resize (const GltTexture &texture)
 Resize the viewport to fit a texture.

bool resize (const BoundingBox &box)
 Resize the viewport to fit an (image-space) bounding box.

bool align (const GltHorizontalAlignment &align, const GltViewport &window)
 Position viewport horizontally, relative to another viewport.

bool align (const GltVerticalAlignment &align, const GltViewport &window)
 Position viewport vetically, relative to another viewport.

bool shrink (const GLint w)
 Shrink a viewport by a particular margin (in pixels).

GltViewport & operator= (const GltViewport &viewport)
 Assignment operator.

bool operator== (const GltViewport &viewport) const
 Compare viewports.

bool operator!= (const GltViewport &viewport) const
 Compare viewports.

void drawQuad () const
 Draw a covering quad relative to viewport.

void drawLines () const
 Draw surrounding lines relative to viewport.


Detailed Description

OpenGL Viewport Class.

Convenient manipulation of viewport information.

Definition at line 83 of file viewport.h.


The documentation for this class was generated from the following files:
Generated on Tue Nov 5 11:11:47 2002 for GLT by doxygen1.2.18