Esempio n. 1
0
 public void AddIndexBuffer(IndexBufferObject ibo)
 {
     if (ibo != null)
     {
         m_ibo = ibo;
     }
 }
Esempio n. 2
0
 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;
 }
Esempio n. 3
0
 private void DisableVertexAttribArrays()
 {
     GL.BindVertexArray(0);
     IndexBufferObject.UnbindIndexBuffer();
     VertexBufferObjectBase.UnbindVBO();
     m_vboList.ForEach(vbo =>
     {
         GL.DisableVertexAttribArray(vbo.GetVertexAttribIndex());
     });
 }