Method | 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 |
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Method | Description | |
---|---|---|
FlushLines ( ) : void | ||
FlushTriangles ( ) : void |
public AddVertex ( Vector2 vertex, Color color, PrimitiveType primitiveType ) : void | ||
vertex | Vector2 | |
color | Color | |
primitiveType | PrimitiveType | |
return | void |
public Begin ( Matrix &projection, Matrix &view ) : void | ||
projection | Matrix | The projection. |
view | Matrix | The view. |
return | void |
public PrimitiveBatch ( GraphicsDevice graphicsDevice ) : System | ||
graphicsDevice | GraphicsDevice | The graphics device. |
return | System |
public PrimitiveBatch ( GraphicsDevice graphicsDevice, int bufferSize ) : System | ||
graphicsDevice | GraphicsDevice | |
bufferSize | int | |
return | System |
public SetProjection ( Matrix &projection ) : void | ||
projection | Matrix | |
return | void |