Exemple #1
0
        public Mesh(VertexDataType type, bool isStatic, int maxVertices, int maxIndices, VertexAttributes attributes)
        {
            // todo: handle other type

            vertices      = new VertexBufferObjectWithVAO(isStatic, maxVertices, attributes);
            indices       = new IndexBufferObject(isStatic, maxIndices);
            isVertexArray = false;
        }
Exemple #2
0
 public Mesh(bool isStatic, int maxVertices, int maxIndices, VertexAttributes attributes)
 {
     vertices      = new VertexBufferObjectWithVAO(isStatic, maxVertices, attributes);
     indices       = new IndexBufferObject(isStatic, maxIndices);
     isVertexArray = false;
 }