public Mesh( PrimitiveType drawType, IEnumerable <TVertex> vertexes, int vertexSize, IEnumerable <uint> indexes, params VertexAttribute[] attributes) { this.drawType = drawType; vbo = new VBO <TVertex>(vertexes, vertexSize); vao = new VAO <TVertex>(vbo, attributes); ibo = new IBO(indexes); }
public void UnBind() { vao.UnBind(); vbo.UnBind(); IBO.UnBind(); }