arsa  2.7
Public Member Functions | Public Attributes | List of all members
irr::video::SMaterial Class Reference

Struct for holding parameters for a material renderer. More...

#include <SMaterial.h>

Public Member Functions

 SMaterial ()
 Default constructor. Creates a solid, lit material with white colors. More...
 
 SMaterial (const SMaterial &other)
 Copy constructor. More...
 
SMaterialoperator= (const SMaterial &other)
 Assignment operator. More...
 
core::matrix4getTextureMatrix (u32 i)
 Gets the texture transformation matrix for level i. More...
 
const core::matrix4getTextureMatrix (u32 i) const
 Gets the immutable texture transformation matrix for level i. More...
 
void setTextureMatrix (u32 i, const core::matrix4 &mat)
 Sets the i-th texture transformation matrix. More...
 
ITexturegetTexture (u32 i) const
 Gets the i-th texture. More...
 
void setTexture (u32 i, ITexture *tex)
 Sets the i-th texture. More...
 
void setFlag (E_MATERIAL_FLAG flag, bool value)
 Sets the Material flag to the given value. More...
 
bool getFlag (E_MATERIAL_FLAG flag) const
 Gets the Material flag. More...
 
bool operator!= (const SMaterial &b) const
 Inequality operator. More...
 
bool operator== (const SMaterial &b) const
 Equality operator. More...
 
bool isAlphaBlendOperation () const
 Check if material needs alpha blending. More...
 
bool isTransparent () const
 

Public Attributes

SMaterialLayer TextureLayer [MATERIAL_MAX_TEXTURES]
 Texture layer array. More...
 
E_MATERIAL_TYPE MaterialType
 Type of the material. Specifies how everything is blended together. More...
 
SColor AmbientColor
 How much ambient light (a global light) is reflected by this material. More...
 
SColor DiffuseColor
 How much diffuse light coming from a light source is reflected by this material. More...
 
SColor EmissiveColor
 Light emitted by this material. Default is to emit no light. More...
 
SColor SpecularColor
 How much specular light (highlights from a light) is reflected. More...
 
f32 Shininess
 Value affecting the size of specular highlights. More...
 
f32 MaterialTypeParam
 Free parameter, dependent on the material type. More...
 
f32 MaterialTypeParam2
 Second free parameter, dependent on the material type. More...
 
f32 Thickness
 Thickness of non-3dimensional elements such as lines and points. More...
 
u8 ZBuffer
 Is the ZBuffer enabled? Default: ECFN_LESSEQUAL. More...
 
u8 AntiAliasing
 Sets the antialiasing mode. More...
 
u8 ColorMask:4
 Defines the enabled color planes. More...
 
u8 ColorMaterial:3
 Defines the interpretation of vertex color in the lighting equation. More...
 
E_BLEND_OPERATION BlendOperation:4
 Store the blend operation of choice. More...
 
f32 BlendFactor
 Store the blend factors. More...
 
u8 PolygonOffsetFactor:3
 DEPRECATED. Will be removed after Irrlicht 1.9. Please use PolygonOffsetDepthBias instead. More...
 
E_POLYGON_OFFSET PolygonOffsetDirection:1
 DEPRECATED. Will be removed after Irrlicht 1.9. More...
 
f32 PolygonOffsetDepthBias
 A constant z-buffer offset for a polygon/line/point. More...
 
f32 PolygonOffsetSlopeScale
 Variable Z-Buffer offset based on the slope of the polygon. More...
 
bool Wireframe:1
 Draw as wireframe or filled triangles? Default: false. More...
 
bool PointCloud:1
 Draw as point cloud or filled triangles? Default: false. More...
 
bool GouraudShading:1
 Flat or Gouraud shading? Default: true. More...
 
bool Lighting:1
 Will this material be lighted? Default: true. More...
 
E_ZWRITE ZWriteEnable:2
 Is the zbuffer writable or is it read-only. Default: EZW_AUTO. More...
 
bool BackfaceCulling:1
 Is backface culling enabled? Default: true. More...
 
bool FrontfaceCulling:1
 Is frontface culling enabled? Default: false. More...
 
bool FogEnable:1
 Is fog enabled? Default: false. More...
 
bool NormalizeNormals:1
 Should normals be normalized? More...
 
bool UseMipMaps:1
 Shall mipmaps be used if available. More...
 

Detailed Description

Struct for holding parameters for a material renderer.

Definition at line 304 of file SMaterial.h.

Constructor & Destructor Documentation

◆ SMaterial() [1/2]

irr::video::SMaterial::SMaterial ( )
inline

Default constructor. Creates a solid, lit material with white colors.

Definition at line 308 of file SMaterial.h.

