Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public void UnBind()
 {
     vao.UnBind();
     vbo.UnBind();
     IBO.UnBind();
 }