Package de.lv.jvoxgl.render

Examples of de.lv.jvoxgl.render.TexturedVertex


  /**
   * Adds the Front-Face Vertices
   * @param vertices
   */
  private void addFrontVertices(List<TexturedVertex> vertices){
    vertices.add(new TexturedVertex(x, y, z, id));
    vertices.add(new TexturedVertex(x, y-1, z, id));
    vertices.add(new TexturedVertex(x+1, y-1, z, id));
    //vertices.add(new TexturedVertex(x+1, y-1, z, id));
    vertices.add(new TexturedVertex(x+1, y, z, id));
    //vertices.add(new TexturedVertex(x, y, z, id));
  }
View Full Code Here


  /**
   * Adds the Back-Face Vertices
   * @param vertices
   */
  private void addBackVertices(List<TexturedVertex> vertices){
    vertices.add(new TexturedVertex(x, y, z-1, id));
    vertices.add(new TexturedVertex(x+1, y, z-1, id));
    vertices.add(new TexturedVertex(x+1, y-1, z-1, id));
    //vertices.add(new TexturedVertex(x+1, y-1, z-1, id));
    vertices.add(new TexturedVertex(x, y-1, z-1, id));
    //vertices.add(new TexturedVertex(x, y, z-1, id));
  }
View Full Code Here

  /**
   * Adds the Left-Face Vertices
   * @param vertices
   */
  private void addLeftVertices(List<TexturedVertex> vertices){
    vertices.add(new TexturedVertex(x, y, z-1, id));
    vertices.add(new TexturedVertex(x, y-1, z-1, id));
    vertices.add(new TexturedVertex(x, y-1, z, id));
    //vertices.add(new TexturedVertex(x, y-1, z, id));
    vertices.add(new TexturedVertex(x, y, z, id));
    //vertices.add(new TexturedVertex(x, y, z-1, id));
  }
View Full Code Here

  /**
   * Adds the Right-Face Vertices
   * @param vertices
   */
  private void addRightVertices(List<TexturedVertex> vertices){
    vertices.add(new TexturedVertex(x+1, y, z-1, id));
    vertices.add(new TexturedVertex(x+1, y, z, id));
    vertices.add(new TexturedVertex(x+1, y-1, z, id));
    //vertices.add(new TexturedVertex(x+1, y-1, z, id));
    vertices.add(new TexturedVertex(x+1, y-1, z-1, id));
    //vertices.add(new TexturedVertex(x+1, y, z-1, id));
  }
View Full Code Here

  /**
   * Adds the Top-Face Vertices
   * @param vertices
   */
  private void addTopVertices(List<TexturedVertex> vertices){
    vertices.add(new TexturedVertex(x, y, z, id));
    vertices.add(new TexturedVertex(x+1, y, z, id));
    vertices.add(new TexturedVertex(x+1, y, z-1, id));
    //vertices.add(new TexturedVertex(x+1, y, z-1, id));
    vertices.add(new TexturedVertex(x, y, z-1, id));
    //vertices.add(new TexturedVertex(x, y, z, id));
  }
View Full Code Here

  /**
   * Adds the Bottom-Face Vertices
   * @param vertices
   */
  private void addBottomVertices(List<TexturedVertex> vertices){
    vertices.add(new TexturedVertex(x, y-1, z, id));
    vertices.add(new TexturedVertex(x, y-1, z-1, id));
    vertices.add(new TexturedVertex(x+1, y-1, z-1, id));
    //vertices.add(new TexturedVertex(x+1, y-1, z-1, id));
    vertices.add(new TexturedVertex(x+1, y-1, z, id));
    //vertices.add(new TexturedVertex(x, y-1, z, id));
  }
View Full Code Here

TOP

Related Classes of de.lv.jvoxgl.render.TexturedVertex

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.