Property | Type | Description | |
---|---|---|---|
buildCount | int | ||
built | bool | ||
castShadows | bool | ||
halfRegionDimensions | Vector3 | ||
logLevel | int | ||
name | string | ||
optimisedSubMeshGeometryList | List |
||
origin | Vector3 | ||
owner | |||
queuedSubMeshes | List |
||
regionDimensions | Vector3 | ||
regionHalfRange | int | ||
regionMap | Region>.Dictionary | ||
regionMaxIndex | int | ||
regionMinIndex | int | ||
regionRange | int | ||
regionSize | int | ||
renderQueueID | RenderQueueGroupID | ||
renderQueueIDSet | bool | ||
squaredUpperDistance | float | ||
subMeshGeometryLookup | List | ||
upperDistance | float | ||
visible | bool |
Method | Description | |
---|---|---|
AddEntity ( Entity ent, Vector3 position, Axiom.MathLib.Quaternion orientation, Vector3 scale ) : void |
Adds an Entity to the static geometry. This method takes an existing Entity and adds its details to the list of elements to include when building. Note that the Entity itself is not copied or referenced in this method; an Entity is passed simply so that you can change the materials of attached SubEntity objects if you want. You can add the same Entity instance multiple times with different material settings completely safely, and destroy the Entity before destroying this StaticGeometry if you like. The Entity passed in is simply used as a definition. Note: Must be called before 'build'. |
|
AddSceneNode ( |
Adds all the Entity objects attached to a SceneNode and all it's children to the static geometry. This method performs just like addEntity, except it adds all the entities attached to an entire sub-tree to the geometry. The position / orientation / scale parameters are taken from the node structure instead of being specified manually. |
|
Build ( ) : void |
Build the geometry. Based on all the entities which have been added, and the batching options which have been set, this method constructs the batched geometry structures required. The batches are added to the scene and will be rendered unless you specifically hide them. |
|
Destroy ( ) : void |
Destroys all the built geometry state (reverse of build). You can call build() again after this and it will pick up all the same entities / nodes you queued last time. |
|
Dump ( ) : void | ||
Reset ( ) : void |
Clears any of the entities / nodes added to this geometry and destroys anything which has already been built.
|
|
StaticGeometry ( |
Method | Description | |
---|---|---|
CalculateBounds ( |
||
DetermineGeometry ( |
||
GetRegion ( Axiom.MathLib.AxisAlignedBox bounds, bool autoCreate ) : Axiom.Core.Region | ||
GetRegion ( Vector3 point, bool autoCreate ) : Axiom.Core.Region | ||
GetRegion ( uint index ) : Axiom.Core.Region | ||
GetRegion ( ushort x, ushort y, ushort z, bool autoCreate ) : Axiom.Core.Region | ||
GetRegionBounds ( ushort x, ushort y, ushort z ) : Axiom.MathLib.AxisAlignedBox | ||
GetRegionCenter ( ushort x, ushort y, ushort z ) : Vector3 | ||
GetRegionIndexes ( Vector3 point, ushort &x, ushort &y, ushort &z ) : void | ||
GetVolumeIntersection ( Axiom.MathLib.AxisAlignedBox box, ushort x, ushort y, ushort z ) : float | ||
PackIndex ( ushort x, ushort y, ushort z ) : uint | ||
SplitGeometry ( |
public AddEntity ( Entity ent, Vector3 position, Axiom.MathLib.Quaternion orientation, Vector3 scale ) : void | ||
ent | Entity | The Entity to use as a definition (the Mesh and Materials |
position | Vector3 | The world position at which to add this Entity |
orientation | Axiom.MathLib.Quaternion | The world orientation at which to add this Entity |
scale | Vector3 | The scale at which to add this entity |
return | void |
public AddSceneNode ( |
||
node | Pointer to the node to use to provide a set of Entity templates | |
return | void |
protected CalculateBounds ( |
||
vertexData | ||
position | Vector3 | |
orientation | Axiom.MathLib.Quaternion | |
scale | Vector3 | |
return | Axiom.MathLib.AxisAlignedBox |
protected DetermineGeometry ( |
||
sm | ||
return | List |
protected GetRegion ( Axiom.MathLib.AxisAlignedBox bounds, bool autoCreate ) : Axiom.Core.Region | ||
bounds | Axiom.MathLib.AxisAlignedBox | |
autoCreate | bool | |
return | Axiom.Core.Region |
protected GetRegion ( Vector3 point, bool autoCreate ) : Axiom.Core.Region | ||
point | Vector3 | |
autoCreate | bool | |
return | Axiom.Core.Region |
protected GetRegion ( uint index ) : Axiom.Core.Region | ||
index | uint | |
return | Axiom.Core.Region |
protected GetRegion ( ushort x, ushort y, ushort z, bool autoCreate ) : Axiom.Core.Region | ||
x | ushort | |
y | ushort | |
z | ushort | |
autoCreate | bool | |
return | Axiom.Core.Region |
protected GetRegionBounds ( ushort x, ushort y, ushort z ) : Axiom.MathLib.AxisAlignedBox | ||
x | ushort | |
y | ushort | |
z | ushort | |
return | Axiom.MathLib.AxisAlignedBox |
protected GetRegionCenter ( ushort x, ushort y, ushort z ) : Vector3 | ||
x | ushort | |
y | ushort | |
z | ushort | |
return | Vector3 |
protected GetRegionIndexes ( Vector3 point, ushort &x, ushort &y, ushort &z ) : void | ||
point | Vector3 | |
x | ushort | |
y | ushort | |
z | ushort | |
return | void |
protected GetVolumeIntersection ( Axiom.MathLib.AxisAlignedBox box, ushort x, ushort y, ushort z ) : float | ||
box | Axiom.MathLib.AxisAlignedBox | |
x | ushort | |
y | ushort | |
z | ushort | |
return | float |
protected PackIndex ( ushort x, ushort y, ushort z ) : uint | ||
x | ushort | |
y | ushort | |
z | ushort | |
return | uint |
protected SplitGeometry ( |
||
vd | ||
id | ||
targetGeomLink | Axiom.Core.SubMeshLodGeometryLink | |
return | void |
public StaticGeometry ( |
||
owner | ||
name | string | |
logLevel | int | |
return | System |
protected List |
||
return | List |
protected RenderQueueGroupID renderQueueID | ||
return | RenderQueueGroupID |
protected Dictionary |
||
return | List |