| 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 GetAnisotropicDegree: Single; |
| 28 |
procedure SetAnisotropicDegree(const Value: Single); |
| 29 |
function GetBorderColor: TCastleColor; |
| 30 |
procedure SetBorderColor(const Value: TCastleColor); |
| 31 |
function GetBorderWidth: Integer; |
| 32 |
procedure SetBorderWidth(const Value: Integer); |
| 33 |
function GetBoundaryModeS: TBoundaryMode; |
| 34 |
procedure SetBoundaryModeS(const Value: TBoundaryMode); |
| 35 |
function GetBoundaryModeT: TBoundaryMode; |
| 36 |
procedure SetBoundaryModeT(const Value: TBoundaryMode); |
| 37 |
function GetBoundaryModeR: TBoundaryMode; |
| 38 |
procedure SetBoundaryModeR(const Value: TBoundaryMode); |
| 39 |
function GetTextureCompression: String; |
| 40 |
procedure SetTextureCompression(const Value: String); |
| 41 |
function GetTexturePriority: Single; |
| 42 |
procedure SetTexturePriority(const Value: Single); |
| 43 |
function GetGenerateMipMaps: Boolean; |
| 44 |
procedure SetGenerateMipMaps(const Value: Boolean); |
| 45 |
function GetGuiTexture: Boolean; |
| 46 |
procedure SetGuiTexture(const Value: Boolean); |
| 47 |
public |
| 48 |
{ Create node fields and events. } |
| 49 |
procedure CreateNode; override; |
| 50 |
class function ClassX3DType: String; override; |
| 51 |
|
| 52 |
strict private FFdAnisotropicDegree: TSFFloat; |
| 53 |
{ Internal wrapper for property @code(AnisotropicDegree). This wrapper API may change, we advise to access simpler @code(AnisotropicDegree) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 54 |
public property FdAnisotropicDegree: TSFFloat read FFdAnisotropicDegree; |
| 55 |
{ } |
| 56 |
property AnisotropicDegree: Single read GetAnisotropicDegree write SetAnisotropicDegree; |
| 57 |
|
| 58 |
strict private FFdBorderColor: TSFColorRGBA; |
| 59 |
{ Internal wrapper for property @code(BorderColor). This wrapper API may change, we advise to access simpler @code(BorderColor) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 60 |
public property FdBorderColor: TSFColorRGBA read FFdBorderColor; |
| 61 |
{ } |
| 62 |
property BorderColor: TCastleColor read GetBorderColor write SetBorderColor; |
| 63 |
|
| 64 |
strict private FFdBorderWidth: TSFInt32; |
| 65 |
{ Internal wrapper for property @code(BorderWidth). This wrapper API may change, we advise to access simpler @code(BorderWidth) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 66 |
public property FdBorderWidth: TSFInt32 read FFdBorderWidth; |
| 67 |
{ } |
| 68 |
property BorderWidth: Integer read GetBorderWidth write SetBorderWidth; |
| 69 |
|
| 70 |
strict private FFdBoundaryModeS: TSFStringEnum; |
| 71 |
{ Internal wrapper for property @code(BoundaryModeS). This wrapper API may change, we advise to access simpler @code(BoundaryModeS) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 72 |
public property FdBoundaryModeS: TSFStringEnum read FFdBoundaryModeS; |
| 73 |
{ } |
| 74 |
property BoundaryModeS: TBoundaryMode read GetBoundaryModeS write SetBoundaryModeS; |
| 75 |
|
| 76 |
strict private FFdBoundaryModeT: TSFStringEnum; |
| 77 |
{ Internal wrapper for property @code(BoundaryModeT). This wrapper API may change, we advise to access simpler @code(BoundaryModeT) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 78 |
public property FdBoundaryModeT: TSFStringEnum read FFdBoundaryModeT; |
| 79 |
{ } |
| 80 |
property BoundaryModeT: TBoundaryMode read GetBoundaryModeT write SetBoundaryModeT; |
| 81 |
|
| 82 |
strict private FFdBoundaryModeR: TSFStringEnum; |
| 83 |
{ Internal wrapper for property @code(BoundaryModeR). This wrapper API may change, we advise to access simpler @code(BoundaryModeR) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 84 |
public property FdBoundaryModeR: TSFStringEnum read FFdBoundaryModeR; |
| 85 |
{ } |
| 86 |
property BoundaryModeR: TBoundaryMode read GetBoundaryModeR write SetBoundaryModeR; |
| 87 |
|
| 88 |
strict private FFdMagnificationFilter: TSFString; |
| 89 |
{ Internal wrapper for property @code(MagnificationFilter). This wrapper API may change, we advise to access simpler @code(MagnificationFilter) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 90 |
public property FdMagnificationFilter: TSFString read FFdMagnificationFilter; |
| 91 |
|
| 92 |
strict private FFdMinificationFilter: TSFString; |
| 93 |
{ Internal wrapper for property @code(MinificationFilter). This wrapper API may change, we advise to access simpler @code(MinificationFilter) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 94 |
public property FdMinificationFilter: TSFString read FFdMinificationFilter; |
| 95 |
|
| 96 |
strict private FFdTextureCompression: TSFString; |
| 97 |
{ Internal wrapper for property @code(TextureCompression). This wrapper API may change, we advise to access simpler @code(TextureCompression) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 98 |
public property FdTextureCompression: TSFString read FFdTextureCompression; |
| 99 |
{ } |
| 100 |
property TextureCompression: String read GetTextureCompression write SetTextureCompression; |
| 101 |
|
| 102 |
strict private FFdTexturePriority: TSFFloat; |
| 103 |
{ Internal wrapper for property @code(TexturePriority). This wrapper API may change, we advise to access simpler @code(TexturePriority) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 104 |
public property FdTexturePriority: TSFFloat read FFdTexturePriority; |
| 105 |
{ } |
| 106 |
property TexturePriority: Single read GetTexturePriority write SetTexturePriority; |
| 107 |
|
| 108 |
strict private FFdGenerateMipMaps: TSFBool; |
| 109 |
{ Internal wrapper for property @code(GenerateMipMaps). This wrapper API may change, we advise to access simpler @code(GenerateMipMaps) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 110 |
public property FdGenerateMipMaps: TSFBool read FFdGenerateMipMaps; |
| 111 |
{ } |
| 112 |
property GenerateMipMaps: Boolean read GetGenerateMipMaps write SetGenerateMipMaps; |
| 113 |
|
| 114 |
strict private FFdGuiTexture: TSFBool; |
| 115 |
{ Internal wrapper for property @code(GuiTexture). This wrapper API may change, we advise to access simpler @code(GuiTexture) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 116 |
public property FdGuiTexture: TSFBool read FFdGuiTexture; |
| 117 |
{ } |
| 118 |
property GuiTexture: Boolean read GetGuiTexture write SetGuiTexture; |
| 119 |
|
| 120 |
{$endif read_interface} |
| 121 |
|
| 122 |
{$ifdef read_implementation} |
| 123 |
|
| 124 |
{ TTexturePropertiesNode ----------------------------------------------- } |
| 125 |
|
| 126 |
function TTexturePropertiesNode.GetAnisotropicDegree: Single; |
| 127 |
begin |
| 128 |
Result := FdAnisotropicDegree.Value; |
| 129 |
end; |
| 130 |
|
| 131 |
procedure TTexturePropertiesNode.SetAnisotropicDegree(const Value: Single); |
| 132 |
begin |
| 133 |
FdAnisotropicDegree.Send(Value); |
| 134 |
end; |
| 135 |
|
| 136 |
function TTexturePropertiesNode.GetBorderColor: TCastleColor; |
| 137 |
begin |
| 138 |
Result := FdBorderColor.Value; |
| 139 |
end; |
| 140 |
|
| 141 |
procedure TTexturePropertiesNode.SetBorderColor(const Value: TCastleColor); |
| 142 |
begin |
| 143 |
FdBorderColor.Send(Value); |
| 144 |
end; |
| 145 |
|
| 146 |
function TTexturePropertiesNode.GetBorderWidth: Integer; |
| 147 |
begin |
| 148 |
Result := FdBorderWidth.Value; |
| 149 |
end; |
| 150 |
|
| 151 |
procedure TTexturePropertiesNode.SetBorderWidth(const Value: Integer); |
| 152 |
begin |
| 153 |
FdBorderWidth.Send(Value); |
| 154 |
end; |
| 155 |
|
| 156 |
function TTexturePropertiesNode.GetBoundaryModeS: TBoundaryMode; |
| 157 |
begin |
| 158 |
Result := TBoundaryMode(FdBoundaryModeS.EnumValue); |
| 159 |
end; |
| 160 |
|
| 161 |
procedure TTexturePropertiesNode.SetBoundaryModeS(const Value: TBoundaryMode); |
| 162 |
begin |
| 163 |
FdBoundaryModeS.SendEnumValue(Ord(Value)); |
| 164 |
end; |
| 165 |
|
| 166 |
function TTexturePropertiesNode.GetBoundaryModeT: TBoundaryMode; |
| 167 |
begin |
| 168 |
Result := TBoundaryMode(FdBoundaryModeT.EnumValue); |
| 169 |
end; |
| 170 |
|
| 171 |
procedure TTexturePropertiesNode.SetBoundaryModeT(const Value: TBoundaryMode); |
| 172 |
begin |
| 173 |
FdBoundaryModeT.SendEnumValue(Ord(Value)); |
| 174 |
end; |
| 175 |
|
| 176 |
function TTexturePropertiesNode.GetBoundaryModeR: TBoundaryMode; |
| 177 |
begin |
| 178 |
Result := TBoundaryMode(FdBoundaryModeR.EnumValue); |
| 179 |
end; |
| 180 |
|
| 181 |
procedure TTexturePropertiesNode.SetBoundaryModeR(const Value: TBoundaryMode); |
| 182 |
begin |
| 183 |
FdBoundaryModeR.SendEnumValue(Ord(Value)); |
| 184 |
end; |
| 185 |
|
| 186 |
function TTexturePropertiesNode.GetTextureCompression: String; |
| 187 |
begin |
| 188 |
Result := FdTextureCompression.Value; |
| 189 |
end; |
| 190 |
|
| 191 |
procedure TTexturePropertiesNode.SetTextureCompression(const Value: String); |
| 192 |
begin |
| 193 |
FdTextureCompression.Send(Value); |
| 194 |
end; |
| 195 |
|
| 196 |
function TTexturePropertiesNode.GetTexturePriority: Single; |
| 197 |
begin |
| 198 |
Result := FdTexturePriority.Value; |
| 199 |
end; |
| 200 |
|
| 201 |
procedure TTexturePropertiesNode.SetTexturePriority(const Value: Single); |
| 202 |
begin |
| 203 |
FdTexturePriority.Send(Value); |
| 204 |
end; |
| 205 |
|
| 206 |
function TTexturePropertiesNode.GetGenerateMipMaps: Boolean; |
| 207 |
begin |
| 208 |
Result := FdGenerateMipMaps.Value; |
| 209 |
end; |
| 210 |
|
| 211 |
procedure TTexturePropertiesNode.SetGenerateMipMaps(const Value: Boolean); |
| 212 |
begin |
| 213 |
FdGenerateMipMaps.Send(Value); |
| 214 |
end; |
| 215 |
|
| 216 |
function TTexturePropertiesNode.GetGuiTexture: Boolean; |
| 217 |
begin |
| 218 |
Result := FdGuiTexture.Value; |
| 219 |
end; |
| 220 |
|
| 221 |
procedure TTexturePropertiesNode.SetGuiTexture(const Value: Boolean); |
| 222 |
begin |
| 223 |
FdGuiTexture.Send(Value); |
| 224 |
end; |
| 225 |
|
| 226 |
class function TTexturePropertiesNode.ClassX3DType: String; |
| 227 |
begin |
| 228 |
Result := 'TextureProperties'; |
| 229 |
end; |
| 230 |
|
| 231 |
procedure TTexturePropertiesNode.CreateNode; |
| 232 |
begin |
| 233 |
inherited; |
| 234 |
|
| 235 |
FFdAnisotropicDegree := TSFFloat.Create(Self, True, 'anisotropicDegree', 1.0); |
| 236 |
FdAnisotropicDegree.ChangeAlways := chTexturePropertiesNode; |
| 237 |
AddField(FFdAnisotropicDegree); |
| 238 |
|
| 239 |
FFdBorderColor := TSFColorRGBA.Create(Self, True, 'borderColor', Vector4(0, 0, 0, 0)); |
| 240 |
FdBorderColor.ChangeAlways := chTexturePropertiesNode; |
| 241 |
AddField(FFdBorderColor); |
| 242 |
|
| 243 |
FFdBorderWidth := TSFInt32.Create(Self, True, 'borderWidth', 0); |
| 244 |
FdBorderWidth.ChangeAlways := chTexturePropertiesNode; |
| 245 |
FdBorderWidth.MustBeNonnegative := true; |
| 246 |
AddField(FFdBorderWidth); |
| 247 |
|
| 248 |
FFdBoundaryModeS := TSFStringEnum.Create(Self, True, 'boundaryModeS', @BoundaryModeNames, Ord(High(BoundaryModeNames)) + 1, Ord(bmRepeat)); |
| 249 |
FdBoundaryModeS.ChangeAlways := chTexturePropertiesNode; |
| 250 |
AddField(FFdBoundaryModeS); |
| 251 |
|
| 252 |
FFdBoundaryModeT := TSFStringEnum.Create(Self, True, 'boundaryModeT', @BoundaryModeNames, Ord(High(BoundaryModeNames)) + 1, Ord(bmRepeat)); |
| 253 |
FdBoundaryModeT.ChangeAlways := chTexturePropertiesNode; |
| 254 |
AddField(FFdBoundaryModeT); |
| 255 |
|
| 256 |
FFdBoundaryModeR := TSFStringEnum.Create(Self, True, 'boundaryModeR', @BoundaryModeNames, Ord(High(BoundaryModeNames)) + 1, Ord(bmRepeat)); |
| 257 |
FdBoundaryModeR.ChangeAlways := chTexturePropertiesNode; |
| 258 |
AddField(FFdBoundaryModeR); |
| 259 |
|
| 260 |
FFdMagnificationFilter := TSFString.Create(Self, True, 'magnificationFilter', 'DEFAULT'); |
| 261 |
FdMagnificationFilter.ChangeAlways := chTexturePropertiesNode; |
| 262 |
AddField(FFdMagnificationFilter); |
| 263 |
|
| 264 |
FFdMinificationFilter := TSFString.Create(Self, True, 'minificationFilter', 'DEFAULT'); |
| 265 |
FdMinificationFilter.ChangeAlways := chTexturePropertiesNode; |
| 266 |
AddField(FFdMinificationFilter); |
| 267 |
|
| 268 |
FFdTextureCompression := TSFString.Create(Self, True, 'textureCompression', 'FASTEST'); |
| 269 |
FdTextureCompression.ChangeAlways := chTexturePropertiesNode; |
| 270 |
AddField(FFdTextureCompression); |
| 271 |
|
| 272 |
FFdTexturePriority := TSFFloat.Create(Self, True, 'texturePriority', 0); |
| 273 |
FdTexturePriority.ChangeAlways := chTexturePropertiesNode; |
| 274 |
FdTexturePriority.MustBeNonnegative := true; |
| 275 |
AddField(FFdTexturePriority); |
| 276 |
|
| 277 |
FFdGenerateMipMaps := TSFBool.Create(Self, False, 'generateMipMaps', false); |
| 278 |
FdGenerateMipMaps.ChangeAlways := chTexturePropertiesNode; |
| 279 |
AddField(FFdGenerateMipMaps); |
| 280 |
|
| 281 |
FFdGuiTexture := TSFBool.Create(Self, False, 'guiTexture', false); |
| 282 |
FdGuiTexture.ChangeAlways := chTexturePropertiesNode; |
| 283 |
AddField(FFdGuiTexture); |
| 284 |
|
| 285 |
DefaultContainerField := 'textureProperties'; |
| 286 |
end; |
| 287 |
|
| 288 |
{$endif read_implementation} |