Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
ppeconstants.c
Go to the documentation of this file.
1
27
29{
30 NONE = 0,
34 ALL = 14, //GAMEPLAY_EFFECTS|MENU_EFFECTS|MISC_EFFECTS
35};
36
50
53{
54 LOWEST, //only lowest value gets used. Note - if first request, it is compared against default values!
55 HIGHEST, //only highest value gets used. Note - if first request, it is compared against default values!
56 ADD, //LINEAR addition
57 ADD_RELATIVE, //LINEAR relative addition (relative to diff between current and max, where applicable. Otherwise used as absolute addition)
58 SUBSTRACT, //LINEAR substraction
59 SUBSTRACT_RELATIVE, //LINEAR relative substraction
60 SUBSTRACT_REVERSE, //LINEAR sub. target from dst
61 SUBSTRACT_REVERSE_RELATIVE, //LINEAR relative sub. target from dst
62 MULTIPLICATIVE, //LINEAR multiplication
63 SET, //sets the value, does not terminate possible further calculations
64 OVERRIDE //does not interact; sets the value, and terminates possible further calculations. Use with care, preferred use is SET with higher priority command
65};
66
67class PPEConstants
68{
69 static const int VAR_TYPE_BOOL = 1;
70 static const int VAR_TYPE_INT = 2;
71 static const int VAR_TYPE_FLOAT = 4;
72 static const int VAR_TYPE_COLOR = 8;
73 static const int VAR_TYPE_VECTOR = 16;
74
75 static const int VAR_TYPE_BLENDABLE = VAR_TYPE_INT|VAR_TYPE_FLOAT|VAR_TYPE_COLOR;
76 static const int VAR_TYPE_TEXTURE = 32;
77 static const int VAR_TYPE_RESOURCE = 64;
78
79 //static const int VALUE_MAX_COLOR = 255; //if only...
80
81 static const int DEPENDENCY_ORDER_BASE = 0;
82 static const int DEPENDENCY_ORDER_HIGHEST = 1;
83}
84
86typedef Param4<string,int,int,int> PPETemplateDefInt;
87typedef Param4<string,float,float,float> PPETemplateDefFloat; //name, default, min, max
88typedef Param5<string,float,float,float,float> PPETemplateDefColor; //name, defaults - floats. Min/Max is always the same, no need to define it here.
89//typedef Param4<string,vector,vector,vector> PPETemplateDefVector;
90typedef Param2<string,ref array<float>> PPETemplateDefVector; //needs to be compatible with every type of vector (vector2 to vector4), hence array<float>...
91typedef Param2<string,string> PPETemplateDefTexture; //Currently unused, setting these parameters during runtime can prove problematic
92typedef Param2<string,string> PPETemplateDefResource; //Currently unused, setting these parameters during runtime can prove problematic
PPOperators
PP operators, specify operation between subsequent layers.
@ MULTIPLICATIVE
@ SUBSTRACT_REVERSE
@ SUBSTRACT_REVERSE_RELATIVE
@ ADD_RELATIVE
@ OVERRIDE
@ SUBSTRACT_RELATIVE
@ SUBSTRACT
@ SET
@ ADD
@ HIGHEST
@ LOWEST
PPERequesterCategory
@ MENU_EFFECTS
@ GAMEPLAY_EFFECTS
@ ALL
@ MISC_EFFECTS
Param5< string, float, float, float, float > PPETemplateDefColor
Param4< string, int, int, int > PPETemplateDefInt
PPEExceptions
@ EXPOSURE
@ DOF
@ EYEACCOM
@ NONE
@ NVLIGHTPARAMS
Param4< string, float, float, float > PPETemplateDefFloat
Param2 PPETemplateDefBool
PostProcessPrioritiesCamera
PPE type priorities, C++ based. DO NOT CHANGE ORDER! Used only when calling 'SetCameraPostProcessEffe...
Definition ppeconstants.c:3
@ PPP_ROTBLUR
Definition ppeconstants.c:7
@ PPP_COLORGRADE
@ PPP_DYNBLUR
@ PPP_RAIN
Definition ppeconstants.c:9
@ PPP_CHROMABER
@ PPP_DOF
Definition ppeconstants.c:6
@ PPP_FILMGRAIN
@ PPP_MEDIAN
@ PPP_SSAO
Definition ppeconstants.c:4
@ PPP_GAUSS_FILTER
@ PPP_FXAA
@ PPP_RADIALBLUR
@ PPP_CLOUDS
Definition ppeconstants.c:5
@ PPP_DOF_BOKEH
@ PPP_UNDERWATER
@ PPP_GODRAYS
Definition ppeconstants.c:8
@ PPP_SMAA
@ PPP_DISTORT
@ PPP_GLOW
@ PPP_FILMGRAIN_NV
@ PPP_WETDISTORT
Param2< string, string > PPETemplateDefTexture
Param2< string, string > PPETemplateDefResource
Param2< string, ref array< float > > PPETemplateDefVector