Package de.coreengine.asset
Class CeaLoader
- java.lang.Object
-
- de.coreengine.asset.CeaLoader
-
public class CeaLoader extends Object
Class that can load cea (Core Engine Animated Model) files- Author:
- Darius
- See Also:
de.coreengine.asset.dataStructures
-
-
Constructor Summary
Constructors Constructor Description CeaLoader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
loadAnimatedModel(String file, String texPath, boolean asResource)
Loading an animated model from a file into the asset database.static void
loadAnimatedModel(String file, String texPath, boolean asResource, String name)
Loading an animated model from a file into the asset database with a specified name.static AnimatedModelData
loadAnimatedModelData(String file, boolean asResource)
Loading animated model data from a filestatic void
saveAnimatedModelData(String file, AnimatedModelData modelData)
Saving dataStructures model to a file
-
-
-
Method Detail
-
loadAnimatedModel
public static void loadAnimatedModel(String file, String texPath, boolean asResource)
Loading an animated 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
-
loadAnimatedModel
public static void loadAnimatedModel(String file, String texPath, boolean asResource, String name)
Loading an animated 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
-
saveAnimatedModelData
public static void saveAnimatedModelData(String file, AnimatedModelData modelData)
Saving dataStructures model to a file- Parameters:
file
- Filename to savemodelData
- Meta model to save
-
loadAnimatedModelData
public static AnimatedModelData loadAnimatedModelData(String file, boolean asResource)
Loading animated model data from a file- Parameters:
file
- File to loadasResource
- Loading animated model data from resources- Returns:
- Loaded animated model data
-
-