C# Class FluidPort.PrimitiveBatch

Inheritance: IDisposable
Afficher le fichier Open project: klutch/Box2DFluid Class Usage Examples

Méthodes publiques

Méthode Description
AddVertex ( Vector2 vertex, Color color, PrimitiveType primitiveType ) : void
Begin ( Matrix &projection, Matrix &view ) : void

Begin is called to tell the PrimitiveBatch what kind of primitives will be drawn, and to prepare the graphics card to render those primitives.

Dispose ( ) : void
End ( ) : void

End is called once all the primitives have been drawn using AddVertex. it will call Flush to actually submit the draw call to the graphics card, and then tell the basic effect to end.

IsReady ( ) : bool
PrimitiveBatch ( GraphicsDevice graphicsDevice ) : System

the constructor creates a new PrimitiveBatch and sets up all of the internals that PrimitiveBatch will need.

PrimitiveBatch ( GraphicsDevice graphicsDevice, int bufferSize ) : System
SetProjection ( Matrix &projection ) : void

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
FlushLines ( ) : void
FlushTriangles ( ) : void

Method Details

AddVertex() public méthode

public AddVertex ( Vector2 vertex, Color color, PrimitiveType primitiveType ) : void
vertex Vector2
color Color
primitiveType PrimitiveType
Résultat void

Begin() public méthode

Begin is called to tell the PrimitiveBatch what kind of primitives will be drawn, and to prepare the graphics card to render those primitives.
public Begin ( Matrix &projection, Matrix &view ) : void
projection Matrix The projection.
view Matrix The view.
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

End() public méthode

End is called once all the primitives have been drawn using AddVertex. it will call Flush to actually submit the draw call to the graphics card, and then tell the basic effect to end.
public End ( ) : void
Résultat void

IsReady() public méthode

public IsReady ( ) : bool
Résultat bool

PrimitiveBatch() public méthode

the constructor creates a new PrimitiveBatch and sets up all of the internals that PrimitiveBatch will need.
public PrimitiveBatch ( GraphicsDevice graphicsDevice ) : System
graphicsDevice GraphicsDevice The graphics device.
Résultat System

PrimitiveBatch() public méthode

public PrimitiveBatch ( GraphicsDevice graphicsDevice, int bufferSize ) : System
graphicsDevice GraphicsDevice
bufferSize int
Résultat System

SetProjection() public méthode

public SetProjection ( Matrix &projection ) : void
projection Matrix
Résultat void