void AddEBuff(EBO ebo) { //_elementCount = ebo.ElementCount; System.Diagnostics.Debug.WriteLine("Element count: {0}", ebo.ElementCount); _ebo = ebo; //Console.WriteLine(_elementCount); GL.BindVertexArray(_idVAO); GL.BindBuffer(BufferTarget.ElementArrayBuffer, ebo.ID); System.Diagnostics.Debug.WriteLine("EBO_ID: {0}", ebo.ID); GL.BindVertexArray(0); }
public void AddIndicesCollection(IndicesCollection indices) { AddEBuff(EBO.Create(indices.Indices.ToArray())); _eboPointers = indices.Pointers; }