|
| PrimitiveBatch (GraphicsDevice graphicsDevice, int bufferSize=DefaultBufferSize) |
|
void | Dispose () |
|
void | SetProjection (ref Matrix projection) |
|
void | Begin (ref Matrix projection, ref Matrix view) |
| Begin is called to tell the PrimitiveBatch what kind of primitives will be drawn, and to prepare the graphics card to render those primitives.
|
|
bool | IsReady () |
|
void | AddVertex (Vector2 vertex, Color color, PrimitiveType primitiveType) |
|
void | End () |
| 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.
|
|
|
virtual void | Dispose (bool disposing) |
|
◆ Begin()
void VerticesEngine.DebugUtilities.PrimitiveBatch.Begin |
( |
ref Matrix | projection, |
|
|
ref Matrix | view ) |
Begin is called to tell the PrimitiveBatch what kind of primitives will be drawn, and to prepare the graphics card to render those primitives.
- Parameters
-
projection | The projection. |
view | The view. |
The documentation for this class was generated from the following file:
- /github/workspace/src/VerticesEngine/src.shared/Utilities/PrimitiveBatch.cs