Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
ppeconstants.c
Go to the documentation of this file.
3 {
23  PPP_MEDIAN, //unused?
24  //PPP_SSR
25 };
26 
28 {
29  NONE = 0;
30  GAMEPLAY_EFFECTS = 2;
31  MENU_EFFECTS = 4;
32  MISC_EFFECTS = 8;
33  ALL = 14; //GAMEPLAY_EFFECTS|MENU_EFFECTS|MISC_EFFECTS
34 };
35 
42 {
43  NONE = -1,
44  EXPOSURE = 50,
45  DOF,
48 };
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 
66 class PPEConstants
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 
85 typedef Param4<string,int,int,int> PPETemplateDefInt;
86 typedef Param4<string,float,float,float> PPETemplateDefFloat; //name, default, min, max
87 typedef 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;
89 typedef Param2<string,ref array<float>> PPETemplateDefVector; //needs to be compatible with every type of vector (vector2 to vector4), hence array<float>...
90 typedef Param2<string,string> PPETemplateDefTexture; //Currently unused, setting these parameters during runtime can prove problematic
91 typedef Param2<string,string> PPETemplateDefResource; //Currently unused, setting these parameters during runtime can prove problematic
Param2
Definition: ppeconstants.c:66
PPP_GAUSS_FILTER
@ PPP_GAUSS_FILTER
Definition: ppeconstants.c:22
SUBSTRACT_REVERSE_RELATIVE
@ SUBSTRACT_REVERSE_RELATIVE
Definition: ppeconstants.c:60
PPETemplateDefVector
Param2< string, ref array< float > > PPETemplateDefVector
Definition: ppeconstants.c:89
PPETemplateDefResource
Param2< string, string > PPETemplateDefResource
Definition: ppeconstants.c:91
SUBSTRACT_REVERSE
@ SUBSTRACT_REVERSE
Definition: ppeconstants.c:59
HIGHEST
@ HIGHEST
Definition: ppeconstants.c:54
LOWEST
@ LOWEST
Definition: ppeconstants.c:53
PPP_ROTBLUR
@ PPP_ROTBLUR
Definition: ppeconstants.c:7
PPP_DOF
@ PPP_DOF
Definition: ppeconstants.c:6
OVERRIDE
@ OVERRIDE
Definition: ppeconstants.c:63
PPP_DYNBLUR
@ PPP_DYNBLUR
Definition: ppeconstants.c:13
PPETemplateDefColor
Param5< string, float, float, float, float > PPETemplateDefColor
Definition: ppeconstants.c:87
PPP_RADIALBLUR
@ PPP_RADIALBLUR
Definition: ppeconstants.c:10
PPP_GLOW
@ PPP_GLOW
Definition: ppeconstants.c:17
PPETemplateDefBool
Param2 PPETemplateDefBool
PPP_GODRAYS
@ PPP_GODRAYS
Definition: ppeconstants.c:8
PPP_CLOUDS
@ PPP_CLOUDS
Definition: ppeconstants.c:5
PPETemplateDefInt
Param4< string, int, int, int > PPETemplateDefInt
Definition: ppeconstants.c:85
PPP_COLORGRADE
@ PPP_COLORGRADE
Definition: ppeconstants.c:16
PPP_FXAA
@ PPP_FXAA
Definition: ppeconstants.c:20
PPETemplateDefTexture
Param2< string, string > PPETemplateDefTexture
Definition: ppeconstants.c:90
NONE
@ NONE
Definition: ppeconstants.c:43
ADD
@ ADD
Definition: ppeconstants.c:55
PPP_FILMGRAIN
@ PPP_FILMGRAIN
Definition: ppeconstants.c:18
PPP_FILMGRAIN_NV
@ PPP_FILMGRAIN_NV
Definition: ppeconstants.c:19
EYEACCOM
@ EYEACCOM
Definition: ppeconstants.c:46
SUBSTRACT
@ SUBSTRACT
Definition: ppeconstants.c:57
PPP_DOF_BOKEH
@ PPP_DOF_BOKEH
Definition: ppeconstants.c:15
PPP_RAIN
@ PPP_RAIN
Definition: ppeconstants.c:9
PPP_MEDIAN
@ PPP_MEDIAN
Definition: ppeconstants.c:23
PPP_CHROMABER
@ PPP_CHROMABER
Definition: ppeconstants.c:11
MULTIPLICATIVE
@ MULTIPLICATIVE
Definition: ppeconstants.c:61
SET
@ SET
Definition: ppeconstants.c:62
PPP_SMAA
@ PPP_SMAA
Definition: ppeconstants.c:21
PPEExceptions
PPEExceptions
Definition: ppeconstants.c:41
SUBSTRACT_RELATIVE
@ SUBSTRACT_RELATIVE
Definition: ppeconstants.c:58
ADD_RELATIVE
@ ADD_RELATIVE
Definition: ppeconstants.c:56
PPERequesterCategory
PPERequesterCategory
Definition: ppeconstants.c:27
PostProcessPrioritiesCamera
PostProcessPrioritiesCamera
PPE type priorities, C++ based. DO NOT CHANGE ORDER! Used only when calling 'SetCameraPostProcessEffe...
Definition: ppeconstants.c:2
PPOperators
PPOperators
PP operators, specify operation between subsequent layers.
Definition: ppeconstants.c:51
ALL
@ ALL
Definition: ppeconstants.c:33
NVLIGHTPARAMS
@ NVLIGHTPARAMS
Definition: ppeconstants.c:47
EXPOSURE
@ EXPOSURE
Definition: ppeconstants.c:44
PPP_UNDERWATER
@ PPP_UNDERWATER
Definition: ppeconstants.c:14
PPP_WETDISTORT
@ PPP_WETDISTORT
Definition: ppeconstants.c:12
PPP_SSAO
@ PPP_SSAO
Definition: ppeconstants.c:4
DOF
@ DOF
Definition: ppeconstants.c:45
PPETemplateDefFloat
Param4< string, float, float, float > PPETemplateDefFloat
Definition: ppeconstants.c:86