Package de.coreengine.asset
Class CemLoader
- java.lang.Object
-
- de.coreengine.asset.CemLoader
-
public class CemLoader extends Object
Class that can load cem (Core Engine Model) files (see de.coreengine.asset.dataStructures)- Author:
- Darius
-
-
Constructor Summary
Constructors Constructor Description CemLoader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
loadModel(String file, String texPath, boolean asResource)
Loading a model from a file into the asset database.static void
loadModel(String file, String texPath, boolean asResource, String name)
Loading a model from a file into the asset database with a specified name.static ModelData
loadModelData(String file, boolean asResource)
Loading dataStructures model from a filestatic void
saveModelData(String file, ModelData modelData)
Saving model data to a file
-
-
-
Method Detail
-
loadModel
public static void loadModel(String file, String texPath, boolean asResource)
Loading a model from a file into the asset database. If the model already loaded, this method does nothing.- Parameters:
file
- File to loadtexPath
- Location of the models texturesasResource
- Loading model and textures from resources
-
loadModel
public static void loadModel(String file, String texPath, boolean asResource, String name)
Loading a model from a file into the asset database with a specified name. If a model with this name already loaded, this method does nothing.- Parameters:
file
- File to loadtexPath
- Location of the models texturesasResource
- Loading model and textures from resourcesname
- Name of the model in the AssetDatabase
-
saveModelData
public static void saveModelData(String file, ModelData modelData)
Saving model data to a file- Parameters:
file
- Filename to savemodelData
- ModelData to save
-
-