Class MeshEntitySystem
- Namespace
- Elegy.RenderSystem.Objects
- Assembly
- Elegy.RenderSystem.dll
public class MeshEntitySystem
- Inheritance
-
MeshEntitySystem
- Inherited Members
-
Constructors
MeshEntitySystem(int)
public MeshEntitySystem(int numEntities)
Parameters
numEntities
int
Fields
ChunkSize
public const int ChunkSize = 256
Field Value
- int
Properties
Chunks
public List<MeshEntityChunk> Chunks { get; }
Property Value
- List<MeshEntityChunk>
Device
public GraphicsDevice Device { get; }
Property Value
- GraphicsDevice
this[int]
public MeshEntityChunk this[int i] { get; }
Parameters
i
int
Property Value
- MeshEntityChunk
Methods
CreateEntity(bool, ResourceLayout)
public MeshEntity CreateEntity(bool animated, ResourceLayout entityLayout)
Parameters
animated
bool
entityLayout
ResourceLayout
Returns
- MeshEntity
DestroyEntity(MeshEntity)
public bool DestroyEntity(MeshEntity entity)
Parameters
entity
MeshEntity
Returns
- bool
Expand(int)
public void Expand(int numChunks = 1)
Parameters
numChunks
int
FindFreeSlot()
public int FindFreeSlot()
Returns
- int
GetTakenFlag(int)
public bool GetTakenFlag(int handle)
Parameters
handle
int
Returns
- bool
SetTakenFlag(int, bool)
public void SetTakenFlag(int handle, bool value)
Parameters
handle
int
value
bool
UpdateBuffers(CommandList)
public void UpdateBuffers(CommandList commandList)
Parameters
commandList
CommandList