GpuThesis::Test::GpuTest Class Reference

#include <GpuTest.h>

Inheritance diagram for GpuThesis::Test::GpuTest:

GpuThesis::Runnable List of all members.

Public Member Functions

std::auto_ptr< TestResultContainerrunTest ()
TestResultevaluate (const TextureMapping &m, float timestep) const
OpenGL::IoTextureSetgetIoTextureSet () const

Protected Member Functions

void setExpectedOutput (unsigned int textureId, const ColorMap &colorMap, float timestep)
void setIoTextureSet (OpenGL::IoTextureSet *textures)

Detailed Description

GpuTest is a base class for Gpu operation tests.


Member Function Documentation

TestResult * GpuThesis::Test::GpuTest::evaluate const TextureMapping &  m,
float  timestep
const
 

Evaluate the given texture mapping. Compares the texture mapping to the actual texture to see if they correspond.

Parameters:
m the texture mapping.
timestep the timestep.
Returns:
the TestResult.

OpenGL::IoTextureSet * GpuThesis::Test::GpuTest::getIoTextureSet  )  const
 

Get the test's IoTextureSet.

Returns:
the test's IoTextureSet.

std::auto_ptr< TestResultContainer > GpuThesis::Test::GpuTest::runTest  ) 
 

Runs the test, returning a TestResultContainer.

Returns:
a TestResultContainer with the test result.

void GpuThesis::Test::GpuTest::setExpectedOutput unsigned int  textureId,
const ColorMap &  colorMap,
float  timestep
[protected]
 

Set the expected output of the given texture after running with the given timestep. Used by subclasses.

Parameters:
textureId the identifier of the texture.
colorMap the expected output.
timestep the timestep to run to get the expected output.

void GpuThesis::Test::GpuTest::setIoTextureSet OpenGL::IoTextureSet textures  )  [protected]
 

Called by subclasses to set the IoTextureSet.

Parameters:
textures the IoTextureSet.


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