DayZ 1.24
|
Created once, on manager init. Script-side representation of C++ material class, separate handling. More...
Protected Member Functions | |
void | PPEClassBase (string mat_path_override="") |
void | Init (string mat_path_override="") |
void | CreateMaterial () |
Material | GetMaterial () |
void | CreateDataStructure () |
void | RegisterMaterialParameters () |
inserted into associative array by parameter int value, parameter registration order does not matter (still ordered, though) | |
void | RegisterParameterScalarBool (int idx, string parameter_name, bool default_value) |
void | RegisterParameterScalarInt (int idx, string parameter_name, int default_value, int min, int max) |
void | RegisterParameterScalarFloat (int idx, string parameter_name, float default_value, float min, float max) |
WARNING - min/max values are usually taken from Workbench defaults, may not be actual min/max values the renderer can handle! When in doubt, try some higher/lower values... | |
void | RegisterParameterScalarFloatEx (int idx, string parameter_name, float default_value, float min, float max, typename type) |
WARNING - min/max values are usually taken from Workbench defaults, may not be actual min/max values the renderer can handle! When in doubt, try some higher/lower values... | |
void | RegisterParameterColor (int idx, string parameter_name, float r, float g, float b, float a) |
WARNING - min/max values are usually taken from Workbench defaults, may not be actual min/max values the renderer can handle! When in doubt, try some higher/lower values... | |
void | RegisterParameterColorEx (int idx, string parameter_name, float r, float g, float b, float a, typename type) |
WARNING - min/max values are usually taken from Workbench defaults, may not be actual min/max values the renderer can handle! When in doubt, try some higher/lower values... | |
void | RegisterParameterVector (int idx, string parameter_name, array< float > default_values) |
void | RegisterParameterTexture (int idx, string parameter_name, string default_path) |
void | RegisterParameterResource (int idx, string parameter_name, string default_path) |
void | InsertParamValueData (PPERequestParamDataBase request_data) |
Distributes requester data to the material class structure and links them to appropriate parameter. | |
void | RemoveRequest (int req_idx) |
unused, see 'RemoveActiveRequestFromMaterials' for more info | |
void | OnUpdate (float timeslice, int order) |
generic update method, take care when overriding! | |
void | SetFinalParameterValue (int parameter_idx) |
Clamps the values being set to defaults, if there is no request setting non-zero values on the parameter. | |
void | ApplyValueChanges () |
void | InsertUpdatedParameter (int mat_id) |
void | ParamUpdateRemove (int parameter_idx) |
Queue selected parameter for removal from the update queue. | |
void | SetParameterUpdating (int order, int parameter_id) |
Queue specific parameter of this material to update. | |
void | ParamUpdateQueueCleanup (int order) |
string | GetDefaultMaterialPath () |
override this if you want to use different path by default; '.emat' is appended automatically | |
void | ChangeMaterialPathUsed (string path) |
string | GetCurrentMaterialPath () |
int | GetPostProcessEffectID () |
Overriden in all material classes! | |
PPEMatClassParameterCommandData | GetParameterCommandData (int parameter_idx) |
Some PP effects are handled as hard-coded exceptions, outside of material system. Default == PPEExceptions.NONE (systemic behaviour) | |
void | DbgPrnt (string text) |
Protected Attributes | |
PPEManager | m_Manager |
string | m_MaterialPath = "" |
Material | m_Material |
ref map< int, ref array< int > > | m_ParameterUpdateQueueMap |
ref array< int > | m_ParameterRemovalQueue |
ref array< int > | m_UpdatedParameters |
ref map< int, ref PPEMatClassParameterCommandData > | m_MaterialParamMapStructure |
Created once, on manager init. Script-side representation of C++ material class, separate handling.
Definition at line 2 of file PPEMatClassesBase.c.
Definition at line 14 of file PPEMatClassesBase.c.
References CreateDataStructure(), CreateMaterial(), Init(), and RegisterMaterialParameters().
|
inlineprotected |
Definition at line 265 of file PPEMatClassesBase.c.
References m_UpdatedParameters, and SetFinalParameterValue().
Definition at line 318 of file PPEMatClassesBase.c.
References CreateMaterial(), m_Material, m_MaterialPath, and path.
|
inlineprotected |
Definition at line 43 of file PPEMatClassesBase.c.
References m_MaterialParamMapStructure, m_ParameterRemovalQueue, m_ParameterUpdateQueueMap, and m_UpdatedParameters.
Referenced by PPEClassBase().
|
inlineprotected |
Definition at line 31 of file PPEMatClassesBase.c.
References GetGame(), m_Material, and m_MaterialPath.
Referenced by ChangeMaterialPathUsed(), and PPEClassBase().
Definition at line 372 of file PPEMatClassesBase.c.
|
inlineprotected |
Definition at line 325 of file PPEMatClassesBase.c.
References m_MaterialPath.
|
protected |
override this if you want to use different path by default; '.emat' is appended automatically
Referenced by Init().
|
inlineprotected |
Definition at line 37 of file PPEMatClassesBase.c.
References m_Material.
|
inlineprotected |
Some PP effects are handled as hard-coded exceptions, outside of material system. Default == PPEExceptions.NONE (systemic behaviour)
Definition at line 342 of file PPEMatClassesBase.c.
References m_MaterialParamMapStructure.
Referenced by PPEDOF::SetFinalParameterValue(), PPEExposureNative::SetFinalParameterValue(), PPEEyeAccomodationNative::SetFinalParameterValue(), PPELightIntensityParamsNative::SetFinalParameterValue(), and SetFinalParameterValue().
|
inlineprotected |
Overriden in all material classes!
Definition at line 331 of file PPEMatClassesBase.c.
Referenced by InsertParamValueData(), OnUpdate(), RegisterParameterColor(), RegisterParameterColorEx(), RegisterParameterResource(), RegisterParameterScalarBool(), RegisterParameterScalarFloat(), RegisterParameterScalarFloatEx(), RegisterParameterScalarInt(), RegisterParameterTexture(), and RegisterParameterVector().
Definition at line 22 of file PPEMatClassesBase.c.
References GetDefaultMaterialPath(), PPEManagerStatic::GetPPEManager(), m_Manager, and m_MaterialPath.
|
inlineprotected |
Distributes requester data to the material class structure and links them to appropriate parameter.
Definition at line 147 of file PPEMatClassesBase.c.
References Error(), GetPostProcessEffectID(), and m_MaterialParamMapStructure.
Definition at line 277 of file PPEMatClassesBase.c.
References m_UpdatedParameters.
Referenced by OnUpdate().
generic update method, take care when overriding!
Definition at line 197 of file PPEMatClassesBase.c.
References Count, GetPostProcessEffectID(), InsertUpdatedParameter(), m_Manager, m_MaterialParamMapStructure, m_ParameterUpdateQueueMap, and ParamUpdateQueueCleanup().
Definition at line 300 of file PPEMatClassesBase.c.
References Count, m_ParameterRemovalQueue, and m_ParameterUpdateQueueMap.
Referenced by OnUpdate().
Queue selected parameter for removal from the update queue.
Definition at line 284 of file PPEMatClassesBase.c.
References m_ParameterRemovalQueue.
|
protected |
inserted into associative array by parameter int value, parameter registration order does not matter (still ordered, though)
Referenced by PPEClassBase().
|
inlineprotected |
WARNING - min/max values are usually taken from Workbench defaults, may not be actual min/max values the renderer can handle! When in doubt, try some higher/lower values...
Definition at line 98 of file PPEMatClassesBase.c.
References GetPostProcessEffectID(), m_MaterialParamMapStructure, and PPEMatClassParameterColor().
Referenced by PPEColors::RegisterMaterialParameters(), and PPEGlow::RegisterMaterialParameters().
|
inlineprotected |
WARNING - min/max values are usually taken from Workbench defaults, may not be actual min/max values the renderer can handle! When in doubt, try some higher/lower values...
Definition at line 107 of file PPEMatClassesBase.c.
References Class::CastTo(), GetPostProcessEffectID(), and m_MaterialParamMapStructure.
Referenced by PPEColors::RegisterMaterialParameters(), and PPEGlow::RegisterMaterialParameters().
|
inlineprotected |
Definition at line 137 of file PPEMatClassesBase.c.
References GetPostProcessEffectID(), and m_MaterialParamMapStructure.
|
inlineprotected |
Definition at line 55 of file PPEMatClassesBase.c.
References GetPostProcessEffectID(), and m_MaterialParamMapStructure.
Referenced by PPEDOF::RegisterMaterialParameters(), PPEDepthOfField::RegisterMaterialParameters(), PPEFilmGrain::RegisterMaterialParameters(), PPEGlow::RegisterMaterialParameters(), and PPEHBAO::RegisterMaterialParameters().
|
inlineprotected |
WARNING - min/max values are usually taken from Workbench defaults, may not be actual min/max values the renderer can handle! When in doubt, try some higher/lower values...
Definition at line 73 of file PPEMatClassesBase.c.
References GetPostProcessEffectID(), m_MaterialParamMapStructure, and PPEMatClassParameterFloat().
Referenced by PPEDOF::RegisterMaterialParameters(), PPEExposureNative::RegisterMaterialParameters(), PPEEyeAccomodationNative::RegisterMaterialParameters(), PPELightIntensityParamsNative::RegisterMaterialParameters(), PPEChromAber::RegisterMaterialParameters(), PPEColors::RegisterMaterialParameters(), PPEDepthOfField::RegisterMaterialParameters(), PPEDynamicBlur::RegisterMaterialParameters(), PPEFilmGrain::RegisterMaterialParameters(), PPEGaussFilter::RegisterMaterialParameters(), PPEGlow::RegisterMaterialParameters(), PPEGodRays::RegisterMaterialParameters(), PPEHBAO::RegisterMaterialParameters(), PPERadialBlur::RegisterMaterialParameters(), PPERain::RegisterMaterialParameters(), PPERotBlur::RegisterMaterialParameters(), PPESSAO::RegisterMaterialParameters(), PPEUnderWater::RegisterMaterialParameters(), and PPEWetDistort::RegisterMaterialParameters().
|
inlineprotected |
WARNING - min/max values are usually taken from Workbench defaults, may not be actual min/max values the renderer can handle! When in doubt, try some higher/lower values...
Definition at line 83 of file PPEMatClassesBase.c.
References Class::CastTo(), GetPostProcessEffectID(), m_MaterialParamMapStructure, and PPEMatClassParameterFloat().
Referenced by PPEColors::RegisterMaterialParameters(), and PPEGlow::RegisterMaterialParameters().
|
inlineprotected |
Definition at line 63 of file PPEMatClassesBase.c.
References GetPostProcessEffectID(), and m_MaterialParamMapStructure.
Referenced by PPEDepthOfField::RegisterMaterialParameters(), PPEFXAA::RegisterMaterialParameters(), PPEGlow::RegisterMaterialParameters(), PPEHBAO::RegisterMaterialParameters(), PPEMedian::RegisterMaterialParameters(), PPESMAA::RegisterMaterialParameters(), PPESSAO::RegisterMaterialParameters(), and PPEWetDistort::RegisterMaterialParameters().
|
inlineprotected |
Definition at line 129 of file PPEMatClassesBase.c.
References GetPostProcessEffectID(), and m_MaterialParamMapStructure.
|
inlineprotected |
Definition at line 120 of file PPEMatClassesBase.c.
References GetPostProcessEffectID(), and m_MaterialParamMapStructure.
Referenced by PPEColors::RegisterMaterialParameters(), and PPEGlow::RegisterMaterialParameters().
unused, see 'RemoveActiveRequestFromMaterials' for more info
Definition at line 166 of file PPEMatClassesBase.c.
Clamps the values being set to defaults, if there is no request setting non-zero values on the parameter.
Definition at line 224 of file PPEMatClassesBase.c.
References PPEMatClassParameterCommandData::GetCurrentValues(), GetParameterCommandData(), PPEMatClassParameterCommandData::GetParameterVarType(), m_Material, and Material::SetParamByIndex().
Referenced by ApplyValueChanges().
Queue specific parameter of this material to update.
Definition at line 291 of file PPEMatClassesBase.c.
References m_ParameterUpdateQueueMap.
|
protected |
Definition at line 4 of file PPEMatClassesBase.c.
Referenced by Init(), and OnUpdate().
|
protected |
Definition at line 6 of file PPEMatClassesBase.c.
Referenced by ChangeMaterialPathUsed(), CreateMaterial(), GetMaterial(), and SetFinalParameterValue().
|
protected |
Definition at line 12 of file PPEMatClassesBase.c.
Referenced by CreateDataStructure(), GetParameterCommandData(), InsertParamValueData(), OnUpdate(), RegisterParameterColor(), RegisterParameterColorEx(), RegisterParameterResource(), RegisterParameterScalarBool(), RegisterParameterScalarFloat(), RegisterParameterScalarFloatEx(), RegisterParameterScalarInt(), RegisterParameterTexture(), and RegisterParameterVector().
|
protected |
Definition at line 5 of file PPEMatClassesBase.c.
Referenced by ChangeMaterialPathUsed(), CreateMaterial(), GetCurrentMaterialPath(), and Init().
Definition at line 9 of file PPEMatClassesBase.c.
Referenced by CreateDataStructure(), ParamUpdateQueueCleanup(), and ParamUpdateRemove().
Definition at line 8 of file PPEMatClassesBase.c.
Referenced by CreateDataStructure(), OnUpdate(), ParamUpdateQueueCleanup(), and SetParameterUpdating().
Definition at line 10 of file PPEMatClassesBase.c.
Referenced by PPEDOF::ApplyValueChanges(), PPELightIntensityParamsNative::ApplyValueChanges(), ApplyValueChanges(), CreateDataStructure(), and InsertUpdatedParameter().