Texture Class Reference

#include <Texture.h>

Inherited by Texture2D.

Inheritance diagram for Texture:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Texture ()
virtual ~Texture ()
Mode wrapMode () const
void setWrapMode (Mode mode)
InterpolationMode interpolationMode () const
void setInterpolationMode (InterpolationMode mode)
virtual RGBAColor texel (float u, float v) const=0
RGBAColor texel (const TexCoordinate &uv) const
virtual int resX () const=0
virtual int resY () const=0

Protected Attributes

Mode mMode
 current mode used to handle texture coordinates
InterpolationMode mInterpolationMode
 current used interpolation mode

Detailed Description

Abstract base class representing a texture

Author:
Christian Engels

Definition at line 32 of file Texture.h.


Constructor & Destructor Documentation

Texture::Texture (  )  [inline]

Create empy texture object

Definition at line 37 of file Texture.h.

virtual Texture::~Texture (  )  [inline, virtual]

Release used data

Definition at line 45 of file Texture.h.


Member Function Documentation

Mode Texture::wrapMode (  )  const [inline]

Get current texture mode

Definition at line 51 of file Texture.h.

References mMode.

Referenced by Texture2D::wrappedTexel().

void Texture::setWrapMode ( Mode  mode  )  [inline]

Set current texture mode

Definition at line 58 of file Texture.h.

References mMode.

Referenced by Texture2DFactory::create().

InterpolationMode Texture::interpolationMode (  )  const [inline]

Get interpolation mode

Definition at line 65 of file Texture.h.

References mInterpolationMode.

Referenced by Texture2D::texel().

void Texture::setInterpolationMode ( InterpolationMode  mode  )  [inline]

Set interpolation mode

Definition at line 72 of file Texture.h.

References mInterpolationMode.

Referenced by Texture2DFactory::create().

virtual RGBAColor Texture::texel ( float  u,
float  v 
) const [pure virtual]

Get texel on certain position. Here the correct wrapping mode should be used (based on wrapMode() method). Interpolate texels if required. (based on interpolationMode() method)

Implemented in Texture2D.

Referenced by Shader::normal(), and texel().

RGBAColor Texture::texel ( const TexCoordinate uv  )  const [inline]

Definition at line 81 of file Texture.h.

References texel(), TexCoordinate::x(), and TexCoordinate::y().

virtual int Texture::resX (  )  const [pure virtual]

get the x resolution for the texture

Implemented in Texture2D.

Referenced by Shader::normal().

virtual int Texture::resY (  )  const [pure virtual]

get the y resolution for the texture

Implemented in Texture2D.

Referenced by Shader::normal().


Member Data Documentation

Mode Texture::mMode [protected]

current mode used to handle texture coordinates

Definition at line 96 of file Texture.h.

Referenced by setWrapMode(), and wrapMode().

InterpolationMode Texture::mInterpolationMode [protected]

current used interpolation mode

Definition at line 99 of file Texture.h.

Referenced by interpolationMode(), and setInterpolationMode().


The documentation for this class was generated from the following file:
Generated on Fri Feb 1 00:02:31 2008 for Grayfall by  doxygen 1.5.1