Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_screeneffect.inc

raw
1 { -*- buffer-read-only: t -*-
2
3 Copyright 2015-2024 Michalis Kamburelis.
4
5 This file is part of "Castle Game Engine".
6
7 "Castle Game Engine" is free software; see the file COPYING.txt,
8 included in this distribution, for details about the copyright.
9
10 "Castle Game Engine" is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
14 ----------------------------------------------------------------------------
15 }
16
17 { Automatically generated node properties.
18
19 Do not edit this file manually!
20 To add new properties:
21 - add them to the text files in tools/internal/x3d-nodes-to-pascal/nodes-specification/ ,
22 - and regenerate include files by running x3d-nodes-to-pascal }
23
24 {$ifdef read_interface}
25
26 strict private
27 function GetEnabled: Boolean;
28 procedure SetEnabled(const Value: Boolean);
29 function GetNeedsDepth: Boolean;
30 procedure SetNeedsDepth(const Value: Boolean);
31 public
32 { Create node fields and events. }
33 procedure CreateNode; override;
34 class function ClassX3DType: String; override;
35
36 strict private FFdEnabled: TSFBool;
37 { Internal wrapper for property @code(Enabled). This wrapper API may change, we advise to access simpler @code(Enabled) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
38 public property FdEnabled: TSFBool read FFdEnabled;
39 { }
40 property Enabled: Boolean read GetEnabled write SetEnabled;
41
42 strict private FFdNeedsDepth: TSFBool;
43 { Internal wrapper for property @code(NeedsDepth). This wrapper API may change, we advise to access simpler @code(NeedsDepth) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
44 public property FdNeedsDepth: TSFBool read FFdNeedsDepth;
45 { }
46 property NeedsDepth: Boolean read GetNeedsDepth write SetNeedsDepth;
47
48 strict private FFdShaders: TMFNode;
49 { Internal wrapper for property @code(Shaders). This wrapper API may change, we advise to access simpler @code(Shaders) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
50 public property FdShaders: TMFNode read FFdShaders;
51 { }
52 procedure SetShaders(const Value: array of TAbstractShaderNode);
53
54 {$endif read_interface}
55
56 {$ifdef read_implementation}
57
58 { TScreenEffectNode ----------------------------------------------- }
59
60 function TScreenEffectNode.GetEnabled: Boolean;
61 begin
62 Result := FdEnabled.Value;
63 end;
64
65 procedure TScreenEffectNode.SetEnabled(const Value: Boolean);
66 begin
67 FdEnabled.Send(Value);
68 end;
69
70 function TScreenEffectNode.GetNeedsDepth: Boolean;
71 begin
72 Result := FdNeedsDepth.Value;
73 end;
74
75 procedure TScreenEffectNode.SetNeedsDepth(const Value: Boolean);
76 begin
77 FdNeedsDepth.Send(Value);
78 end;
79
80 procedure TScreenEffectNode.SetShaders(const Value: array of TAbstractShaderNode);
81 var
82 L: Integer;
83 A: array of TX3DNode;
84 begin
85 L := High(Value) + 1;
86 SetLength(A, L);
87 if L > 0 then
88 Move(Value[0], A[0], L * SizeOf(TAbstractShaderNode));
89 FdShaders.Send(A);
90 end;
91
92 class function TScreenEffectNode.ClassX3DType: String;
93 begin
94 Result := 'ScreenEffect';
95 end;
96
97 procedure TScreenEffectNode.CreateNode;
98 begin
99 inherited;
100
101 FFdEnabled := TSFBool.Create(Self, True, 'enabled', true);
102 FdEnabled.ChangeAlways := chScreenEffectEnabled;
103 AddField(FFdEnabled);
104
105 FFdNeedsDepth := TSFBool.Create(Self, True, 'needsDepth', false);
106 FdNeedsDepth.ChangeAlways := chRedisplay;
107 AddField(FFdNeedsDepth);
108
109 FFdShaders := TMFNode.Create(Self, True, 'shaders', [TAbstractShaderNode]);
110 FdShaders.ChangeAlways := chEverything;
111 AddField(FFdShaders);
112 end;
113
114 {$endif read_implementation}