arsa
2.7
|
Struct for holding material parameters which exist per texture layer. More...
#include <SMaterialLayer.h>
Public Member Functions | |
SMaterialLayer () | |
Default constructor. More... | |
SMaterialLayer (const SMaterialLayer &other) | |
Copy constructor. More... | |
~SMaterialLayer () | |
Destructor. More... | |
SMaterialLayer & | operator= (const SMaterialLayer &other) |
Assignment operator. More... | |
core::matrix4 & | getTextureMatrix () |
Gets the texture transformation matrix. More... | |
const core::matrix4 & | getTextureMatrix () const |
Gets the immutable texture transformation matrix. More... | |
void | setTextureMatrix (const core::matrix4 &mat) |
Sets the texture transformation matrix to mat. More... | |
bool | operator!= (const SMaterialLayer &b) const |
Inequality operator. More... | |
bool | operator== (const SMaterialLayer &b) const |
Equality operator. More... | |
Public Attributes | |
ITexture * | Texture |
Texture. More... | |
u8 | TextureWrapU:4 |
Texture Clamp Mode. More... | |
u8 | TextureWrapV:4 |
u8 | TextureWrapW:4 |
bool | BilinearFilter:1 |
Is bilinear filtering enabled? Default: true. More... | |
bool | TrilinearFilter:1 |
Is trilinear filtering enabled? Default: false. More... | |
u8 | AnisotropicFilter |
Is anisotropic filtering enabled? Default: 0, disabled. More... | |
s8 | LODBias |
Bias for the mipmap choosing decision. More... | |
Friends | |
class | SMaterial |
Struct for holding material parameters which exist per texture layer.
Definition at line 49 of file SMaterialLayer.h.
|
inline |
Default constructor.
Definition at line 53 of file SMaterialLayer.h.
|
inline |
Copy constructor.
other | Material layer to copy from. |
Definition at line 60 of file SMaterialLayer.h.
|
inline |
Destructor.
Definition at line 68 of file SMaterialLayer.h.
|
inline |
Gets the texture transformation matrix.
Definition at line 121 of file SMaterialLayer.h.
|
inline |
Gets the immutable texture transformation matrix.
Definition at line 133 of file SMaterialLayer.h.
|
inline |
Inequality operator.
b | Layer to compare to. |
Definition at line 159 of file SMaterialLayer.h.
|
inline |
Assignment operator.
other | Material layer to copy from. |
Definition at line 80 of file SMaterialLayer.h.
|
inline |
Equality operator.
b | Layer to compare to. |
Definition at line 181 of file SMaterialLayer.h.
|
inline |
Sets the texture transformation matrix to mat.
NOTE: Pipelines can ignore this matrix when the texture is 0.
mat | New texture matrix for this layer. |
Definition at line 145 of file SMaterialLayer.h.
|
friend |
Definition at line 218 of file SMaterialLayer.h.
u8 irr::video::SMaterialLayer::AnisotropicFilter |
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 208 of file SMaterialLayer.h.
bool irr::video::SMaterialLayer::BilinearFilter |
Is bilinear filtering enabled? Default: true.
Definition at line 194 of file SMaterialLayer.h.
s8 irr::video::SMaterialLayer::LODBias |
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 215 of file SMaterialLayer.h.
ITexture* irr::video::SMaterialLayer::Texture |
Texture.
Definition at line 185 of file SMaterialLayer.h.
u8 irr::video::SMaterialLayer::TextureWrapU |
Texture Clamp Mode.
Values are taken from E_TEXTURE_CLAMP.
Definition at line 189 of file SMaterialLayer.h.
u8 irr::video::SMaterialLayer::TextureWrapV |
Definition at line 190 of file SMaterialLayer.h.
u8 irr::video::SMaterialLayer::TextureWrapW |
Definition at line 191 of file SMaterialLayer.h.
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 199 of file SMaterialLayer.h.