| 1 |
{%MainUnit x3dnodes.pas} |
| 2 |
{ |
| 3 |
Copyright 2008-2021 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 |
{$ifdef read_interface} |
| 18 |
{ Type of @link(TParticleSystemNode.GeometryType). |
| 19 |
See X3D specification about the possible geometry types for particles: |
| 20 |
https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/particle_systems.html#ParticleSystem } |
| 21 |
TParticlesGeometry = (pgLine, pgPoint, pgQuad, pgSprite, pgTriangle, pgGeometry); |
| 22 |
|
| 23 |
{ } |
| 24 |
TAbstractParticleEmitterNode = class(TAbstractNode) |
| 25 |
{$I auto_generated_node_helpers/x3dnodes_x3dparticleemitternode.inc} |
| 26 |
end; |
| 27 |
|
| 28 |
TAbstractParticlePhysicsModelNode = class(TAbstractNode) |
| 29 |
{$I auto_generated_node_helpers/x3dnodes_x3dparticlephysicsmodelnode.inc} |
| 30 |
end; |
| 31 |
|
| 32 |
TBoundedPhysicsModelNode = class(TAbstractParticlePhysicsModelNode) |
| 33 |
{$I auto_generated_node_helpers/x3dnodes_boundedphysicsmodel.inc} |
| 34 |
end; |
| 35 |
|
| 36 |
TConeEmitterNode = class(TAbstractParticleEmitterNode) |
| 37 |
{$I auto_generated_node_helpers/x3dnodes_coneemitter.inc} |
| 38 |
end; |
| 39 |
|
| 40 |
TExplosionEmitterNode = class(TAbstractParticleEmitterNode) |
| 41 |
{$I auto_generated_node_helpers/x3dnodes_explosionemitter.inc} |
| 42 |
end; |
| 43 |
|
| 44 |
TForcePhysicsModelNode = class(TAbstractParticlePhysicsModelNode) |
| 45 |
{$I auto_generated_node_helpers/x3dnodes_forcephysicsmodel.inc} |
| 46 |
end; |
| 47 |
|
| 48 |
TParticleSystemNode = class(TAbstractShapeNode) |
| 49 |
{$I auto_generated_node_helpers/x3dnodes_particlesystem.inc} |
| 50 |
end; |
| 51 |
|
| 52 |
TPointEmitterNode = class(TAbstractParticleEmitterNode) |
| 53 |
{$I auto_generated_node_helpers/x3dnodes_pointemitter.inc} |
| 54 |
end; |
| 55 |
|
| 56 |
TPolylineEmitterNode = class(TAbstractParticleEmitterNode) |
| 57 |
{$I auto_generated_node_helpers/x3dnodes_polylineemitter.inc} |
| 58 |
end; |
| 59 |
|
| 60 |
TSurfaceEmitterNode = class(TAbstractParticleEmitterNode) |
| 61 |
{$I auto_generated_node_helpers/x3dnodes_surfaceemitter.inc} |
| 62 |
end; |
| 63 |
|
| 64 |
TVolumeEmitterNode = class(TAbstractParticleEmitterNode) |
| 65 |
{$I auto_generated_node_helpers/x3dnodes_volumeemitter.inc} |
| 66 |
end; |
| 67 |
|
| 68 |
TWindPhysicsModelNode = class(TAbstractParticlePhysicsModelNode) |
| 69 |
{$I auto_generated_node_helpers/x3dnodes_windphysicsmodel.inc} |
| 70 |
end; |
| 71 |
|
| 72 |
{$endif read_interface} |
| 73 |
|
| 74 |
{$ifdef read_implementation} |
| 75 |
|
| 76 |
const |
| 77 |
ParticlesGeometryNames: array [TParticlesGeometry] of String = |
| 78 |
('LINE', 'POINT', 'QUAD', 'SPRITE', 'TRIANGLE', 'GEOMETRY'); |
| 79 |
|
| 80 |
{$I auto_generated_node_helpers/x3dnodes_x3dparticleemitternode.inc} |
| 81 |
{$I auto_generated_node_helpers/x3dnodes_x3dparticlephysicsmodelnode.inc} |
| 82 |
{$I auto_generated_node_helpers/x3dnodes_boundedphysicsmodel.inc} |
| 83 |
{$I auto_generated_node_helpers/x3dnodes_coneemitter.inc} |
| 84 |
{$I auto_generated_node_helpers/x3dnodes_explosionemitter.inc} |
| 85 |
{$I auto_generated_node_helpers/x3dnodes_forcephysicsmodel.inc} |
| 86 |
{$I auto_generated_node_helpers/x3dnodes_particlesystem.inc} |
| 87 |
{$I auto_generated_node_helpers/x3dnodes_pointemitter.inc} |
| 88 |
{$I auto_generated_node_helpers/x3dnodes_polylineemitter.inc} |
| 89 |
{$I auto_generated_node_helpers/x3dnodes_surfaceemitter.inc} |
| 90 |
{$I auto_generated_node_helpers/x3dnodes_volumeemitter.inc} |
| 91 |
{$I auto_generated_node_helpers/x3dnodes_windphysicsmodel.inc} |
| 92 |
|
| 93 |
procedure RegisterParticleSystemsNodes; |
| 94 |
begin |
| 95 |
NodesManager.RegisterNodeClasses([ |
| 96 |
TBoundedPhysicsModelNode, |
| 97 |
TConeEmitterNode, |
| 98 |
TExplosionEmitterNode, |
| 99 |
TForcePhysicsModelNode, |
| 100 |
TParticleSystemNode, |
| 101 |
TPointEmitterNode, |
| 102 |
TPolylineEmitterNode, |
| 103 |
TSurfaceEmitterNode, |
| 104 |
TVolumeEmitterNode, |
| 105 |
TWindPhysicsModelNode |
| 106 |
]); |
| 107 |
end; |
| 108 |
|
| 109 |
{$endif read_implementation} |