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

ConstantTexture< T > Class Template Reference

A simple texture that returns a constant value. More...

#include <textures/ConstantTexture.h>

Inheritance diagram for ConstantTexture< T >:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 ConstantTexture (const T &_myval)
value (const Vector2 &tex2d, const Vector3 &tex3d, Context &context) const

Detailed Description

template<class T>
class ConstantTexture< T >

A simple texture that returns a constant value.


Member Function Documentation

template<class T>
T ConstantTexture< T >::value const Vector2 tex2d,
const Vector3 tex3d,
Context context
const [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.

Implements Texture< T >.


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