Package mdesl.graphics.glutils

Examples of mdesl.graphics.glutils.VertexAttrib


      buf.getGraphics().drawImage(map, 0, 0, null);
      w = buf.getWidth();
      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"
View Full Code Here

TOP

Related Classes of mdesl.graphics.glutils.VertexAttrib

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.