#include <TextureAttribute.h>
Inheritance diagram for nvsg::TextureAttributeItem:
Public Methods | |
virtual NVSG_API const TextureAttributeItem * | clone (void) const |
Create a TextureAttributeItem by cloning an other. More... | |
virtual NVSG_API bool | isDataShared (void) const |
Determine whether the data of this object is shared. More... | |
virtual NVSG_API DataID | getDataID (void) const |
Get the DataID of the data of this object. More... | |
NVSG_API void | setFileName (const std::string &fname) |
Set texture file name. More... | |
NVSG_API const std::string & | getFileName (void) const |
Get texture file name. More... | |
NVSG_API const Texture * | getTexture (void) const |
Get texture. More... | |
NVSG_API void | setTexture (const Texture *p) const |
Set texture. More... | |
NVSG_API void | setBorderColor (const nvmath::Vec4f &color) |
Sets the texture border color. More... | |
NVSG_API const nvmath::Vec4f & | getBorderColor (void) const |
Gets the texture border color. More... | |
NVSG_API TextureEnvMode | getEnvMode (void) const |
Get texture environment mode. More... | |
NVSG_API void | setEnvMode (TextureEnvMode mode) |
Set texture environment mode. More... | |
NVSG_API void | setMagFilterMode (TextureMagFilterMode mode) |
Set the texture magnification filter mode. More... | |
NVSG_API TextureMagFilterMode | getMagFilterMode (void) const |
Get the texture magnification filter mode. More... | |
NVSG_API void | setMinFilterMode (TextureMinFilterMode mode) |
Set the texture minification filter mode. More... | |
NVSG_API TextureMinFilterMode | getMinFilterMode (void) const |
Get the texture minification filter mode. More... | |
NVSG_API TextureWrapMode | getWrapMode (TexCoordAxis target) const |
Get the texture wrap mode. More... | |
NVSG_API void | setWrapMode (TexCoordAxis target, TextureWrapMode mode) |
Set the texture wrap mode. More... | |
NVSG_API TextureType | getType (void) const |
Get texture type. More... | |
NVSG_API void | setType (TextureType tt) |
Set texture type. More... | |
NVSG_API nvmath::Mat44f | getMatrix (void) const |
Get texture matrix. More... | |
NVSG_API const nvmath::Quatf & | getOrientation (void) const |
Get orientation. More... | |
NVSG_API void | setOrientation (const nvmath::Quatf &orientation) |
Set orientation. More... | |
NVSG_API const nvmath::Vec3f & | getScaling (void) const |
Get scaling. More... | |
NVSG_API void | setScaling (const nvmath::Vec3f &scale) |
Set scaling. More... | |
NVSG_API const nvmath::Vec3f & | getTranslation (void) const |
Get translation. More... | |
NVSG_API void | setTranslation (const nvmath::Vec3f &trans) |
Set translation. More... | |
NVSG_API bool | isLookupRequired (void) const |
Determine if a texture lookup is required with the very next rendering step. More... | |
NVSG_API void | setTexGenEnvironmentMapping (bool sAxis=true, bool tAxis=true) |
Set the texture coordinate generation of the s- and t-axis to TGM_SPHERE_MAP. More... | |
NVSG_API void | setTexGenLinearMapping (TexCoordAxis axis, TexGenLinearMode mode, const nvmath::Plane3f &plane) |
Set the texture coordinate generation of axis to object or eye linear. More... | |
NVSG_API void | disableTexGen (TexCoordAxis axis) |
Disable the texture coordinate generation of axis. More... | |
NVSG_API TexGenMode | getTexGenMode (TexCoordAxis axis) const |
Get the texture coordinate generation mode. More... | |
NVSG_API const nvmath::Plane3f & | getTexGenPlane (TexCoordAxis axis) const |
Get the base plane for linear texture coordinate generation. More... | |
Static Public Methods | |
NVSG_API const TextureAttributeItem * | create (void) |
Create a TextureAttributeItem. More... | |
NVSG_API const TextureAttributeItem * | createFromBase (const Object &rhs) |
Create a TextureAttributeItem by copying from an Object. More... | |
Protected Methods | |
NVSG_API | TextureAttributeItem (void) |
Default constructor. More... | |
NVSG_API | TextureAttributeItem (const Object &rhs) |
Partial Constructor. More... | |
NVSG_API | TextureAttributeItem (const TextureAttributeItem &rhs) |
Copy constructor. More... | |
virtual NVSG_API | ~TextureAttributeItem () |
Friends | |
class | TextureAttribute |
This class serves as an abstract layer for a single texture object. The use of a TextureAttributeItem
is meaningful only in conjunction with a TextureAttribute
, which provides an interface to bind a TextureAttributeItem
to a specified texture unit.
|
Default constructor.
|
|
Partial Constructor.
|
|
Copy constructor.
|
|
Create a TextureAttributeItem.
|
|
Create a TextureAttributeItem by copying from an Object.
|
|
Create a TextureAttributeItem by cloning an other.
|
|
Determine whether the data of this object is shared.
Reimplemented from nvsg::Object. |
|
Get the DataID of the data of this object.
Reimplemented from nvsg::Object. |
|
Set texture file name. Use this to specify the name of the image file from which to load the texture
|
|
Get texture file name.
|
|
Get texture.
|
|
Set texture. This is used to attach the device dependent texture object to this texture attribute item.
|
|
Sets the texture border color.
|
|
Gets the texture border color.
|
|
Get texture environment mode.
|
|
Set texture environment mode. Use this to specify the texture environment mode to be used with rasterizing.
|
|
Set the texture magnification filter mode. The texture magnification function is used when the pixel being textured maps to an area less than or equal to one texture element. It sets the texture magnification function to either TFM_MAG_NEAREST or TFM_MAG_BILINEAR.
|
|
Get the texture magnification filter mode.
|
|
Set the texture minification filter mode. The texture minifying function is used whenever the pixel being textured maps to an area greater than one texture element. There are three defined minifying functions. TFM_MIN_NEAREST uses the nearest texture element to compute the texture value. TFM_MIN_BILINEAR uses the nearest four texture elements. TFM_MIN_TRILINEAR uses mipmaps.
|
|
Get the texture minification filter mode.
|
|
Get the texture wrap mode. The texture wrap mode can be either TWM_REPEAT (default), TWM_CLAMP, or TWM_MIRROR. Each of the up to three texture dimensions may have it's own wrap mode.
|
|
Set the texture wrap mode. The texture wrap mode can be set independently for each of up to three texture dimensions to either TWM_REPEAT (default), TWM_CLAMP or TWM_MIRROR.
|
|
Get texture type.
|
|
Set texture type. Use this to specify the texture type.
|
|
Get texture matrix. The texture matrix is composed of the cropping and the rotation matrix.
|
|
Get orientation. Get the rotation part of the texture transformation.
|
|
Set orientation. Sets the orientation of the texture transformation.
|
|
Get scaling. Get the scaling part of the texture transformation.
|
|
Set scaling. Sets the scaling of the texture transformation.
|
|
Get translation. Get the translation part of the texture transformation.
|
|
Set translation. Sets the translation of the texture transformation.
|
|
Determine if a texture lookup is required with the very next rendering step.
|
|
Set the texture coordinate generation of the s- and t-axis to TGM_SPHERE_MAP.
|
|
Set the texture coordinate generation of axis to object or eye linear.
|
|
Disable the texture coordinate generation of axis.
|
|
Get the texture coordinate generation mode.
|
|
Get the base plane for linear texture coordinate generation.
|