Package engine

Examples of engine.Vec2f


          this.obj_vertices.addElement(new Vec3f(Float.parseFloat(temp[1]),Float.parseFloat(temp[2]),Float.parseFloat(temp[3])));
          //System.out.println(temp[1]);
        }
        else if(file.get(i).startsWith("vt ")){
          temp = file.get(i).split("\\s+");
          this.obj_texcoords.addElement(new Vec2f(Float.parseFloat(temp[1]),Float.parseFloat(temp[2])));
        }
        else if(file.get(i).startsWith("vn ")){
          temp = file.get(i).split("\\s+");
          this.obj_normals.addElement(new Vec3f(Float.parseFloat(temp[1]),Float.parseFloat(temp[2]),Float.parseFloat(temp[3])));
        }
View Full Code Here


      this.vertice.get(i).y -= this.offset[1]*5;
    }
  }
 
  private void addTile(int x, int y){
    this.vertice.add(new Vec2f(x-1,y+1));
    this.vertice.add(new Vec2f(x,y+1));
    this.vertice.add(new Vec2f(x,y));
   
    this.vertice.add(new Vec2f(x-1,y+1));
    this.vertice.add(new Vec2f(x,y));
    this.vertice.add(new Vec2f(x-1,y));
  }
View Full Code Here

TOP

Related Classes of engine.Vec2f

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.