Package org.boxutil.manager
Class ModelManager
java.lang.Object
org.boxutil.manager.ModelManager
-
Method Summary
Modifier and TypeMethodDescriptionstatic ModelDataaddModelData(String initID, String objPath, String diffusePath, String normalPath, String complexPath, String emissivePath, String tangentPath) static ModelDataaddModelData(String initID, String objPath, String diffusePath, String normalPath, String complexPath, String emissivePath, String tangentPath, boolean isAngleMap) static ModelDataaddModelData(String initID, String objPath, String diffusePath, String normalPath, String complexPath, String emissivePath, String tangentPath, boolean isAngleMap, int type) Add one of model data by manual.static ModelDataaddModelData(String id, ModelData obj) static booleanstatic LegacyModelDatadeleteLegacyModelData(String file) static LegacyModelDatagetLegacyModelData(String file) static ModelDatagetModelData(String id) static booleanhaveLegacyModelData(String file) static LegacyModelDataloadLegacyModelData(String file) For your custom shader, useGL11.GL_TRIANGLESmode to draw.loadModelDataCSV(String path) General method for reading model files, when game starting.static LegacyModelDataputLegacyModelData(String file, LegacyModelData data) static LegacyModelDatatryLegacyModelData(String file)
-
Method Details
-
loadModelDataCSV
General method for reading model files, when game starting.Cannot import any files then bigger than
8 MiBfor user's device.DO NOT CONTAIN N-GONS
-
addModelData
public static ModelData addModelData(String initID, String objPath, @Nullable String diffusePath, @Nullable String normalPath, @Nullable String complexPath, @Nullable String emissivePath, @Nullable String tangentPath, boolean isAngleMap, int type) Add one of model data by manual.Not recommended to use an existing ID, only when you know what you are doing.
Cannot import any files then bigger than
8 MiBfor user's device.DO NOT CONTAIN N-GONS
-
addModelData
-
addModelData
-
addModelData
-
getModelData
-
containsModelID
-
haveLegacyModelData
-
getLegacyModelData
-
putLegacyModelData
-
deleteLegacyModelData
-
loadLegacyModelData
For your custom shader, useGL11.GL_TRIANGLESmode to draw.Cannot load any mesh then bigger than 8 MiB for user's device.
DO NOT CONTAIN N-GONS
-
tryLegacyModelData
-