OpenGL Namespace Reference


Classes

class  Camera
class  CgContext
class  CgOperation
class  CgProgram
class  Flat3dTextureOperation
class  Flat3dTextureSet
class  FpsCounter
class  IoTextureSet
class  OrthoNormalProjection
class  PrimaryTextureContainer
class  SecondaryTextureContainer
class  Texture2dOperation
class  TextureContainer
class  TextureContainerAction
class  ChannelSelector
class  TextureSelector
class  GridToggler
class  TextureDumper
class  TextureId

Functions

std::auto_ptr< Flat3dTextureOperationcreateFlat3dTextureOperation (const Flat3dTextureSet *textures, CgProgram *interior, Flat3dTextureOperation::OperationType operation, bool normalizedCoordinates)
std::auto_ptr< Flat3dTextureOperationcreateFlat3dTextureOperation (const Flat3dTextureSet *textures, CgProgram *interior, CgProgram *boundary, Flat3dTextureOperation::OperationType operation, bool normalizedCoordinates)
std::auto_ptr< CgProgramcreateFragmentProgram (const std::string &program, const std::string &entry, IoTextureSet *textures)
std::pair< unsigned int, unsigned
int > 
calculateLayoutDimensions (unsigned int computationWidth, unsigned int computationHeight, unsigned int computationDepth)
void displayMesh (const Geometry::Mesh &mesh)
void displayString (void *font, const std::string &str)
void displayString (void *font, const std::string &str, unsigned int maxWidth)
bool parseChannel (char ch, TextureContainer::Channel &channel)


Detailed Description

The OpenGL namespace


Function Documentation

std::pair< unsigned int, unsigned int > OpenGL::calculateLayoutDimensions unsigned int  computationWidth,
unsigned int  computationHeight,
unsigned int  computationDepth
 

Calculates optimal layout dimensions for a flat 3d texture. Chooses layouts which are as square-like as possible.

Parameters:
computationWidth the width of the computation domain.
computationHeight the height of the computation domain.
computationDepth the depth of the computation domain.
Returns:
the flat 3d texture layout dimensions.

std::auto_ptr< Flat3dTextureOperation > OpenGL::createFlat3dTextureOperation const Flat3dTextureSet *  textures,
CgProgram *  interior,
CgProgram *  boundary,
Flat3dTextureOperation::OperationType  operation,
bool  normalizedCoordinates = false
 

Creates a Flat3dTextureOperation instance.

Parameters:
textures the texture set used by the Flat3dTextureOperation instance.
interior the CgProgram used for interior computations.
boundary the CgProgram used for boundary computations.
operation the operation type of the Flat3dTextureOperation instance.
normalizedCoordinates whether normalized texture coordinates is used.
Returns:
an auto pointer to the created Flat3dTextureOperation instance.

std::auto_ptr< Flat3dTextureOperation > OpenGL::createFlat3dTextureOperation const Flat3dTextureSet *  textures,
CgProgram *  interior,
Flat3dTextureOperation::OperationType  operation,
bool  normalizedCoordinates = false
 

Creates a Flat3dTextureOperation instance.

Parameters:
textures the texture set used by the Flat3dTextureOperation instance.
interior the CgProgram used for interior computations.
operation the operation type of the Flat3dTextureOperation instance.
normalizedCoordinates whether normalized texture coordinates is used.
Returns:
an auto pointer to the created Flat3dTextureOperation instance.

std::auto_ptr< CgProgram > OpenGL::createFragmentProgram const std::string &  program,
const std::string &  entry,
IoTextureSet *  textures
 

Creates a fragment CgProgram instance based on a given function in the given Cg file. The Cg file is assumed located relative to the Cg program path retrieved by the CgContext instance.

Parameters:
program the name of the Cg file.
entry the name of the function in the Cg file.
textures the texture set used by the CgProgram.
Returns:
an auto pointer to the created CgProgram instance.

void OpenGL::displayMesh const Geometry::Mesh &  mesh  ) 
 

Renders the given mesh to the active display.

Parameters:
mesh the mesh to be rendered.

void OpenGL::displayString void *  font,
const std::string &  str,
unsigned int  maxWidth
 

Displays a string of a maximum pixel width to the current framebuffer position.

Parameters:
font the font to use.
str the string to be displayed.
maxWidth the max pixel width of the displayed string.

void OpenGL::displayString void *  font,
const std::string &  str
 

Displays a string to the current framebuffer position.

Parameters:
font the font to use.
str the string to be displayed.

bool OpenGL::parseChannel char  ch,
TextureContainer::Channel &  channel
 

Parses a character into a Channel enumerator. Valid character values are: 'r' -> RED, 'g' -> GREEN, 'b' -> BLUE, and 'a' -> ALPHA.

Parameters:
ch the character to parse.
channel the Channel enumerator to store the result.
Returns:
whether the parsing was successful.


Generated on Fri Jun 16 08:42:52 2006 for GPU Thesis by  doxygen 1.4.6-NO