#include <Texture.h>
Inherited by Texture2D.
Inheritance diagram for Texture:
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 |
Definition at line 32 of file Texture.h.
virtual Texture::~Texture | ( | ) | [inline, virtual] |
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] |
virtual int Texture::resY | ( | ) | const [pure virtual] |
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().