Add StaticIndexBuffer

This commit is contained in:
Gustas
2023-08-24 14:38:01 +03:00
committed by Matthias Mailänder
parent 7e9619b41b
commit f6c1453b5b
6 changed files with 117 additions and 0 deletions

View File

@@ -68,6 +68,12 @@ namespace OpenRA.Platforms.Default
return new VertexBuffer<Vertex>(size);
}
public IIndexBuffer CreateIndexBuffer(uint[] indices)
{
VerifyThreadAffinity();
return new StaticIndexBuffer(indices);
}
public Vertex[] CreateVertices(int size)
{
VerifyThreadAffinity();