Class ModelManager

java.lang.Object
org.boxutil.manager.ModelManager

public final class ModelManager extends Object
  • Method Details

    • loadModelDataCSV

      public static Map<String,ModelData> loadModelDataCSV(String path)
      General method for reading model files, when game starting.

      Cannot import any files then bigger than 8 MiB for 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 MiB for 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)
    • addModelData

      public static ModelData addModelData(String initID, String objPath, @Nullable String diffusePath, @Nullable String normalPath, @Nullable String complexPath, @Nullable String emissivePath, @Nullable String tangentPath)
    • addModelData

      public static ModelData addModelData(String id, ModelData obj)
      See Also:
    • getModelData

      public static ModelData getModelData(String id)
    • containsModelID

      public static boolean containsModelID(String id)
    • haveLegacyModelData

      public static boolean haveLegacyModelData(String file)
    • getLegacyModelData

      public static LegacyModelData getLegacyModelData(String file)
    • putLegacyModelData

      public static LegacyModelData putLegacyModelData(String file, LegacyModelData data)
    • deleteLegacyModelData

      public static LegacyModelData deleteLegacyModelData(String file)
    • loadLegacyModelData

      public static LegacyModelData loadLegacyModelData(String file)
      For your custom shader, use GL11.GL_TRIANGLES mode to draw.

      Cannot load any mesh then bigger than 8 MiB for user's device.

      DO NOT CONTAIN N-GONS

    • tryLegacyModelData

      public static LegacyModelData tryLegacyModelData(String file)