C# Class Spine.MeshBatcher

Draws batched meshes.
Datei anzeigen Open project: EsotericSoftware/spine-runtimes Class Usage Examples

Public Methods

Method Description
Draw ( GraphicsDevice device ) : void
MeshBatcher ( ) : System
NextItem ( int vertexCount, int triangleCount ) : MeshItem

Returns a pooled MeshItem.

Private Methods

Method Description
EnsureCapacity ( int vertexCount, int triangleCount ) : void
FlushVertexArray ( GraphicsDevice device, int vertexCount, int triangleCount ) : void

Method Details

Draw() public method

public Draw ( GraphicsDevice device ) : void
device GraphicsDevice
return void

MeshBatcher() public method

public MeshBatcher ( ) : System
return System

NextItem() public method

Returns a pooled MeshItem.
public NextItem ( int vertexCount, int triangleCount ) : MeshItem
vertexCount int
triangleCount int
return MeshItem