309  : MaterialType(EMT_SOLID), AmbientColor(255,255,255,255), DiffuseColor(255,255,255,255),
310  EmissiveColor(0,0,0,0), SpecularColor(255,255,255,255),
316  Wireframe(false), PointCloud(false), GouraudShading(true),
318  FogEnable(false), NormalizeNormals(false), UseMipMaps(true)
319  { }
u8 ZBuffer
Is the ZBuffer enabled? Default: ECFN_LESSEQUAL.
Definition: SMaterial.h:450
bool FrontfaceCulling
Is frontface culling enabled? Default: false.
Definition: SMaterial.h:542
E_MATERIAL_TYPE MaterialType
Type of the material. Specifies how everything is blended together.
Definition: SMaterial.h:382
u8 ColorMaterial
Defines the interpretation of vertex color in the lighting equation.
Definition: SMaterial.h:470
f32 Shininess
Value affecting the size of specular highlights.
Definition: SMaterial.h:432
bool PointCloud
Draw as point cloud or filled triangles? Default: false.
Definition: SMaterial.h:525
bool UseMipMaps
Shall mipmaps be used if available.
Definition: SMaterial.h:553
u8 ColorMask
Defines the enabled color planes.
Definition: SMaterial.h:462
bool GouraudShading
Flat or Gouraud shading? Default: true.
Definition: SMaterial.h:528
f32 PolygonOffsetDepthBias
A constant z-buffer offset for a polygon/line/point.
Definition: SMaterial.h:507
Use vertex color for diffuse light, this is default.
Definition: SMaterial.h:219
f32 PolygonOffsetSlopeScale
Variable Z-Buffer offset based on the slope of the polygon.
Definition: SMaterial.h:516
f32 MaterialTypeParam2
Second free parameter, dependent on the material type.
Definition: SMaterial.h:441
f32 Thickness
Thickness of non-3dimensional elements such as lines and points.
Definition: SMaterial.h:444
SColor EmissiveColor
Light emitted by this material. Default is to emit no light.
Definition: SMaterial.h:395
E_BLEND_OPERATION BlendOperation
Store the blend operation of choice.
Definition: SMaterial.h:474
f32 BlendFactor
Store the blend factors.
Definition: SMaterial.h:486
SColor DiffuseColor
How much diffuse light coming from a light source is reflected by this material.
Definition: SMaterial.h:392
No blending happens.
Definition: SMaterial.h:42
bool BackfaceCulling
Is backface culling enabled? Default: true.
Definition: SMaterial.h:539
u8 AntiAliasing
Sets the antialiasing mode.
Definition: SMaterial.h:455
SColor AmbientColor
How much ambient light (a global light) is reflected by this material.
Definition: SMaterial.h:388
GLfloat f
SColor SpecularColor
How much specular light (highlights from a light) is reflected.
Definition: SMaterial.h:400
u8 PolygonOffsetFactor
DEPRECATED. Will be removed after Irrlicht 1.9. Please use PolygonOffsetDepthBias instead.
Definition: SMaterial.h:493
bool NormalizeNormals
Should normals be normalized?
Definition: SMaterial.h:549
bool FogEnable
Is fog enabled? Default: false.
Definition: SMaterial.h:545
Standard solid material.
All planes enabled.
Definition: SMaterial.h:101
<= test, default for e.g. depth test
Definition: SMaterial.h:68
Default anti-aliasing mode.
Definition: SMaterial.h:192
E_ZWRITE ZWriteEnable
Is the zbuffer writable or is it read-only. Default: EZW_AUTO.
Definition: SMaterial.h:536
bool Lighting
Will this material be lighted? Default: true.
Definition: SMaterial.h:531
E_POLYGON_OFFSET PolygonOffsetDirection
DEPRECATED. Will be removed after Irrlicht 1.9.
Definition: SMaterial.h:498
bool Wireframe
Draw as wireframe or filled triangles? Default: false.
Definition: SMaterial.h:522
f32 MaterialTypeParam
Free parameter, dependent on the material type.
Definition: SMaterial.h:437
Pull pixels towards the camera.
Definition: SMaterial.h:240

◆ SMaterial() [2/2]

irr::video::SMaterial::SMaterial ( const SMaterial other)
inline

Copy constructor.

Parameters
otherMaterial to copy from.

Definition at line 323 of file SMaterial.h.

324  {
325  // These pointers are checked during assignment
326  for (u32 i=0; i<MATERIAL_MAX_TEXTURES_USED; ++i)
327  TextureLayer[i].TextureMatrix = 0;
328  *this = other;
329  }
unsigned int u32
32 bit unsigned variable.
Definition: irrTypes.h:62
IRRLICHT_API u32 MATERIAL_MAX_TEXTURES_USED
By default this is identical to MATERIAL_MAX_TEXTURES.
SMaterialLayer TextureLayer[MATERIAL_MAX_TEXTURES]
Texture layer array.
Definition: SMaterial.h:379

Member Function Documentation

◆ getFlag()

bool irr::video::SMaterial::getFlag ( E_MATERIAL_FLAG  flag) const
inline

Gets the Material flag.

Parameters
flagThe flag to query.
Returns
The current value of the flag.

Definition at line 687 of file SMaterial.h.

