Nirtcpp 2.1.0
Nirtcpp is a high-performance c++ graphics engine.
Loading...
Searching...
No Matches
nirt::video::SOverrideMaterial Class Reference
Collaboration diagram for nirt::video::SOverrideMaterial:
Collaboration graph

Classes

class  SMaterialTypeReplacement
 

Public Member Functions

 SOverrideMaterial ()
 Default constructor.
 
void reset ()
 disable overrides and reset all flags
 
void apply (SMaterial &material)
 Apply the enabled overrides.
 

Public Attributes

SMaterial Material
 The Material values.
 
u32 EnableFlags
 Which values are overridden.
 
bool EnableLayerFlags [MATERIAL_MAX_TEXTURES]
 For those flags in EnableFlags which affect layers, set which of the layers are affected.
 
bool EnableTextures [MATERIAL_MAX_TEXTURES]
 Which textures are overridden.
 
bool EnableLayers [MATERIAL_MAX_TEXTURES]
 Overwrite complete layers (settings of EnableLayerFlags and EnableTextures don't matter then for layer data)
 
u16 EnablePasses
 Set in which render passes the material override is active.
 
bool Enabled
 Global enable flag, overwritten by the SceneManager in each pass.
 
core::array< SMaterialTypeReplacementMaterialTypes
 To overwrite SMaterial::MaterialType.
 

Member Data Documentation

◆ Enabled

bool nirt::video::SOverrideMaterial::Enabled

Global enable flag, overwritten by the SceneManager in each pass.

NOTE: This is generally not set by users of the engine, but the Scenemanager uses the EnablePass array and sets Enabled to true if the Override material is enabled in the current pass. As user you generally only set EnablePasses. The exception is when rendering without SceneManager but using draw calls in the VideoDriver.

◆ EnableFlags

u32 nirt::video::SOverrideMaterial::EnableFlags

Which values are overridden.

OR'ed values from E_MATERIAL_FLAGS.

◆ EnablePasses

u16 nirt::video::SOverrideMaterial::EnablePasses

Set in which render passes the material override is active.

OR'ed values from E_SCENE_NODE_RENDER_PASS.


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

Nirtcpp    @cppfx.xyz

Esvcpp    esv::print