use a zero-size initially for GeometryDebugRenderer
This commit is contained in:
parent
55f697ae6c
commit
d3bff35dd8
|
@ -4,8 +4,6 @@ namespace Blarg.GameFramework.Graphics
|
||||||
{
|
{
|
||||||
public class GeometryDebugRenderer
|
public class GeometryDebugRenderer
|
||||||
{
|
{
|
||||||
const int DefaultVerticesAmount = 4096;
|
|
||||||
|
|
||||||
VertexBuffer _vertices;
|
VertexBuffer _vertices;
|
||||||
RenderState _renderState;
|
RenderState _renderState;
|
||||||
Color _color1;
|
Color _color1;
|
||||||
|
@ -21,7 +19,7 @@ namespace Blarg.GameFramework.Graphics
|
||||||
|
|
||||||
GraphicsDevice = graphicsDevice;
|
GraphicsDevice = graphicsDevice;
|
||||||
|
|
||||||
_vertices = new VertexBuffer(GraphicsDevice, VertexAttributeDeclarations.ColorPosition3D, DefaultVerticesAmount, BufferObjectUsage.Stream);
|
_vertices = new VertexBuffer(GraphicsDevice, VertexAttributeDeclarations.ColorPosition3D, 0, BufferObjectUsage.Stream);
|
||||||
|
|
||||||
_color1 = new Color(1.0f, 1.0f, 0.0f);
|
_color1 = new Color(1.0f, 1.0f, 0.0f);
|
||||||
_color2 = new Color(1.0f, 0.0f, 0.0f);
|
_color2 = new Color(1.0f, 0.0f, 0.0f);
|
||||||
|
|
Reference in a new issue