Package com.badlogic.gdx.graphics.glutils

Examples of com.badlogic.gdx.graphics.glutils.VertexArray


    if (Gdx.gl20 != null || Gdx.gl11 != null || Mesh.forceVBO) {
      vertices = new VertexBufferObject(isStatic, maxVertices, attributes);
      indices = new IndexBufferObject(isStatic, maxIndices);
      isVertexArray = false;
    } else {
      vertices = new VertexArray(maxVertices, attributes);
      indices = new IndexArray(maxIndices);
      isVertexArray = true;
    }

    addManagedMesh(Gdx.app, this);
View Full Code Here


    if (Gdx.gl20 != null || Gdx.gl11 != null || Mesh.forceVBO) {
      vertices = new VertexBufferObject(isStatic, maxVertices, attributes);
      indices = new IndexBufferObject(isStatic, maxIndices);
      isVertexArray = false;
    } else {
      vertices = new VertexArray(maxVertices, attributes);
      indices = new IndexArray(maxIndices);
      isVertexArray = true;
    }

    addManagedMesh(Gdx.app, this);
View Full Code Here

     
      vertices = new VertexBufferObject(staticVertices, maxVertices, attributes);
      indices = new IndexBufferObject(staticIndices, maxIndices);
      isVertexArray = false;
    } else {
      vertices = new VertexArray(maxVertices, attributes);
      indices = new IndexArray(maxIndices);
      isVertexArray = true;
    }

    addManagedMesh(Gdx.app, this);
View Full Code Here

    } else if (type == VertexDataType.VertexBufferObjectSubData) {
      vertices = new VertexBufferObjectSubData(isStatic, maxVertices, attributes);
      indices = new IndexBufferObjectSubData(isStatic, maxIndices);
      isVertexArray = false;
    } else {
      vertices = new VertexArray(maxVertices, attributes);
      indices = new IndexArray(maxIndices);
      isVertexArray = true;
    }
    addManagedMesh(Gdx.app, this);
  }
View Full Code Here

    } else if (type == VertexDataType.VertexBufferObjectSubData) {
      vertices = new VertexBufferObjectSubData(isStatic, maxVertices, attributes);
      indices = new IndexBufferObjectSubData(isStatic, maxIndices);
      isVertexArray = false;
    } else {
      vertices = new VertexArray(maxVertices, attributes);
      indices = new IndexArray(maxIndices);
      isVertexArray = true;
    }
    addManagedMesh(Gdx.app, this);
  }
View Full Code Here

TOP

Related Classes of com.badlogic.gdx.graphics.glutils.VertexArray

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.