Class CemLoader


  • public class CemLoader
    extends Object
    Class that can load cem (Core Engine Model) files (see de.coreengine.asset.dataStructures)
    Author:
    Darius
    • Constructor Detail

      • CemLoader

        public CemLoader()
    • 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 load
        texPath - Location of the models textures
        asResource - 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 load
        texPath - Location of the models textures
        asResource - Loading model and textures from resources
        name - 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 save
        modelData - ModelData to save
      • loadModelData

        public static ModelData loadModelData​(String file,
                                              boolean asResource)
        Loading dataStructures model from a file
        Parameters:
        file - File to load
        asResource - Loading model data from resources
        Returns:
        Loaded dataStructures model