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

ImageTexture Class Reference

An Image based Texture that uses a 2D parameterization. More...

#include <textures/ImageTexture.h>

Inheritance diagram for ImageTexture:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 ImageTexture (const Image *_image)
rgb value (const Vector2 &tex2d, const Vector3 &tex3d, Context &context) const

Detailed Description

An Image based Texture that uses a 2D parameterization.

ImageTexture takes a pointer to an Image, which allows it to take advantage of any ImageIO plugins that are available.


Member Function Documentation

rgb ImageTexture::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< rgb >.


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