Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

Texture< T > Class Template Reference

A templated base class for Texture plugins. More...

#include <core/Texture.h>

Inheritance diagram for Texture< T >:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual T value (const Vector2 &tex2d, const Vector3 &tex3d, Context &context) const =0

Detailed Description

template<class T>
class Texture< T >

A templated base class for Texture plugins.

Textures are templated on return type. Currently there are two predfined Texture types: RGBTexture and FloatTexture. More types can be typedef'ed as appropriate.


Member Function Documentation

template<class T>
virtual T Texture< T >::value const Vector2 tex2d,
const Vector3 tex3d,
Context context
const [pure virtual]
 

Lookup the value from a Texture.

Parameters:
[in] tex2d A 2D texture coordinate.
[in] tex3d A 3D texture coordinate.
[in] context The rendering context.
Returns:
The value of the texture for the given coordinates.

Implemented in ConstantTexture< T >, ImageTexture, and SpectralTexture.


The documentation for this class was generated from the following file:
Generated on Wed Jul 20 16:15:29 2005 for galileo by  doxygen 1.4.3