DayZ 1.24
Loading...
Searching...
No Matches
PPEConstants.c
Go to the documentation of this file.
1
26
28{
29 NONE = 0;
31 MENU_EFFECTS = 4;
32 MISC_EFFECTS = 8;
33 ALL = 14; //GAMEPLAY_EFFECTS|MENU_EFFECTS|MISC_EFFECTS
34};
35
49
52{
53 LOWEST, //only lowest value gets used. Note - if first request, it is compared against default values!
54 HIGHEST, //only highest value gets used. Note - if first request, it is compared against default values!
55 ADD, //LINEAR addition
56 ADD_RELATIVE, //LINEAR relative addition (relative to diff between current and max, where applicable. Otherwise used as absolute addition)
57 SUBSTRACT, //LINEAR substraction
58 SUBSTRACT_RELATIVE, //LINEAR relative substraction
59 SUBSTRACT_REVERSE, //LINEAR sub. target from dst
60 SUBSTRACT_REVERSE_RELATIVE, //LINEAR relative sub. target from dst
61 MULTIPLICATIVE, //LINEAR multiplication
62 SET, //sets the value, does not terminate possible further calculations
63 OVERRIDE //does not interact; sets the value, and terminates possible further calculations. Use with care, preferred use is SET with higher priority command
64};
65
67{
68 static const int VAR_TYPE_BOOL = 1;
69 static const int VAR_TYPE_INT = 2;
70 static const int VAR_TYPE_FLOAT = 4;
71 static const int VAR_TYPE_COLOR = 8;
72 static const int VAR_TYPE_VECTOR = 16;
73
74 static const int VAR_TYPE_BLENDABLE = VAR_TYPE_INT | VAR_TYPE_FLOAT | VAR_TYPE_COLOR;
75 static const int VAR_TYPE_TEXTURE = 32;
76 static const int VAR_TYPE_RESOURCE = 64;
77
78 //static const int VALUE_MAX_COLOR = 255; //if only...
79
80 static const int DEPENDENCY_ORDER_BASE = 0;
81 static const int DEPENDENCY_ORDER_HIGHEST = 1;
82}
83
87typedef Param5<string, float, float, float, float> PPETemplateDefColor; //name, defaults - floats. Min/Max is always the same, no need to define it here.
88//typedef Param4<string,vector,vector,vector> PPETemplateDefVector;
89typedef Param2<string, ref array<float>> PPETemplateDefVector; //needs to be compatible with every type of vector (vector2 to vector4), hence array<float>...
90typedef Param2<string, string> PPETemplateDefTexture; //Currently unused, setting these parameters during runtime can prove problematic
91typedef 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
Param2< string, ref array< float > > PPETemplateDefVector
Param4< string, float, float, float > PPETemplateDefFloat
PPERequesterCategory
@ ALL
Param2< string, string > PPETemplateDefResource
Param2< string, string > PPETemplateDefTexture
Param4< string, int, int, int > PPETemplateDefInt
Param5< string, float, float, float, float > PPETemplateDefColor
PPEExceptions
@ EXPOSURE
@ DOF
@ EYEACCOM
@ NONE
@ NVLIGHTPARAMS
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_GLOW
@ PPP_FILMGRAIN_NV
@ PPP_WETDISTORT