Very basic rendering

This commit is contained in:
Matt Thorson
2020-08-09 18:28:55 -07:00
parent 637dcb21a3
commit c53bc96a5d
4 changed files with 93 additions and 19 deletions

View File

@ -8,9 +8,29 @@ namespace Strawberry
Batch top => batchStack.Count > 0 ? batchStack[batchStack.Count - 1] : null;
public void PushQuad(Vertex a, Vertex b, Vertex c, Vertex d)
{
}
private class Batch
{
uint32 bufferHandle;
List<Vertex> Vertices;
public this()
{
GL.glGenBuffers(1, &bufferHandle);
GL.glBindBuffer(GL.GL_ARRAY_BUFFER, bufferHandle);
GL.glDeleteBuffers(1, &bufferHandle);
}
}
private struct Vertex
{
public Vector Position;
public Color Color;
}
}
}