Package com.jme3.export

Examples of com.jme3.export.InputCapsule.readIntArray()


    left = (Line2D) capsule.readSavable("left", null);
    worldTranslation = (Vector3f) capsule.readSavable("worldpos", null);
    if(worldTranslation != null)
      log.fine("TiledNavMesh loaded at:"+worldTranslation);
    //FIXME loading and storing of border information
    int[] bKeys = capsule.readIntArray("borders_keys",null);
    int[] vKeys = capsule.readIntArray("borders_values",null);

    for(int i=0; i<bKeys.length;i++)
      borders.put(mCellArray[i], vKeys[i]);
   
View Full Code Here


    worldTranslation = (Vector3f) capsule.readSavable("worldpos", null);
    if(worldTranslation != null)
      log.fine("TiledNavMesh loaded at:"+worldTranslation);
    //FIXME loading and storing of border information
    int[] bKeys = capsule.readIntArray("borders_keys",null);
    int[] vKeys = capsule.readIntArray("borders_values",null);

    for(int i=0; i<bKeys.length;i++)
      borders.put(mCellArray[i], vKeys[i]);
   
    for(int i=0;i<8;i++){
View Full Code Here

    for(int i=0; i<bKeys.length;i++)
      borders.put(mCellArray[i], vKeys[i]);
   
    for(int i=0;i<8;i++){
      int[] b = capsule.readIntArray("allborders"+i,null);
      for(int c : b)
        allBorders.get(i).add(mCellArray[c]);
    }
  }
View Full Code Here

      for(int i=0; i<mCellArray.length;i++)
        mCellArray[i].id = i;
     
//      System.out.print("Mesh with "+mCellArray.length+" and "+mCellArray[mCellArray.length-1].id+" ids");
    }
    int[] links = capsule.readIntArray("links", null);
    if(links != null && links.length == mCellArray.length*3){
      Cell c = null;
      int l = -1;
      for(int i =0,j=0; i<mCellArray.length; i++){
        c = mCellArray[i];
View Full Code Here

        super.read(im);
        InputCapsule ic = im.getCapsule(this);
        trisPerPixel = ic.readFloat("trisPerPixel", 1f);
        distTolerance = ic.readFloat("distTolerance", 1f);
        numLevels = ic.readInt("numLevels", 0);
        numTris = ic.readIntArray("numTris", null);
    }
}
View Full Code Here

        InputCapsule ic = im.getCapsule(this);
        mesh = (Mesh) ic.readSavable("mesh", null);
        root = (BIHNode) ic.readSavable("root", null);
        maxTrisPerNode = ic.readInt("tris_per_node", 0);
        pointData = ic.readFloatArray("points", null);
        triIndices = ic.readIntArray("indices", null);
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.