Jimcpp 2.1.0
Jimcpp is a high-performance c++ graphics engine.
|
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< SMaterialTypeReplacement > | MaterialTypes |
To overwrite SMaterial::MaterialType. | |
bool jpp::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.
u32 jpp::video::SOverrideMaterial::EnableFlags |
Which values are overridden.
OR'ed values from E_MATERIAL_FLAGS.
u16 jpp::video::SOverrideMaterial::EnablePasses |
Set in which render passes the material override is active.
OR'ed values from E_SCENE_NODE_RENDER_PASS.