Package mdesl.graphics.glutils

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


      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

Related Classes of mdesl.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.