Debian Codegraph @

src/scene/x3d/castleinternalnodesunsupported.pas

raw
1 {
2 Copyright 2023-2023 Michalis Kamburelis.
3
4 This file is part of "Castle Game Engine".
5
6 "Castle Game Engine" is free software; see the file COPYING.txt,
7 included in this distribution, for details about the copyright.
8
9 "Castle Game Engine" is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
13 ----------------------------------------------------------------------------
14 }
15
16 { Unsupported X3D nodes.
17 These nodes are defined to follow the latest X3D specification,
18 and we can perfectly read and write them in X3D, but nothing more.
19 These nodes do not cause any functionality (rendering, interaction, etc.)
20 in Castle Game Engine @italic(for now).
21 So there's no point using them in Pascal application (unless you'd want
22 to generate X3D files to be consumed by other applications, but this is
23 not a common CGE use-case).
24
25 We deliberately define them in this internal unit, not in X3DNodes unit,
26 to limit their usage by mistake.
27 E.g. we don't want developers to accidentally use (unsupported)
28 TTextureProjectorNode in their code, inatead of (supported)
29 TProjectedTextureCoordinateNode. }
30 unit CastleInternalNodesUnsupported;
31
32 interface
33
34 uses X3DNodes, X3DFields, CastleVectors, CastleStringUtils, CastleColors,
35 CastleTimeUtils, CastleUtils, CastleBoxes;
36
37 {$define read_interface}
38
39 type
40 {$I x3dnodes_standard_geospatial.inc}
41 {$I x3dnodes_standard_dis.inc}
42 {$I x3dnodes_standard_layering.inc}
43 {$I x3dnodes_standard_layout.inc}
44 {$I x3dnodes_standard_rigidbodyphysics.inc}
45 {$I x3dnodes_standard_picking.inc}
46 {$I x3dnodes_standard_followers.inc}
47 {$I x3dnodes_standard_particlesystems.inc}
48 {$I x3dnodes_standard_textureprojector.inc}
49
50 {$undef read_interface}
51
52 procedure RegisterUnsupportedNodes;
53
54 implementation
55
56 uses SysUtils;
57
58 {$define read_implementation}
59
60 {$I x3dnodes_standard_geospatial.inc}
61 {$I x3dnodes_standard_dis.inc}
62 {$I x3dnodes_standard_layering.inc}
63 {$I x3dnodes_standard_layout.inc}
64 {$I x3dnodes_standard_rigidbodyphysics.inc}
65 {$I x3dnodes_standard_picking.inc}
66 {$I x3dnodes_standard_followers.inc}
67 {$I x3dnodes_standard_particlesystems.inc}
68 {$I x3dnodes_standard_textureprojector.inc}
69
70 procedure RegisterUnsupportedNodes;
71 begin
72 RegisterDISNodes;
73 RegisterGeospatialNodes;
74 RegisterLayeringNodes;
75 RegisterLayoutNodes;
76 RegisterRigidBodyPhysicsNodes;
77 RegisterPickingNodes;
78 RegisterFollowersNodes;
79 RegisterParticleSystemsNodes;
80 RegisterTextureProjectorNodes;
81 end;
82
83 end.