Class ModelManager

java.lang.Object
zombie.core.skinnedmodel.ModelManager

public final class ModelManager extends Object
Created by LEMMYATI on 05/01/14.
  • Field Details

    • noOpenGL

      public static boolean noOpenGL
    • instance

      public static final ModelManager instance
    • maleModel

      public Model maleModel
    • femaleModel

      public Model femaleModel
    • skeletonMaleModel

      public Model skeletonMaleModel
    • skeletonFemaleModel

      public Model skeletonFemaleModel
    • bitmap

      public TextureFBO bitmap
    • debugEnableModels

      public boolean debugEnableModels
  • Constructor Details

    • ModelManager

      public ModelManager()
  • Method Details

    • isCreated

      public boolean isCreated()
    • create

      public void create()
    • loadAdditionalModel

      public void loadAdditionalModel(String meshName, String tex, boolean bStatic, String shaderName)
    • newAdditionalModelInstance

      public ModelInstance newAdditionalModelInstance(String meshName, String tex, IsoGameCharacter chr, AnimationPlayer animPlayer, String shaderName)
    • RenderSkyBox

      public void RenderSkyBox(TextureDraw texd, int shaderID, int userId, int apiId, int bufferId)
    • RenderWater

      public void RenderWater(TextureDraw texd, int shaderID, int playerIndex, int firstSquare, int numSquares, boolean bShore)
    • RenderPuddles

      public void RenderPuddles(int playerIndex, int z, int firstSquare, int numSquares)
    • RenderParticles

      public void RenderParticles(TextureDraw texd, int userId, int va11)
    • Reset

      public void Reset(IsoGameCharacter chr)
      Reset Resets the specified character.
      Parameters:
      chr - the character to reset
    • reloadAllOutfits

      public void reloadAllOutfits()
    • Add

      public void Add(IsoGameCharacter chr)
      Add the supplied character to the visible render list.
    • dressInRandomOutfit

      public void dressInRandomOutfit(IsoGameCharacter chr)
    • getBodyModel

      public Model getBodyModel(IsoGameCharacter chr)
    • ContainsChar

      public boolean ContainsChar(IsoGameCharacter chr)
      Returns TRUE if the character is currently in the visible render list, and has not been flagged for removal.
    • ResetCharacterEquippedHands

      public void ResetCharacterEquippedHands(IsoGameCharacter chr)
    • shouldHideModel

      public boolean shouldHideModel(ItemVisuals itemVisuals, ItemBodyLocation itemBodyLocation)
    • resetModelInstance

      public void resetModelInstance(ModelInstance modelInstance, Object expectedOwner)
    • resetModelInstanceRecurse

      public void resetModelInstanceRecurse(ModelInstance modelInstance, Object expectedOwner)
    • resetModelInstancesRecurse

      public void resetModelInstancesRecurse(ArrayList<ModelInstance> modelInstances, Object expectedOwner)
    • derefModelInstance

      public boolean derefModelInstance(ModelInstance modelInstance)
    • derefModelInstances

      public void derefModelInstances(ArrayList<ModelInstance> modelInstances)
    • update

      public void update()
    • getSlot

    • Remove

      public void Remove(IsoGameCharacter chr)
    • Remove

      public void Remove(BaseVehicle vehicle)
    • ResetNextFrame

      public void ResetNextFrame(IsoGameCharacter isoGameCharacter)
    • ResetEquippedNextFrame

      public void ResetEquippedNextFrame(IsoGameCharacter isoGameCharacter)
    • Reset

      public void Reset()
    • getSquareLighting

      public void getSquareLighting(int playerIndex, IsoMovingObject chr, ModelInstance.EffectLight[] ret)
    • addVehicle

      public void addVehicle(BaseVehicle vehicle)
    • addStatic

      public ModelInstance addStatic(ModelManager.ModelSlot slot, String meshName, String texName, String boneName, String shaderName)
    • newStaticInstance

      public ModelInstance newStaticInstance(ModelManager.ModelSlot slot, String meshName, String texName, String boneName, String shaderName)
    • addStatic

      public ModelInstance addStatic(ModelInstance parentInst, String modelName, String attachNameSelf, String attachNameParent)
    • addStaticForcedTex

      public ModelInstance addStaticForcedTex(ModelInstance parentInst, String modelName, String attachNameSelf, String attachNameParent, String forcedTex)
    • getTextureFlags

      public int getTextureFlags()
    • shouldLimitTextureSize

      public boolean shouldLimitTextureSize(String textureName)
    • setModelMetaData

      public void setModelMetaData(String meshName, String texName, String shaderName, boolean bStatic)
    • setModelMetaData

      public void setModelMetaData(String modelId, String meshName, String texName, String shaderName, boolean bStatic)
    • loadStaticModel

      public Model loadStaticModel(String meshName, String tex, String shaderName)
    • loadModel

      public Model loadModel(String meshName, String tex, ModelMesh animationsModel, String shader)
    • getLoadedModel

      public Model getLoadedModel(String meshName)
    • getLoadedModel

      public Model getLoadedModel(String meshName, String tex, boolean isStatic, String shaderName)
    • tryGetLoadedModel

      public Model tryGetLoadedModel(ModelScript modelScript, boolean logError)
    • tryGetLoadedModel

      public Model tryGetLoadedModel(String meshName, String tex, boolean isStatic, String shaderName, boolean logError)
    • tryGetLoadedModel

      public Model tryGetLoadedModel(String key, boolean logError)
    • putLoadedModel

      public void putLoadedModel(String name, String tex, boolean isStatic, String shaderName, Model model)
    • getAnimationAsset

      public AnimationAsset getAnimationAsset(String name)
    • addAnimationClip

      public void addAnimationClip(String name, AnimationClip clip)
    • getAnimationClip

      public AnimationClip getAnimationClip(String name)
    • getAllAnimationClips

      public Collection<AnimationClip> getAllAnimationClips()
    • newInstance

      public ModelInstance newInstance(Model model, IsoGameCharacter chr, AnimationPlayer player)
    • isLoadingAnimations

      public boolean isLoadingAnimations()
    • reloadModelsMatching

      public void reloadModelsMatching(String meshName)
    • loadModAnimations

      public void loadModAnimations()
    • animationAssetLoaded

      public void animationAssetLoaded(AnimationAsset animationAsset)
    • initAnimationMeshes

      public void initAnimationMeshes(boolean bReloading)