Irrlicht 3D Engine
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

Public Attributes

Friends


Detailed Description

Struct for holding material parameters which exist per texture layer.

Definition at line 48 of file SMaterialLayer.h.


Constructor & Destructor Documentation

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

Default constructor.

Definition at line 52 of file SMaterialLayer.h.

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

Copy constructor.

Parameters:
otherMaterial layer to copy from.

Definition at line 65 of file SMaterialLayer.h.

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

Member Function Documentation

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

Gets the texture transformation matrix.

Returns:
Texture matrix of this layer.

Definition at line 122 of file SMaterialLayer.h.

References irr::core::irrAllocator< T >::allocate(), irr::core::irrAllocator< T >::construct(), and irr::core::IdentityMatrix.

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

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

Gets the immutable texture transformation matrix.

Returns:
Texture matrix of this layer.

Definition at line 134 of file SMaterialLayer.h.

References irr::core::IdentityMatrix.

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

Inequality operator.

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

Definition at line 158 of file SMaterialLayer.h.

References AnisotropicFilter, BilinearFilter, LODBias, Texture, TextureWrapU, TextureWrapV, and TrilinearFilter.

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

Equality operator.

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

Definition at line 180 of file SMaterialLayer.h.

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

Sets the texture transformation matrix to mat.

Parameters:
matNew texture matrix for this layer.

Definition at line 144 of file SMaterialLayer.h.

References irr::core::irrAllocator< T >::allocate(), and irr::core::irrAllocator< T >::construct().

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


Friends And Related Function Documentation

friend class SMaterial [friend]

Definition at line 216 of file SMaterialLayer.h.


Member Data Documentation

Is anisotropic filtering enabled? Default: 0, disabled.

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. The number gives the maximal anisotropy degree, and is often in the range 2-16. Value 1 is equivalent to 0, but should be avoided.

Definition at line 206 of file SMaterialLayer.h.

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

Is bilinear filtering enabled? Default: true.

Definition at line 192 of file SMaterialLayer.h.

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

Bias for the mipmap choosing decision.

This value can make the textures more or less blurry than with the default value of 0. The value (divided by 8.f) is added to the mipmap level chosen initially, and thus takes a smaller mipmap for a region if the value is positive.

Definition at line 213 of file SMaterialLayer.h.

Referenced by operator!=(), and operator=().

Is trilinear filtering enabled? Default: false.

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

Definition at line 197 of file SMaterialLayer.h.

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


The documentation for this class was generated from the following file: