Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_x3dtexture2dnode.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 GetRepeatS: Boolean;
28 procedure SetRepeatS(const Value: Boolean);
29 function GetRepeatT: Boolean;
30 procedure SetRepeatT(const Value: Boolean);
31 function GetTextureProperties: TTexturePropertiesNode;
32 procedure SetTextureProperties(const Value: TTexturePropertiesNode);
33 public
34 { Create node fields and events. }
35 procedure CreateNode; override;
36 class function ClassX3DType: String; override;
37
38 strict private FFdRepeatS: TSFBool;
39 { Internal wrapper for property @code(RepeatS). This wrapper API may change, we advise to access simpler @code(RepeatS) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
40 public property FdRepeatS: TSFBool read FFdRepeatS;
41 { }
42 property RepeatS: Boolean read GetRepeatS write SetRepeatS;
43
44 strict private FFdRepeatT: TSFBool;
45 { Internal wrapper for property @code(RepeatT). This wrapper API may change, we advise to access simpler @code(RepeatT) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
46 public property FdRepeatT: TSFBool read FFdRepeatT;
47 { }
48 property RepeatT: Boolean read GetRepeatT write SetRepeatT;
49
50 strict private FFdTextureProperties: TSFNode;
51 { Internal wrapper for property @code(TextureProperties). This wrapper API may change, we advise to access simpler @code(TextureProperties) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
52 public property FdTextureProperties: TSFNode read FFdTextureProperties;
53 { }
54 property TextureProperties: TTexturePropertiesNode read GetTextureProperties write SetTextureProperties;
55
56 {$endif read_interface}
57
58 {$ifdef read_implementation}
59
60 { TAbstractTexture2DNode ----------------------------------------------- }
61
62 function TAbstractTexture2DNode.GetRepeatS: Boolean;
63 begin
64 Result := FdRepeatS.Value;
65 end;
66
67 procedure TAbstractTexture2DNode.SetRepeatS(const Value: Boolean);
68 begin
69 FdRepeatS.Send(Value);
70 end;
71
72 function TAbstractTexture2DNode.GetRepeatT: Boolean;
73 begin
74 Result := FdRepeatT.Value;
75 end;
76
77 procedure TAbstractTexture2DNode.SetRepeatT(const Value: Boolean);
78 begin
79 FdRepeatT.Send(Value);
80 end;
81
82 function TAbstractTexture2DNode.GetTextureProperties: TTexturePropertiesNode;
83 begin
84 if FdTextureProperties.Value is TTexturePropertiesNode then
85 Result := TTexturePropertiesNode(FdTextureProperties.Value)
86 else
87 Result := nil;
88 end;
89
90 procedure TAbstractTexture2DNode.SetTextureProperties(const Value: TTexturePropertiesNode);
91 begin
92 FdTextureProperties.Send(Value);
93 end;
94
95 class function TAbstractTexture2DNode.ClassX3DType: String;
96 begin
97 Result := 'X3DTexture2DNode';
98 end;
99
100 procedure TAbstractTexture2DNode.CreateNode;
101 begin
102 inherited;
103
104 FFdRepeatS := TSFBool.Create(Self, False, 'repeatS', true);
105 FdRepeatS.ChangeAlways := chTextureRendererProperties;
106 AddField(FFdRepeatS);
107
108 FFdRepeatT := TSFBool.Create(Self, False, 'repeatT', true);
109 FdRepeatT.ChangeAlways := chTextureRendererProperties;
110 AddField(FFdRepeatT);
111
112 FFdTextureProperties := TSFNode.Create(Self, False, 'textureProperties', [TTexturePropertiesNode]);
113 FdTextureProperties.ChangeAlways := chTextureRendererProperties;
114 AddField(FFdTextureProperties);
115 end;
116
117 {$endif read_implementation}