OpenGL::Texture2dOperation Class Reference

#include <Texture2dOperation.h>

Inheritance diagram for OpenGL::Texture2dOperation:

OpenGL::CgOperation List of all members.

Public Member Functions

 Texture2dOperation (unsigned int computationWidth, unsigned int computationHeight, CgProgram *interior, CgProgram *boundary, bool normalizedTexCoords=false)
 Texture2dOperation (unsigned int computationWidth, unsigned int computationHeight, CgProgram *interior, bool interiorOnly=false, bool normalizedTexCoords=false)

Private Member Functions

void executeInteriorProgram ()
void executeBoundaryProgram ()

Detailed Description

Texture2dOperation is a specialization of CgOperation for standard 2d texture operations which operate on a single rectangular texture. It draws a quad to compute the interior CgProgram. If the boundary is activated, it draws a frame surrounding the quad to compute the boundary CgProgram.


Constructor & Destructor Documentation

OpenGL::Texture2dOperation::Texture2dOperation unsigned int  computationWidth,
unsigned int  computationHeight,
CgProgram interior,
CgProgram boundary,
bool  normalizedTexCoords = false
 

Creates a Texture2dOperation with both interior and boundary CgProgram instances.

Parameters:
computationWidth the width of the computation domain.
computationHeight the height of the computation domain.
interior the CgProgram instance used for interior computations.
boundary the CgProgram instance used for boundary computations.
normalizedTexCoords whether normalized texture coordinates is used.

OpenGL::Texture2dOperation::Texture2dOperation unsigned int  computationWidth,
unsigned int  computationHeight,
CgProgram interior,
bool  interiorOnly = false,
bool  normalizedTexCoords = false
 

Creates a Texture2dOperation with only an interior CgProgram instance.

Parameters:
computationWidth the width of the computation domain.
computationHeight the height of the computation domain.
interior the CgProgram instance used for interior computations.
interiorOnly if false a quad filling the entire computation domain is drawn, otherwise the boundary frame is omitted.
normalizedTexCoords whether normalized texture coordinates is used.


Member Function Documentation

void OpenGL::Texture2dOperation::executeBoundaryProgram  )  [private, virtual]
 

Implementation of boundary CgProgram execution, must be supplied by concrete subclasses. Execution is initiated by drawing geometries.

Implements OpenGL::CgOperation.

void OpenGL::Texture2dOperation::executeInteriorProgram  )  [private, virtual]
 

Implementation of interior CgProgram execution, must be supplied by concrete subclasses. Execution is initiated by drawing geometries.

Implements OpenGL::CgOperation.


The documentation for this class was generated from the following files:
Generated on Fri Jun 16 08:42:53 2006 for GPU Thesis by  doxygen 1.4.6-NO