public void AddIndexBuffer(IndexBufferObject ibo) { if (ibo != null) { m_ibo = ibo; } }
public void CleanUp() { m_ibo?.CleanUp(); m_ibo = null; m_vboList.ForEach(vbo => vbo.CleanUp()); GL.DeleteVertexArray(m_descriptor); m_vboList.Clear(); m_vboList = null; }
private void DisableVertexAttribArrays() { GL.BindVertexArray(0); IndexBufferObject.UnbindIndexBuffer(); VertexBufferObjectBase.UnbindVBO(); m_vboList.ForEach(vbo => { GL.DisableVertexAttribArray(vbo.GetVertexAttribIndex()); }); }