C# Класс Axiom.Core.SubEntity

Utility class which defines the sub-parts of an Entity.

Just as models are split into meshes, an Entity is made up of potentially multiple SubEntities. These are mainly here to provide the link between the Material which the SubEntity uses (which may be the default Material for the SubMesh or may have been changed for this object) and the SubMesh data.

SubEntity instances are never created manually. They are created at the same time as their parent Entity by the SceneManager method CreateEntity.

Наследование: DisposableObject, IRenderable
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
customParams List
hardwarePoseCount ushort
hardwareSkinningEnabled bool
hardwareVertexAnimVertexData Axiom.Graphics.VertexData
isVisible bool
material Axiom.Graphics.Material
materialName string
parent Entity
renderOperation Axiom.Graphics.RenderOperation
skelAnimVertexData Axiom.Graphics.VertexData
softwareVertexAnimVertexData Axiom.Graphics.VertexData
subMesh SubMesh
tempSkelAnimInfo Axiom.Graphics.TempBlendedBufferInfo
tempVertexAnimInfo Axiom.Graphics.TempBlendedBufferInfo
useVertexProgram bool
vertexAnimationAppliedThisFrame bool

Private Properties

Свойство Тип Описание
SubEntity System

Открытые методы

Метод Описание
GetCustomParameter ( int index ) : Vector4
GetSquaredViewDepth ( Camera camera ) : float

GetVertexDataForBinding ( ) : VertexData
GetWorldTransforms ( Matrix4 matrices ) : void

MarkBuffersUnusedForAnimation ( ) : void
MarkBuffersUsedForAnimation ( ) : void
RestoreBuffersForUnusedAnimation ( bool hardwareAnimation ) : void
SetCustomParameter ( int index, Vector4 val ) : void
UpdateCustomGpuParameter ( GpuProgramParameters entry, GpuProgramParameters gpuParams ) : void

Защищенные методы

Метод Описание
PrepareTempBlendBuffers ( ) : void

Internal method for preparing this sub entity for use in animation.

dispose ( bool disposeManagedResources ) : void

Class level dispose method

When implementing this method in an inherited class the following template should be used; protected override void dispose( bool disposeManagedResources ) { if ( !isDisposed ) { if ( disposeManagedResources ) { // Dispose managed resources. } // There are no unmanaged resources to release, but // if we add them, they need to be released here. } // If it is available, make the call to the // base class's Dispose(Boolean) method base.dispose( disposeManagedResources ); }

Приватные методы

Метод Описание
SubEntity ( ) : System

Internal constructor, only allows creation of SubEntities within the engine core.

Описание методов

GetCustomParameter() публичный метод

public GetCustomParameter ( int index ) : Vector4
index int
Результат Vector4

GetSquaredViewDepth() публичный метод

public GetSquaredViewDepth ( Camera camera ) : float
camera Camera
Результат float

GetVertexDataForBinding() публичный метод

public GetVertexDataForBinding ( ) : VertexData
Результат Axiom.Graphics.VertexData

GetWorldTransforms() публичный метод

public GetWorldTransforms ( Matrix4 matrices ) : void
matrices Axiom.Math.Matrix4
Результат void

MarkBuffersUnusedForAnimation() публичный метод

public MarkBuffersUnusedForAnimation ( ) : void
Результат void

MarkBuffersUsedForAnimation() публичный метод

public MarkBuffersUsedForAnimation ( ) : void
Результат void

PrepareTempBlendBuffers() защищенный метод

Internal method for preparing this sub entity for use in animation.
protected PrepareTempBlendBuffers ( ) : void
Результат void

RestoreBuffersForUnusedAnimation() публичный метод

public RestoreBuffersForUnusedAnimation ( bool hardwareAnimation ) : void
hardwareAnimation bool
Результат void

SetCustomParameter() публичный метод

public SetCustomParameter ( int index, Vector4 val ) : void
index int
val Vector4
Результат void

UpdateCustomGpuParameter() публичный метод

public UpdateCustomGpuParameter ( GpuProgramParameters entry, GpuProgramParameters gpuParams ) : void
entry Axiom.Graphics.GpuProgramParameters
gpuParams Axiom.Graphics.GpuProgramParameters
Результат void

dispose() защищенный метод

Class level dispose method
When implementing this method in an inherited class the following template should be used; protected override void dispose( bool disposeManagedResources ) { if ( !isDisposed ) { if ( disposeManagedResources ) { // Dispose managed resources. } // There are no unmanaged resources to release, but // if we add them, they need to be released here. } // If it is available, make the call to the // base class's Dispose(Boolean) method base.dispose( disposeManagedResources ); }
protected dispose ( bool disposeManagedResources ) : void
disposeManagedResources bool True if Unmanaged resources should be released.
Результат void

Описание свойств

customParams защищенное свойство

protected List customParams
Результат List

hardwarePoseCount защищенное свойство

Number of hardware blended poses supported by material
protected ushort hardwarePoseCount
Результат ushort

hardwareSkinningEnabled защищенное свойство

Flag indicating whether hardware skinning is supported by this subentity's materials.
protected bool hardwareSkinningEnabled
Результат bool

hardwareVertexAnimVertexData защищенное свойство

Vertex data details for hardware Vertex anim of shared geometry - separate since we need to s/w anim for shadows whilst still altering the vertex data for hardware morphing (pos2 binding)
protected VertexData,Axiom.Graphics hardwareVertexAnimVertexData
Результат Axiom.Graphics.VertexData

isVisible защищенное свойство

Flag indicating whether this sub entity should be rendered or not.
protected bool isVisible
Результат bool

material защищенное свойство

Reference to the material being used by this SubEntity.
protected Material,Axiom.Graphics material
Результат Axiom.Graphics.Material

materialName защищенное свойство

Name of the material being used.
protected string materialName
Результат string

parent защищенное свойство

Reference to the parent Entity.
protected Entity parent
Результат Entity

renderOperation защищенное свойство

protected RenderOperation,Axiom.Graphics renderOperation
Результат Axiom.Graphics.RenderOperation

skelAnimVertexData защищенное свойство

Blend buffer details for dedicated geometry.
protected VertexData,Axiom.Graphics skelAnimVertexData
Результат Axiom.Graphics.VertexData

softwareVertexAnimVertexData защищенное свойство

Vertex data details for software Vertex anim of shared geometry
protected VertexData,Axiom.Graphics softwareVertexAnimVertexData
Результат Axiom.Graphics.VertexData

subMesh защищенное свойство

Reference to the subMesh that represents the geometry for this SubEntity.
protected SubMesh,Axiom.Core subMesh
Результат SubMesh

tempSkelAnimInfo защищенное свойство

Temp buffer details for software skeletal anim geometry
protected TempBlendedBufferInfo,Axiom.Graphics tempSkelAnimInfo
Результат Axiom.Graphics.TempBlendedBufferInfo

tempVertexAnimInfo защищенное свойство

Temp buffer details for software Vertex anim geometry
protected TempBlendedBufferInfo,Axiom.Graphics tempVertexAnimInfo
Результат Axiom.Graphics.TempBlendedBufferInfo

useVertexProgram защищенное свойство

Flag indicating whether vertex programs are used by this subentity's materials.
protected bool useVertexProgram
Результат bool

vertexAnimationAppliedThisFrame защищенное свойство

Have we applied any vertex animation to geometry?
protected bool vertexAnimationAppliedThisFrame
Результат bool