Browse Source

FbxModel -> Model

ncannasse 9 years ago
parent
commit
45faf68b25
4 changed files with 6 additions and 6 deletions
  1. 1 1
      hxd/res/Any.hx
  2. 1 1
      hxd/res/FileTree.hx
  3. 3 3
      hxd/res/Loader.hx
  4. 1 1
      hxd/res/Model.hx

+ 1 - 1
hxd/res/Any.hx

@@ -28,7 +28,7 @@ class Any extends Resource {
 	}
 	}
 
 
 	public function toHmd() {
 	public function toHmd() {
-		return loader.loadFbxModel(entry.path).toHmd();
+		return loader.loadModel(entry.path).toHmd();
 	}
 	}
 
 
 	public function toTexture() {
 	public function toTexture() {

+ 1 - 1
hxd/res/FileTree.hx

@@ -368,7 +368,7 @@ class FileTree {
 		case "jpg", "png", "jpeg", "gif":
 		case "jpg", "png", "jpeg", "gif":
 			return { e : macro loader.loadImage($epath), t : macro : hxd.res.Image };
 			return { e : macro loader.loadImage($epath), t : macro : hxd.res.Image };
 		case "fbx", "hmd":
 		case "fbx", "hmd":
-			return { e : macro loader.loadFbxModel($epath), t : macro : hxd.res.FbxModel };
+			return { e : macro loader.loadModel($epath), t : macro : hxd.res.Model };
 		case "ttf":
 		case "ttf":
 			return { e : macro loader.loadFont($epath), t : macro : hxd.res.Font };
 			return { e : macro loader.loadFont($epath), t : macro : hxd.res.Font };
 		case "fnt":
 		case "fnt":

+ 3 - 3
hxd/res/Loader.hx

@@ -28,10 +28,10 @@ class Loader {
 		return new Any(this, fs.get(path));
 		return new Any(this, fs.get(path));
 	}
 	}
 
 
-	function loadFbxModel( path : String ) : FbxModel {
-		var m : FbxModel = cache.get(path);
+	function loadModel( path : String ) : Model {
+		var m : Model = cache.get(path);
 		if( m == null ) {
 		if( m == null ) {
-			m = new FbxModel(fs.get(path));
+			m = new Model(fs.get(path));
 			cache.set(path, m);
 			cache.set(path, m);
 		}
 		}
 		return m;
 		return m;

+ 1 - 1
hxd/res/FbxModel.hx → hxd/res/Model.hx

@@ -1,6 +1,6 @@
 package hxd.res;
 package hxd.res;
 
 
-class FbxModel extends Resource {
+class Model extends Resource {
 
 
 	public function toHmd() : hxd.fmt.hmd.Library {
 	public function toHmd() : hxd.fmt.hmd.Library {
 		var hmd = new hxd.fmt.hmd.Reader(new hxd.fs.FileInput(entry)).readHeader();
 		var hmd = new hxd.fmt.hmd.Reader(new hxd.fs.FileInput(entry)).readHeader();