Reworked the VBO

This commit is contained in:
Michel Fedde 2021-03-26 10:41:29 +01:00
parent 3bc90dd83b
commit ee732240f7
11 changed files with 174 additions and 253 deletions

View file

@ -124,7 +124,7 @@ namespace SM.OGL.Mesh
public void Update(GenericMesh mesh)
{
int pos = 0;
foreach (float f in mesh.Vertex)
foreach (float f in mesh.Vertex.GetFloats())
{
Min[pos] = Math.Min(Min[pos], f);
Max[pos] = Math.Max(Max[pos], f);