Examples of VertexArray


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

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

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

     
      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

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

    } 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

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

    } 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

Examples of mdesl.graphics.glutils.VertexArray

  public SpriteBatch(ShaderProgram program, int size, boolean updateUniforms) {   
    this.program = program;

    // later we can do some abstraction to replace this with VBOs...
    this.data = new VertexArray(size * 6, ATTRIBUTES);

    // max indices before we need to flush the renderer
    maxIndex = size * 6;

    // default size
View Full Code Here

Examples of mdesl.graphics.glutils.VertexArray

      h = buf.getHeight();
      px = ((DataBufferByte)buf.getRaster().getDataBuffer()).getData();
      List<VertexAttrib> attr = Arrays.asList(
          new VertexAttrib(0, "Position", 3),
          new VertexAttrib(1, "TexCoord", 2));
      data = new VertexArray(w*h*2, attr);
     
      final String VERT = "uniform mat4 u_projView;\n"
          + "attribute vec2 TexCoord;\n"
          + "attribute vec3 Position;\n"
          + "varying vec2 vTexCoord; \n"
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.