C# Class xnaHelper.Primitives.PrimitiveBatch

Inheritance: IDisposable
显示文件 Open project: faintpixel/Roguelike

Public Methods

Method Description
AddVertex ( Vector2 vertex, Color color ) : void
Begin ( PrimitiveType primitiveType ) : void
Dispose ( ) : void
End ( ) : void
PrimitiveBatch ( GraphicsDevice graphicsDevice ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
Flush ( ) : void
NumVertsPerPrimitive ( PrimitiveType primitive ) : int

Method Details

AddVertex() public method

public AddVertex ( Vector2 vertex, Color color ) : void
vertex Vector2
color Color
return void

Begin() public method

public Begin ( PrimitiveType primitiveType ) : void
primitiveType PrimitiveType
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

End() public method

public End ( ) : void
return void

PrimitiveBatch() public method

public PrimitiveBatch ( GraphicsDevice graphicsDevice ) : System
graphicsDevice GraphicsDevice
return System