public void Update(float[] vertices, uint[] indexes, float[] colors, float[] normals) { Bind(); ElementBuffer.Bind(); ElementBuffer.SetData(sizeof(uint) * indexes.Length, indexes); VertexBuffer.Bind(); VertexBuffer.SetData(sizeof(float) * vertices.Length, vertices); ColorBuffer.Bind(); ColorBuffer.SetData(sizeof(float) * colors.Length, colors); NormalBuffer.Bind(); NormalBuffer.SetData(sizeof(float) * normals.Length, normals); VertexCount = indexes.Length; Unbind(); }