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