688  {
689  switch (flag)
690  {
691  case EMF_WIREFRAME:
692  return Wireframe;
693  case EMF_POINTCLOUD:
694  return PointCloud;
695  case EMF_GOURAUD_SHADING:
696  return GouraudShading;
697  case EMF_LIGHTING:
698  return Lighting;
699  case EMF_ZBUFFER:
700  return ZBuffer!=ECFN_DISABLED;
701  case EMF_ZWRITE_ENABLE:
702  return ZWriteEnable != EZW_OFF;
704  return BackfaceCulling;
706  return FrontfaceCulling;
707  case EMF_BILINEAR_FILTER:
708  return TextureLayer[0].BilinearFilter;
710  return TextureLayer[0].TrilinearFilter;
712  return TextureLayer[0].AnisotropicFilter!=0;
713  case EMF_FOG_ENABLE:
714  return FogEnable;
716  return NormalizeNormals;
717  case EMF_TEXTURE_WRAP:
718  return !(TextureLayer[0].TextureWrapU ||
721  case EMF_ANTI_ALIASING:
722  return (AntiAliasing==1);
723  case EMF_COLOR_MASK:
724  return (ColorMask!=ECP_NONE);
725  case EMF_COLOR_MATERIAL:
726  return (ColorMaterial != ECM_NONE);
727  case EMF_USE_MIP_MAPS:
728  return UseMipMaps;
729  case EMF_BLEND_OPERATION:
730  return BlendOperation != EBO_NONE;
731  case EMF_BLEND_FACTOR:
732  return BlendFactor != 0.f;
733  case EMF_POLYGON_OFFSET:
734  return PolygonOffsetFactor != 0 || PolygonOffsetDepthBias != 0.f;
735  }
736 
737  return false;
738  }
u8 ZBuffer
Is the ZBuffer enabled? Default: ECFN_LESSEQUAL.
Definition: SMaterial.h:450
Is backface culling enabled? Default: true.
bool FrontfaceCulling
Is frontface culling enabled? Default: false.
Definition: SMaterial.h:542
Is fog enabled? Default: false.
u8 ColorMaterial
Defines the interpretation of vertex color in the lighting equation.
Definition: SMaterial.h:470
Depth test disabled (disable also write to depth buffer)
Definition: SMaterial.h:66
bool PointCloud
Draw as point cloud or filled triangles? Default: false.
Definition: SMaterial.h:525
Is the ZBuffer enabled? Default: true.
bool UseMipMaps
Shall mipmaps be used if available.
Definition: SMaterial.h:553
bool TrilinearFilter
Is trilinear filtering enabled? Default: false.
u8 ColorMask
Defines the enabled color planes.
Definition: SMaterial.h:462
Flag for blend operation.
bool GouraudShading
Flat or Gouraud shading? Default: true.
Definition: SMaterial.h:528
f32 PolygonOffsetDepthBias
A constant z-buffer offset for a polygon/line/point.
Definition: SMaterial.h:507
u8 TextureWrapU
Texture Clamp Mode.
ColorMaterial enum for vertex color interpretation.
E_BLEND_OPERATION BlendOperation
Store the blend operation of choice.
Definition: SMaterial.h:474
f32 BlendFactor
Store the blend factors.
Definition: SMaterial.h:486
ColorMask bits, for enabling the color planes.
No color enabled.
Definition: SMaterial.h:89
Is bilinear filtering enabled? Default: true.
No blending happens.
Definition: SMaterial.h:42
bool BackfaceCulling
Is backface culling enabled? Default: true.
Definition: SMaterial.h:539
u8 AntiAliasing
Sets the antialiasing mode.
Definition: SMaterial.h:455
Normalizes normals. Default: false.
Flag for blend factor.
u8 PolygonOffsetFactor
DEPRECATED. Will be removed after Irrlicht 1.9. Please use PolygonOffsetDepthBias instead.
Definition: SMaterial.h:493
bool NormalizeNormals
Should normals be normalized?
Definition: SMaterial.h:549
Is anisotropic filtering? Default: false.
Flag for enabling/disabling mipmap usage.
bool FogEnable
Is fog enabled? Default: false.
Definition: SMaterial.h:545
u8 AnisotropicFilter
Is anisotropic filtering enabled? Default: 0, disabled.
bool BilinearFilter
Is bilinear filtering enabled? Default: true.
May be written to the zbuffer or is it readonly. Default: true.
Will this material be lighted? Default: true.
E_ZWRITE ZWriteEnable
Is the zbuffer writable or is it read-only. Default: EZW_AUTO.
Definition: SMaterial.h:536
bool Lighting
Will this material be lighted? Default: true.
Definition: SMaterial.h:531
SMaterialLayer TextureLayer[MATERIAL_MAX_TEXTURES]
Texture layer array.
Definition: SMaterial.h:379
bool Wireframe
Draw as wireframe or filled triangles? Default: false.
Definition: SMaterial.h:522
Don't use vertex color for lighting.
Definition: SMaterial.h:217
Flat or Gouraud shading? Default: true.
zwrite always disabled for this material
Definition: SMaterial.h:255
Access to all layers texture wrap settings. Overwrites separate layer settings.
Is trilinear filtering enabled? Default: false.
Draw as wireframe or filled triangles? Default: false.
Is frontface culling enabled? Default: false.
Draw as point cloud or filled triangles? Default: false.
Flag for polygon offset.

◆ getTexture()

ITexture* irr::video::SMaterial::getTexture ( u32  i) const
inline

Gets the i-th texture.

Parameters
iThe desired level.
Returns
Texture for texture level i, if defined, else 0.

Definition at line 587 of file SMaterial.h.

588  {
589  return i < MATERIAL_MAX_TEXTURES ? TextureLayer[i].Texture : 0;
590  }
const u32 MATERIAL_MAX_TEXTURES
Maximum number of texture an SMaterial can have.
Definition: SMaterial.h:283
ITexture * Texture
Texture.
SMaterialLayer TextureLayer[MATERIAL_MAX_TEXTURES]
Texture layer array.
Definition: SMaterial.h:379

◆ getTextureMatrix() [1/2]

core::matrix4& irr::video::SMaterial::getTextureMatrix ( u32  i)
inline

Gets the texture transformation matrix for level i.

Parameters
iThe desired level. Must not be larger than MATERIAL_MAX_TEXTURES
Returns
Texture matrix for texture level i.

Definition at line 558 of file SMaterial.h.

559  {
560  return TextureLayer[i].getTextureMatrix();
561  }
core::matrix4 & getTextureMatrix()
Gets the texture transformation matrix.
SMaterialLayer TextureLayer[MATERIAL_MAX_TEXTURES]
Texture layer array.
Definition: SMaterial.h:379

◆ getTextureMatrix() [2/2]

const core::matrix4& irr::video::SMaterial::getTextureMatrix ( u32  i) const
inline

Gets the immutable texture transformation matrix for level i.

Parameters
iThe desired level.
Returns
Texture matrix for texture level i, or identity matrix for levels larger than MATERIAL_MAX_TEXTURES.

Definition at line 566 of file SMaterial.h.

567  {
568  if (i<MATERIAL_MAX_TEXTURES)
569  return TextureLayer[i].getTextureMatrix();
570  else
571  return core::IdentityMatrix;
572  }
IRRLICHT_API const matrix4 IdentityMatrix
global const identity matrix
const u32 MATERIAL_MAX_TEXTURES
Maximum number of texture an SMaterial can have.
Definition: SMaterial.h:283
core::matrix4 & getTextureMatrix()
Gets the texture transformation matrix.
SMaterialLayer TextureLayer[MATERIAL_MAX_TEXTURES]
Texture layer array.
Definition: SMaterial.h:379

◆ isAlphaBlendOperation()

bool irr::video::SMaterial::isAlphaBlendOperation ( ) const
inline

Check if material needs alpha blending.

Definition at line 790 of file SMaterial.h.

791  {
792  if (BlendOperation != EBO_NONE && BlendFactor != 0.f)
793  {
794  E_BLEND_FACTOR srcRGBFact = EBF_ZERO;
795  E_BLEND_FACTOR dstRGBFact = EBF_ZERO;
796  E_BLEND_FACTOR srcAlphaFact = EBF_ZERO;
797  E_BLEND_FACTOR dstAlphaFact = EBF_ZERO;
799  u32 alphaSource = 0;
800 
801  unpack_textureBlendFuncSeparate(srcRGBFact, dstRGBFact, srcAlphaFact, dstAlphaFact, modulo, alphaSource, BlendFactor);
802 
803  if (textureBlendFunc_hasAlpha(srcRGBFact) || textureBlendFunc_hasAlpha(dstRGBFact) ||
804  textureBlendFunc_hasAlpha(srcAlphaFact) || textureBlendFunc_hasAlpha(dstAlphaFact))
805  {
806  return true;
807  }
808  }
809  return false;
810  }
src & dest (0, 0, 0, 0)
Definition: SMaterial.h:26
bool textureBlendFunc_hasAlpha(const E_BLEND_FACTOR factor)
has blend factor alphablending
Definition: SMaterial.h:164
E_BLEND_OPERATION BlendOperation
Store the blend operation of choice.
Definition: SMaterial.h:474
f32 BlendFactor
Store the blend factors.
Definition: SMaterial.h:486
No blending happens.
Definition: SMaterial.h:42
E_MODULATE_FUNC
MaterialTypeParam: e.g. DirectX: D3DTOP_MODULATE, D3DTOP_MODULATE2X, D3DTOP_MODULATE4X.
Definition: SMaterial.h:55
GLfloat f
unsigned int u32
32 bit unsigned variable.
Definition: irrTypes.h:62
void unpack_textureBlendFuncSeparate(E_BLEND_FACTOR &srcRGBFact, E_BLEND_FACTOR &dstRGBFact, E_BLEND_FACTOR &srcAlphaFact, E_BLEND_FACTOR &dstAlphaFact, E_MODULATE_FUNC &modulo, u32 &alphaSource, const f32 param)
Unpack srcRGBFact, dstRGBFact, srcAlphaFact, dstAlphaFact, modulo and alphaSource factors.
Definition: SMaterial.h:150

◆ isTransparent()

bool irr::video::SMaterial::isTransparent ( ) const
inline

Check for some fixed-function transparent types. Still used internally, but might be deprecated soon. You probably should not use this anymore, IVideoDriver::needsTransparentRenderPass is more useful in most situations as it asks the material renders directly what they do with the material.

Definition at line 815 of file SMaterial.h.

816  {
821  return true;
822 
823  return false;
824  }
E_MATERIAL_TYPE MaterialType
Type of the material. Specifies how everything is blended together.
Definition: SMaterial.h:382
A transparent reflecting material with an optional additional non reflecting texture layer.
Makes the material transparent based on the texture alpha channel.
Makes the material transparent based on the vertex alpha value.

◆ operator!=()

bool irr::video::SMaterial::operator!= ( const SMaterial b) const
inline

Inequality operator.

Parameters
bMaterial to compare to.
Returns
True if the materials differ, else false.

Definition at line 743 of file SMaterial.h.

744  {
745  bool different =
746  MaterialType != b.MaterialType ||
747  AmbientColor != b.AmbientColor ||
748  DiffuseColor != b.DiffuseColor ||
749  EmissiveColor != b.EmissiveColor ||
750  SpecularColor != b.SpecularColor ||
751  Shininess != b.Shininess ||
752  MaterialTypeParam != b.MaterialTypeParam ||
753  MaterialTypeParam2 != b.MaterialTypeParam2 ||
754  Thickness != b.Thickness ||
755  Wireframe != b.Wireframe ||
756  PointCloud != b.PointCloud ||
757  GouraudShading != b.GouraudShading ||
758  Lighting != b.Lighting ||
759  ZBuffer != b.ZBuffer ||
760  ZWriteEnable != b.ZWriteEnable ||
761  BackfaceCulling != b.BackfaceCulling ||
762  FrontfaceCulling != b.FrontfaceCulling ||
763  FogEnable != b.FogEnable ||
764  NormalizeNormals != b.NormalizeNormals ||
765  AntiAliasing != b.AntiAliasing ||
766  ColorMask != b.ColorMask ||
767  ColorMaterial != b.ColorMaterial ||
768  BlendOperation != b.BlendOperation ||
769  BlendFactor != b.BlendFactor ||
770  PolygonOffsetFactor != b.PolygonOffsetFactor ||
771  PolygonOffsetDirection != b.PolygonOffsetDirection ||
772  PolygonOffsetDepthBias != b.PolygonOffsetDepthBias ||
773  PolygonOffsetSlopeScale != b.PolygonOffsetSlopeScale ||
774  UseMipMaps != b.UseMipMaps
775  ;
776  for (u32 i=0; (i<MATERIAL_MAX_TEXTURES_USED) && !different; ++i)
777  {
778  different |= (TextureLayer[i] != b.TextureLayer[i]);
779  }
780  return different;
781  }
u8 ZBuffer
Is the ZBuffer enabled? Default: ECFN_LESSEQUAL.
Definition: SMaterial.h:450
bool FrontfaceCulling
Is frontface culling enabled? Default: false.
Definition: SMaterial.h:542
E_MATERIAL_TYPE MaterialType
Type of the material. Specifies how everything is blended together.
Definition: SMaterial.h:382
u8 ColorMaterial
Defines the interpretation of vertex color in the lighting equation.
Definition: SMaterial.h:470
f32 Shininess
Value affecting the size of specular highlights.
Definition: SMaterial.h:432
bool PointCloud
Draw as point cloud or filled triangles? Default: false.
Definition: SMaterial.h:525
bool UseMipMaps
Shall mipmaps be used if available.
Definition: SMaterial.h:553
u8 ColorMask
Defines the enabled color planes.
Definition: SMaterial.h:462
bool GouraudShading
Flat or Gouraud shading? Default: true.
Definition: SMaterial.h:528
f32 PolygonOffsetDepthBias
A constant z-buffer offset for a polygon/line/point.
Definition: SMaterial.h:507
f32 PolygonOffsetSlopeScale
Variable Z-Buffer offset based on the slope of the polygon.
Definition: SMaterial.h:516
f32 MaterialTypeParam2
Second free parameter, dependent on the material type.
Definition: SMaterial.h:441
f32 Thickness
Thickness of non-3dimensional elements such as lines and points.
Definition: SMaterial.h:444
SColor EmissiveColor
Light emitted by this material. Default is to emit no light.
Definition: SMaterial.h:395
E_BLEND_OPERATION BlendOperation
Store the blend operation of choice.
Definition: SMaterial.h:474
f32 BlendFactor
Store the blend factors.
Definition: SMaterial.h:486
SColor DiffuseColor
How much diffuse light coming from a light source is reflected by this material.
Definition: SMaterial.h:392
bool BackfaceCulling
Is backface culling enabled? Default: true.
Definition: SMaterial.h:539
u8 AntiAliasing
Sets the antialiasing mode.
Definition: SMaterial.h:455
SColor AmbientColor
How much ambient light (a global light) is reflected by this material.
Definition: SMaterial.h:388
unsigned int u32
32 bit unsigned variable.
Definition: irrTypes.h:62
SColor SpecularColor
How much specular light (highlights from a light) is reflected.
Definition: SMaterial.h:400
u8 PolygonOffsetFactor
DEPRECATED. Will be removed after Irrlicht 1.9. Please use PolygonOffsetDepthBias instead.
Definition: SMaterial.h:493
bool NormalizeNormals
Should normals be normalized?
Definition: SMaterial.h:549
bool FogEnable
Is fog enabled? Default: false.
Definition: SMaterial.h:545
IRRLICHT_API u32 MATERIAL_MAX_TEXTURES_USED
By default this is identical to MATERIAL_MAX_TEXTURES.
GLboolean GLboolean GLboolean b
E_ZWRITE ZWriteEnable
Is the zbuffer writable or is it read-only. Default: EZW_AUTO.
Definition: SMaterial.h:536
bool Lighting
Will this material be lighted? Default: true.
Definition: SMaterial.h:531
SMaterialLayer TextureLayer[MATERIAL_MAX_TEXTURES]
Texture layer array.
Definition: SMaterial.h:379
E_POLYGON_OFFSET PolygonOffsetDirection
DEPRECATED. Will be removed after Irrlicht 1.9.
Definition: SMaterial.h:498
bool Wireframe
Draw as wireframe or filled triangles? Default: false.
Definition: SMaterial.h:522
f32 MaterialTypeParam
Free parameter, dependent on the material type.
Definition: SMaterial.h:437

◆ operator=()

SMaterial& irr::video::SMaterial::operator= ( const SMaterial other)
inline

Assignment operator.

Parameters
otherMaterial to copy from.

Definition at line 333 of file SMaterial.h.

334  {
335  // Check for self-assignment!
336  if (this == &other)
337  return *this;
338 
339  MaterialType = other.MaterialType;
340 
341  AmbientColor = other.AmbientColor;
342  DiffuseColor = other.DiffuseColor;
343  EmissiveColor = other.EmissiveColor;
344  SpecularColor = other.SpecularColor;
345  Shininess = other.Shininess;
346  MaterialTypeParam = other.MaterialTypeParam;
347  MaterialTypeParam2 = other.MaterialTypeParam2;
348  Thickness = other.Thickness;
349  for (u32 i=0; i<MATERIAL_MAX_TEXTURES_USED; ++i)
350  {
351  TextureLayer[i] = other.TextureLayer[i];
352  }
353 
354  Wireframe = other.Wireframe;
355  PointCloud = other.PointCloud;
356  GouraudShading = other.GouraudShading;
357  Lighting = other.Lighting;
358  ZWriteEnable = other.ZWriteEnable;
359  BackfaceCulling = other.BackfaceCulling;
360  FrontfaceCulling = other.FrontfaceCulling;
361  FogEnable = other.FogEnable;
362  NormalizeNormals = other.NormalizeNormals;
363  ZBuffer = other.ZBuffer;
364  AntiAliasing = other.AntiAliasing;
365  ColorMask = other.ColorMask;
366  ColorMaterial = other.ColorMaterial;
367  BlendOperation = other.BlendOperation;
368  BlendFactor = other.BlendFactor;
369  PolygonOffsetFactor = other.PolygonOffsetFactor;
370  PolygonOffsetDirection = other.PolygonOffsetDirection;
371  PolygonOffsetDepthBias = other.PolygonOffsetDepthBias;
372  PolygonOffsetSlopeScale = other.PolygonOffsetSlopeScale;
373  UseMipMaps = other.UseMipMaps;
374 
375  return *this;
376  }
u8 ZBuffer
Is the ZBuffer enabled? Default: ECFN_LESSEQUAL.
Definition: SMaterial.h:450
bool FrontfaceCulling
Is frontface culling enabled? Default: false.
Definition: SMaterial.h:542
E_MATERIAL_TYPE MaterialType
Type of the material. Specifies how everything is blended together.
Definition: SMaterial.h:382
u8 ColorMaterial
Defines the interpretation of vertex color in the lighting equation.
Definition: SMaterial.h:470
f32 Shininess
Value affecting the size of specular highlights.
Definition: SMaterial.h:432
bool PointCloud
Draw as point cloud or filled triangles? Default: false.
Definition: SMaterial.h:525
bool UseMipMaps
Shall mipmaps be used if available.
Definition: SMaterial.h:553
u8 ColorMask
Defines the enabled color planes.
Definition: SMaterial.h:462
bool GouraudShading
Flat or Gouraud shading? Default: true.
Definition: SMaterial.h:528
f32 PolygonOffsetDepthBias
A constant z-buffer offset for a polygon/line/point.
Definition: SMaterial.h:507
f32 PolygonOffsetSlopeScale
Variable Z-Buffer offset based on the slope of the polygon.
Definition: SMaterial.h:516
f32 MaterialTypeParam2
Second free parameter, dependent on the material type.
Definition: SMaterial.h:441
f32 Thickness
Thickness of non-3dimensional elements such as lines and points.
Definition: SMaterial.h:444
SColor EmissiveColor
Light emitted by this material. Default is to emit no light.
Definition: SMaterial.h:395
E_BLEND_OPERATION BlendOperation
Store the blend operation of choice.
Definition: SMaterial.h:474
f32 BlendFactor
Store the blend factors.
Definition: SMaterial.h:486
SColor DiffuseColor
How much diffuse light coming from a light source is reflected by this material.
Definition: SMaterial.h:392
bool BackfaceCulling
Is backface culling enabled? Default: true.
Definition: SMaterial.h:539
u8 AntiAliasing
Sets the antialiasing mode.
Definition: SMaterial.h:455
SColor AmbientColor
How much ambient light (a global light) is reflected by this material.
Definition: SMaterial.h:388
unsigned int u32
32 bit unsigned variable.
Definition: irrTypes.h:62
SColor SpecularColor
How much specular light (highlights from a light) is reflected.
Definition: SMaterial.h:400
u8 PolygonOffsetFactor
DEPRECATED. Will be removed after Irrlicht 1.9. Please use PolygonOffsetDepthBias instead.
Definition: SMaterial.h:493
bool NormalizeNormals
Should normals be normalized?
Definition: SMaterial.h:549
bool FogEnable
Is fog enabled? Default: false.
Definition: SMaterial.h:545
IRRLICHT_API u32 MATERIAL_MAX_TEXTURES_USED
By default this is identical to MATERIAL_MAX_TEXTURES.
E_ZWRITE ZWriteEnable
Is the zbuffer writable or is it read-only. Default: EZW_AUTO.
Definition: SMaterial.h:536
bool Lighting
Will this material be lighted? Default: true.
Definition: SMaterial.h:531
SMaterialLayer TextureLayer[MATERIAL_MAX_TEXTURES]
Texture layer array.
Definition: SMaterial.h:379
E_POLYGON_OFFSET PolygonOffsetDirection
DEPRECATED. Will be removed after Irrlicht 1.9.
Definition: SMaterial.h:498
bool Wireframe
Draw as wireframe or filled triangles? Default: false.
Definition: SMaterial.h:522
f32 MaterialTypeParam
Free parameter, dependent on the material type.
Definition: SMaterial.h:437

◆ operator==()

bool irr::video::SMaterial::operator== ( const SMaterial b) const
inline

Equality operator.

Parameters
bMaterial to compare to.
Returns
True if the materials are equal, else false.

Definition at line 786 of file SMaterial.h.

787  { return !(b!=*this); }
GLboolean GLboolean GLboolean b

◆ setFlag()

void irr::video::SMaterial::setFlag ( E_MATERIAL_FLAG  flag,
bool  value 
)
inline

Sets the Material flag to the given value.

Parameters
flagThe flag to be set.
valueThe new value for the flag.

Definition at line 606 of file SMaterial.h.

607  {
608  switch (flag)
609  {
610  case EMF_WIREFRAME:
611  Wireframe = value; break;
612  case EMF_POINTCLOUD:
613  PointCloud = value; break;
614  case EMF_GOURAUD_SHADING:
615  GouraudShading = value; break;
616  case EMF_LIGHTING:
617  Lighting = value; break;
618  case EMF_ZBUFFER:
619  ZBuffer = value; break;
620  case EMF_ZWRITE_ENABLE:
621  ZWriteEnable = value ? EZW_AUTO : EZW_OFF; break;
623  BackfaceCulling = value; break;
625  FrontfaceCulling = value; break;
626  case EMF_BILINEAR_FILTER:
627  {
628  for (u32 i=0; i<MATERIAL_MAX_TEXTURES_USED; ++i)
629  TextureLayer[i].BilinearFilter = value;
630  }
631  break;
633  {
634  for (u32 i=0; i<MATERIAL_MAX_TEXTURES_USED; ++i)
635  TextureLayer[i].TrilinearFilter = value;
636  }
637  break;
639  {
640  if (value)
641  for (u32 i=0; i<MATERIAL_MAX_TEXTURES_USED; ++i)
642  TextureLayer[i].AnisotropicFilter = 0xFF;
643  else
644  for (u32 i=0; i<MATERIAL_MAX_TEXTURES_USED; ++i)
645  TextureLayer[i].AnisotropicFilter = 0;
646  }
647  break;
648  case EMF_FOG_ENABLE:
649  FogEnable = value; break;
651  NormalizeNormals = value; break;
652  case EMF_TEXTURE_WRAP:
653  {
654  for (u32 i=0; i<MATERIAL_MAX_TEXTURES_USED; ++i)
655  {
659  }
660  }
661  break;
662  case EMF_ANTI_ALIASING:
664  case EMF_COLOR_MASK:
665  ColorMask = value?ECP_ALL:ECP_NONE; break;
666  case EMF_COLOR_MATERIAL:
668  case EMF_USE_MIP_MAPS:
669  UseMipMaps = value; break;
670  case EMF_BLEND_OPERATION:
672  case EMF_BLEND_FACTOR:
673  break;
674  case EMF_POLYGON_OFFSET:
677  PolygonOffsetSlopeScale = value?1.f:0.f;
678  PolygonOffsetDepthBias = value?1.f:0.f;
679  default:
680  break;
681  }
682  }
u8 ZBuffer
Is the ZBuffer enabled? Default: ECFN_LESSEQUAL.
Definition: SMaterial.h:450
Is backface culling enabled? Default: true.
bool FrontfaceCulling
Is frontface culling enabled? Default: false.
Definition: SMaterial.h:542
Is fog enabled? Default: false.
u8 ColorMaterial
Defines the interpretation of vertex color in the lighting equation.
Definition: SMaterial.h:470
bool PointCloud
Draw as point cloud or filled triangles? Default: false.
Definition: SMaterial.h:525
Is the ZBuffer enabled? Default: true.
bool UseMipMaps
Shall mipmaps be used if available.
Definition: SMaterial.h:553
u8 ColorMask
Defines the enabled color planes.
Definition: SMaterial.h:462
Flag for blend operation.
bool GouraudShading
Flat or Gouraud shading? Default: true.
Definition: SMaterial.h:528
f32 PolygonOffsetDepthBias
A constant z-buffer offset for a polygon/line/point.
Definition: SMaterial.h:507
Use vertex color for diffuse light, this is default.
Definition: SMaterial.h:219
u8 TextureWrapU
Texture Clamp Mode.
f32 PolygonOffsetSlopeScale
Variable Z-Buffer offset based on the slope of the polygon.
Definition: SMaterial.h:516
ColorMaterial enum for vertex color interpretation.
E_BLEND_OPERATION BlendOperation
Store the blend operation of choice.
Definition: SMaterial.h:474
ColorMask bits, for enabling the color planes.
No color enabled.
Definition: SMaterial.h:89
Is bilinear filtering enabled? Default: true.
No blending happens.
Definition: SMaterial.h:42
bool BackfaceCulling
Is backface culling enabled? Default: true.
Definition: SMaterial.h:539
u8 AntiAliasing
Sets the antialiasing mode.
Definition: SMaterial.h:455
GLsizei const GLfloat * value
Use to turn off anti-aliasing for this material.
Definition: SMaterial.h:190
Normalizes normals. Default: false.
unsigned int u32
32 bit unsigned variable.
Definition: irrTypes.h:62
Flag for blend factor.
u8 PolygonOffsetFactor
DEPRECATED. Will be removed after Irrlicht 1.9. Please use PolygonOffsetDepthBias instead.
Definition: SMaterial.h:493
bool NormalizeNormals
Should normals be normalized?
Definition: SMaterial.h:549
Is anisotropic filtering? Default: false.
Flag for enabling/disabling mipmap usage.
bool FogEnable
Is fog enabled? Default: false.
Definition: SMaterial.h:545
All planes enabled.
Definition: SMaterial.h:101
May be written to the zbuffer or is it readonly. Default: true.
IRRLICHT_API u32 MATERIAL_MAX_TEXTURES_USED
By default this is identical to MATERIAL_MAX_TEXTURES.
Will this material be lighted? Default: true.
Default anti-aliasing mode.
Definition: SMaterial.h:192
Default blending adds the color values.
Definition: SMaterial.h:43
E_ZWRITE ZWriteEnable
Is the zbuffer writable or is it read-only. Default: EZW_AUTO.
Definition: SMaterial.h:536
bool Lighting
Will this material be lighted? Default: true.
Definition: SMaterial.h:531
SMaterialLayer TextureLayer[MATERIAL_MAX_TEXTURES]
Texture layer array.
Definition: SMaterial.h:379
E_POLYGON_OFFSET PolygonOffsetDirection
DEPRECATED. Will be removed after Irrlicht 1.9.
Definition: SMaterial.h:498
Push pixel towards the far plane, away from the eye.
Definition: SMaterial.h:236
bool Wireframe
Draw as wireframe or filled triangles? Default: false.
Definition: SMaterial.h:522
Don't use vertex color for lighting.
Definition: SMaterial.h:217
Flat or Gouraud shading? Default: true.
zwrite always disabled for this material
Definition: SMaterial.h:255
Access to all layers texture wrap settings. Overwrites separate layer settings.
Is trilinear filtering enabled? Default: false.
E_TEXTURE_CLAMP
Texture coord clamp mode outside [0.0, 1.0].
Draw as wireframe or filled triangles? Default: false.
Is frontface culling enabled? Default: false.
Draw as point cloud or filled triangles? Default: false.
Flag for polygon offset.

◆ setTexture()

void irr::video::SMaterial::setTexture ( u32  i,
ITexture tex 
)
inline

Sets the i-th texture.

If i>=MATERIAL_MAX_TEXTURES this setting will be ignored.

Parameters
iThe desired level.
texTexture for texture level i.

Definition at line 596 of file SMaterial.h.

597  {
598  if (i>=MATERIAL_MAX_TEXTURES)
599  return;
600  TextureLayer[i].Texture = tex;
601  }
const u32 MATERIAL_MAX_TEXTURES
Maximum number of texture an SMaterial can have.
Definition: SMaterial.h:283
ITexture * Texture
Texture.
SMaterialLayer TextureLayer[MATERIAL_MAX_TEXTURES]
Texture layer array.
Definition: SMaterial.h:379

◆ setTextureMatrix()

void irr::video::SMaterial::setTextureMatrix ( u32  i,
const core::matrix4 mat 
)
inline

Sets the i-th texture transformation matrix.

Parameters
iThe desired level.
matTexture matrix for texture level i.

Definition at line 577 of file SMaterial.h.

578  {
579  if (i>=MATERIAL_MAX_TEXTURES)
580  return;
582  }
const u32 MATERIAL_MAX_TEXTURES
Maximum number of texture an SMaterial can have.
Definition: SMaterial.h:283
SMaterialLayer TextureLayer[MATERIAL_MAX_TEXTURES]
Texture layer array.
Definition: SMaterial.h:379
void setTextureMatrix(const core::matrix4 &mat)
Sets the texture transformation matrix to mat.

Member Data Documentation

◆ AmbientColor

SColor irr::video::SMaterial::AmbientColor

How much ambient light (a global light) is reflected by this material.

The default is full white, meaning objects are completely globally illuminated. Reduce this if you want to see diffuse or specular light effects.

Definition at line 388 of file SMaterial.h.

◆ AntiAliasing

u8 irr::video::SMaterial::AntiAliasing

Sets the antialiasing mode.

Values are chosen from E_ANTI_ALIASING_MODE. Default is EAAM_SIMPLE, i.e. simple multi-sample anti-aliasing.

Definition at line 455 of file SMaterial.h.

◆ BackfaceCulling

bool irr::video::SMaterial::BackfaceCulling

Is backface culling enabled? Default: true.

Definition at line 539 of file SMaterial.h.

◆ BlendFactor

f32 irr::video::SMaterial::BlendFactor

Store the blend factors.

textureBlendFunc/textureBlendFuncSeparate functions should be used to write properly blending factors to this parameter. Due to historical reasons this parameter is not used for material type EMT_ONETEXTURE_BLEND which uses MaterialTypeParam instead for the blend factor. It's generally used only for materials without any blending otherwise (like EMT_SOLID). It's main use is to allow having shader materials which can enable/disable blending after they have been created. When you set this you usually also have to set BlendOperation to a value != EBO_NONE (setting it to EBO_ADD is probably the most common one value).

Definition at line 486 of file SMaterial.h.

◆ BlendOperation

E_BLEND_OPERATION irr::video::SMaterial::BlendOperation

Store the blend operation of choice.

Values to be chosen from E_BLEND_OPERATION.

Definition at line 474 of file SMaterial.h.

◆ ColorMask

u8 irr::video::SMaterial::ColorMask

Defines the enabled color planes.

Values are defined as or'ed values of the E_COLOR_PLANE enum. Only enabled color planes will be rendered to the current render target. Typical use is to disable all colors when rendering only to depth or stencil buffer, or using Red and Green for Stereo rendering.

Definition at line 462 of file SMaterial.h.

◆ ColorMaterial

u8 irr::video::SMaterial::ColorMaterial

Defines the interpretation of vertex color in the lighting equation.

Values should be chosen from E_COLOR_MATERIAL. When lighting is enabled, vertex color can be used instead of the material values for light modulation. This allows to easily change e.g. the diffuse light behavior of each face. The default, ECM_DIFFUSE, will result in a very similar rendering as with lighting turned off, just with light shading.

Definition at line 470 of file SMaterial.h.

◆ DiffuseColor

SColor irr::video::SMaterial::DiffuseColor

How much diffuse light coming from a light source is reflected by this material.

The default is full white.

Definition at line 392 of file SMaterial.h.

◆ EmissiveColor

SColor irr::video::SMaterial::EmissiveColor

Light emitted by this material. Default is to emit no light.

Definition at line 395 of file SMaterial.h.

◆ FogEnable

bool irr::video::SMaterial::FogEnable

Is fog enabled? Default: false.

Definition at line 545 of file SMaterial.h.

◆ FrontfaceCulling

bool irr::video::SMaterial::FrontfaceCulling

Is frontface culling enabled? Default: false.

Definition at line 542 of file SMaterial.h.

◆ GouraudShading

bool irr::video::SMaterial::GouraudShading

Flat or Gouraud shading? Default: true.

Definition at line 528 of file SMaterial.h.

◆ Lighting

bool irr::video::SMaterial::Lighting

Will this material be lighted? Default: true.

Definition at line 531 of file SMaterial.h.

◆ MaterialType

E_MATERIAL_TYPE irr::video::SMaterial::MaterialType

Type of the material. Specifies how everything is blended together.

Definition at line 382 of file SMaterial.h.

◆ MaterialTypeParam

f32 irr::video::SMaterial::MaterialTypeParam

Free parameter, dependent on the material type.

Mostly ignored, used for example in EMT_PARALLAX_MAP_SOLID, EMT_TRANSPARENT_ALPHA_CHANNEL and EMT_ONETEXTURE_BLEND.

Definition at line 437 of file SMaterial.h.

◆ MaterialTypeParam2

f32 irr::video::SMaterial::MaterialTypeParam2

Second free parameter, dependent on the material type.

Mostly ignored.

Definition at line 441 of file SMaterial.h.

◆ NormalizeNormals

bool irr::video::SMaterial::NormalizeNormals

Should normals be normalized?

Always use this if the mesh lit and scaled. Default: false

Definition at line 549 of file SMaterial.h.

◆ PointCloud

bool irr::video::SMaterial::PointCloud

Draw as point cloud or filled triangles? Default: false.

Definition at line 525 of file SMaterial.h.

◆ PolygonOffsetDepthBias

f32 irr::video::SMaterial::PolygonOffsetDepthBias

A constant z-buffer offset for a polygon/line/point.

The range of the value is driver specific. On OpenGL you get units which are multiplied by the smallest value that is guaranteed to produce a resolvable offset. On D3D9 you can pass a range between -1 and 1. But you should likely divide it by the range of the depthbuffer. Like dividing by 65535.0 for a 16 bit depthbuffer. Thought it still might produce too large of a bias. Some article (https://aras-p.info/blog/2008/06/12/depth-bias-and-the-power-of-deceiving-yourself/) recommends multiplying by 2.0*4.8e-7 (and strangely on both 16 bit and 24 bit).

Definition at line 507 of file SMaterial.h.

◆ PolygonOffsetDirection

E_POLYGON_OFFSET irr::video::SMaterial::PolygonOffsetDirection

DEPRECATED. Will be removed after Irrlicht 1.9.

Flag defining the direction the polygon offset is applied to. Can be to front or to back, specified by values from E_POLYGON_OFFSET.

Definition at line 498 of file SMaterial.h.

◆ PolygonOffsetFactor

u8 irr::video::SMaterial::PolygonOffsetFactor

DEPRECATED. Will be removed after Irrlicht 1.9. Please use PolygonOffsetDepthBias instead.

Factor specifying how far the polygon offset should be made. Specifying 0 disables the polygon offset. The direction is specified separately. The factor can be from 0 to 7. Note: This probably never worked on Direct3D9 (was coded for D3D8 which had different value ranges)

Definition at line 493 of file SMaterial.h.

◆ PolygonOffsetSlopeScale

f32 irr::video::SMaterial::PolygonOffsetSlopeScale

Variable Z-Buffer offset based on the slope of the polygon.

For polygons looking flat at a camera you could use 0 (for example in a 2D game) But in most cases you will have polygons rendered at a certain slope. The driver will calculate the slope for you and this value allows to scale that slope. The complete polygon offset is: PolygonOffsetSlopeScale*slope + PolygonOffsetDepthBias A good default here is to use 1.f if you want to push the polygons away from the camera and -1.f to pull them towards the camera.

Definition at line 516 of file SMaterial.h.

◆ Shininess

f32 irr::video::SMaterial::Shininess

Value affecting the size of specular highlights.

A value of 20 is common. If set to 0, no specular highlights are being used. To activate, simply set the shininess of a material to a value in the range [0.5;128]:

sceneNode->getMaterial(0).Shininess = 20.0f;

You can change the color of the highlights using

sceneNode->getMaterial(0).SpecularColor.set(255,255,255,255);

The specular color of the dynamic lights (SLight::SpecularColor) will influence the the highlight color too, but they are set to a useful value by default when creating the light scene node. Here is a simple example on how to use specular highlights:

// load and display mesh
scene::IAnimatedMeshSceneNode* node = smgr->addAnimatedMeshSceneNode(
smgr->getMesh("data/faerie.md2"));
node->setMaterialTexture(0, driver->getTexture("data/Faerie2.pcx")); // set diffuse texture
node->setMaterialFlag(video::EMF_LIGHTING, true); // enable dynamic lighting
node->getMaterial(0).Shininess = 20.0f; // set size of specular highlights
// add white light
scene::ILightSceneNode* light = smgr->addLightSceneNode(0,
core::vector3df(5,5,5), video::SColorf(1.0f, 1.0f, 1.0f));

Definition at line 432 of file SMaterial.h.

◆ SpecularColor

SColor irr::video::SMaterial::SpecularColor

How much specular light (highlights from a light) is reflected.

The default is to reflect white specular light. See SMaterial::Shininess on how to enable specular lights.

Definition at line 400 of file SMaterial.h.

◆ TextureLayer

SMaterialLayer irr::video::SMaterial::TextureLayer[MATERIAL_MAX_TEXTURES]

Texture layer array.

Definition at line 379 of file SMaterial.h.

◆ Thickness

f32 irr::video::SMaterial::Thickness

Thickness of non-3dimensional elements such as lines and points.

Definition at line 444 of file SMaterial.h.

◆ UseMipMaps

bool irr::video::SMaterial::UseMipMaps

Shall mipmaps be used if available.

Sometimes, disabling mipmap usage can be useful. Default: true

Definition at line 553 of file SMaterial.h.

◆ Wireframe

bool irr::video::SMaterial::Wireframe

Draw as wireframe or filled triangles? Default: false.

The user can access a material flag using

material.Wireframe=true

or

material.setFlag(EMF_WIREFRAME, true);

Definition at line 522 of file SMaterial.h.

◆ ZBuffer

u8 irr::video::SMaterial::ZBuffer

Is the ZBuffer enabled? Default: ECFN_LESSEQUAL.

If you want to disable depth test for this material just set this parameter to ECFN_DISABLED. Values are from E_COMPARISON_FUNC.

Definition at line 450 of file SMaterial.h.

◆ ZWriteEnable

E_ZWRITE irr::video::SMaterial::ZWriteEnable

Is the zbuffer writable or is it read-only. Default: EZW_AUTO.

If this parameter is not EZW_OFF, you probably also want to set ZBuffer to values other than ECFN_DISABLED

Definition at line 536 of file SMaterial.h.


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