메소드 |
설명 |
|
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 |
|
|