Development Merge 2025.10.18 #4

Merged
Syntriax merged 91 commits from development into main 2025-10-18 10:03:13 +02:00
Showing only changes of commit 28bc022587 - Show all commits

View File

@@ -21,6 +21,7 @@ public class TriangleBatch : ITriangleBatch
this.graphicsDevice = graphicsDevice; this.graphicsDevice = graphicsDevice;
basicEffect = new(graphicsDevice); basicEffect = new(graphicsDevice);
basicEffect.VertexColorEnabled = true; basicEffect.VertexColorEnabled = true;
vertexBuffer = new VertexBuffer(graphicsDevice, typeof(VertexPositionColor), 1024, BufferUsage.WriteOnly);
} }
public void Draw(Triangle triangle, ColorRGBA colorRGBA) public void Draw(Triangle triangle, ColorRGBA colorRGBA)
@@ -64,7 +65,6 @@ public class TriangleBatch : ITriangleBatch
graphicsDevice.RasterizerState = rasterizerState; graphicsDevice.RasterizerState = rasterizerState;
basicEffect.Projection = _projection; basicEffect.Projection = _projection;
basicEffect.View = _view; basicEffect.View = _view;
vertexBuffer = new VertexBuffer(graphicsDevice, typeof(VertexPositionColor), 1024, BufferUsage.WriteOnly);
vertexBuffer.SetData(vertices); vertexBuffer.SetData(vertices);
graphicsDevice.SetVertexBuffer(vertexBuffer); graphicsDevice.SetVertexBuffer(vertexBuffer);