Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members

irr::video::SMaterialLayer Class Reference

Struct for holding material parameters which exist per texture layer. More...

#include <SMaterialLayer.h>

List of all members.

Public Member Functions

const core::matrix4getTextureMatrix () const
 Gets the immutable texture transformation matrix.
core::matrix4getTextureMatrix ()
 Gets the texture transformation matrix.
bool operator!= (const SMaterialLayer &b) const
 Inequality operator.
SMaterialLayeroperator= (const SMaterialLayer &other)
 Assignment operator.
bool operator== (const SMaterialLayer &b) const
 Equality operator.
void setTextureMatrix (const core::matrix4 &mat)
 Sets the texture transformation matrix to mat.
 SMaterialLayer (const SMaterialLayer &other)
 Copy constructor.
 SMaterialLayer ()
 Default constructor.
 ~SMaterialLayer ()
 Destructor.

Public Attributes

bool AnisotropicFilter
 Is anisotropic filtering enabled? Default: false.
bool BilinearFilter
 Is bilinear filtering enabled? Default: true.
ITextureTexture
 Texture.
core::matrix4TextureMatrix
 Texture Matrix.
E_TEXTURE_CLAMP TextureWrap
 Texture Clamp Mode.
bool TrilinearFilter
 Is trilinear filtering enabled? Default: false.


Detailed Description

Struct for holding material parameters which exist per texture layer.

Definition at line 38 of file SMaterialLayer.h.


Constructor & Destructor Documentation

irr::video::SMaterialLayer::SMaterialLayer  )  [inline]
 

Default constructor.

Definition at line 42 of file SMaterialLayer.h.

irr::video::SMaterialLayer::SMaterialLayer const SMaterialLayer other  )  [inline]
 

Copy constructor.

Parameters:
other Material layer to copy from.

Definition at line 52 of file SMaterialLayer.h.

References TextureMatrix.

irr::video::SMaterialLayer::~SMaterialLayer  )  [inline]
 

Destructor.

Definition at line 60 of file SMaterialLayer.h.

References TextureMatrix.


Member Function Documentation

const core::matrix4& irr::video::SMaterialLayer::getTextureMatrix  )  const [inline]
 

Gets the immutable texture transformation matrix.

Returns:
Texture matrix of this layer.

Definition at line 133 of file SMaterialLayer.h.

References irr::core::IdentityMatrix, and TextureMatrix.

core::matrix4& irr::video::SMaterialLayer::getTextureMatrix  )  [inline]
 

Gets the texture transformation matrix.

Returns:
Texture matrix of this layer.

Definition at line 124 of file SMaterialLayer.h.

References irr::core::CMatrix4< T >::EM4CONST_IDENTITY, and TextureMatrix.

Referenced by irr::video::SMaterial::getTextureMatrix().

bool irr::video::SMaterialLayer::operator!= const SMaterialLayer b  )  const [inline]
 

Inequality operator.

Parameters:
b Layer to compare to.
Returns:
True if layers are different, else false.

Definition at line 154 of file SMaterialLayer.h.

References AnisotropicFilter, BilinearFilter, Texture, TextureMatrix, TextureWrap, and TrilinearFilter.

SMaterialLayer& irr::video::SMaterialLayer::operator= const SMaterialLayer other  )  [inline]
 

Assignment operator.

Parameters:
other Material layer to copy from.
Returns:
This material layer, updated.

Definition at line 68 of file SMaterialLayer.h.

References AnisotropicFilter, BilinearFilter, Texture, TextureMatrix, TextureWrap, and TrilinearFilter.

bool irr::video::SMaterialLayer::operator== const SMaterialLayer b  )  const [inline]
 

Equality operator.

Parameters:
b Layer to compare to.
Returns:
True if layers are equal, else false.

Definition at line 174 of file SMaterialLayer.h.

void irr::video::SMaterialLayer::setTextureMatrix const core::matrix4 mat  )  [inline]
 

Sets the texture transformation matrix to mat.

Parameters:
mat New texture matrix for this layer.

Definition at line 143 of file SMaterialLayer.h.

References TextureMatrix.

Referenced by irr::video::SMaterial::setTextureMatrix().


Member Data Documentation

bool irr::video::SMaterialLayer::AnisotropicFilter
 

Is anisotropic filtering enabled? Default: false.

In Irrlicht you can use anisotropic texture filtering in conjunction with bilinear or trilinear texture filtering to improve rendering results. Primitives will look less blurry with this flag switched on.

Definition at line 120 of file SMaterialLayer.h.

Referenced by irr::video::SMaterial::getFlag(), operator!=(), operator=(), and irr::video::SMaterial::setFlag().

bool irr::video::SMaterialLayer::BilinearFilter
 

Is bilinear filtering enabled? Default: true.

Definition at line 108 of file SMaterialLayer.h.

Referenced by irr::video::SMaterial::getFlag(), operator!=(), operator=(), and irr::video::SMaterial::setFlag().

ITexture* irr::video::SMaterialLayer::Texture
 

Texture.

Definition at line 97 of file SMaterialLayer.h.

Referenced by irr::video::SMaterial::getTexture(), operator!=(), operator=(), and irr::video::SMaterial::setTexture().

core::matrix4* irr::video::SMaterialLayer::TextureMatrix
 

Texture Matrix.

Do not access this element directly as the internal ressource management has to cope with Null pointers etc.

Definition at line 102 of file SMaterialLayer.h.

Referenced by getTextureMatrix(), operator!=(), operator=(), setTextureMatrix(), irr::video::SMaterial::SMaterial(), SMaterialLayer(), and ~SMaterialLayer().

E_TEXTURE_CLAMP irr::video::SMaterialLayer::TextureWrap
 

Texture Clamp Mode.

Definition at line 105 of file SMaterialLayer.h.

Referenced by irr::video::SMaterial::getFlag(), operator!=(), operator=(), and irr::video::SMaterial::setFlag().

bool irr::video::SMaterialLayer::TrilinearFilter
 

Is trilinear filtering enabled? Default: false.

If the trilinear filter flag is enabled, the bilinear filtering flag is ignored.

Definition at line 113 of file SMaterialLayer.h.

Referenced by irr::video::SMaterial::getFlag(), operator!=(), operator=(), and irr::video::SMaterial::setFlag().


The documentation for this class was generated from the following file:
The Irrlicht Engine
The Irrlicht Engine Documentation © 2003-2008 by Nikolaus Gebhardt. Generated on Sun Jun 1 07:59:24 2008 by Doxygen (1.4.2)