Package com.owens.oobjloader.builder

Examples of com.owens.oobjloader.builder.FaceVertex


    this.vertexData = vertexDataPool.aquire();
    int index = 0;
    for (int i = 0; i < builder.faces.size(); i++){
      Face face = builder.faces.get(i);
      if (face.vertices.size() == 3){
        FaceVertex v0 = face.vertices.get(0);
        FaceVertex v1 = face.vertices.get(1);
        FaceVertex v2 = face.vertices.get(2);
        index = addVertexData(vertexData, index, v0.v.x, v0.v.y, v0.v.z, 0, 0, c);
        index = addVertexData(vertexData, index, v1.v.x, v1.v.y, v1.v.z, 0, 0, c);
        index = addVertexData(vertexData, index, v2.v.x, v2.v.y, v2.v.z, 0, 0, c);
      }
     
View Full Code Here

TOP

Related Classes of com.owens.oobjloader.builder.FaceVertex

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.