Пример #1
0
 /**
  * Create an Object3D from android resource and resource id
  *
  * @param resources android resource
  * @param resId android resource id
  * @return an Object3D object that is created from android resource
  */
 public static Glo3D createFromResource(Resources resources, int resId) {
   Glo3D glo3D = new Glo3D();
   glo3D.setObjectFromResource(resources, resId);
   return glo3D;
 }
Пример #2
0
 /**
  * Create an 3D object from specific asset name
  *
  * @param assetname image file name
  * @return an 3D mesh object that is created by file name
  */
 public static Glo3D createFromAsset(String assetname) {
   Glo3D glo3D = new Glo3D();
   glo3D.setObjectFromAsset(assetname);
   return glo3D;
 }
Пример #3
0
 /**
  * Create an 3D object from specific file name
  *
  * @param filename image file name
  * @return an 3D mesh object that is created by file name
  */
 public static Glo3D createFromFile(String filename) {
   Glo3D glo3D = new Glo3D();
   glo3D.setObjectFromFile(filename);
   return glo3D;
 }