Class ModelManager
java.lang.Object
zombie.core.skinnedmodel.ModelManager
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
static class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add
(IsoGameCharacter chr) Add the supplied character to the visible render list.void
addAnimationClip
(String name, AnimationClip clip) addStatic
(ModelInstance parentInst, String modelName, String attachNameSelf, String attachNameParent) addStatic
(ModelManager.ModelSlot slot, String meshName, String texName, String boneName, String shaderName) addStaticForcedTex
(ModelInstance parentInst, String modelName, String attachNameSelf, String attachNameParent, String forcedTex) void
addVehicle
(BaseVehicle vehicle) void
animationAssetLoaded
(AnimationAsset animationAsset) boolean
Returns TRUE if the character is currently in the visible render list, and has not been flagged for removal.void
create()
void
derefModelInstance
(ModelInstance modelInstance) void
derefModelInstances
(ArrayList<ModelInstance> modelInstances) void
getAnimationAsset
(String string1) getAnimationClip
(String name) getLoadedModel
(String meshName) getLoadedModel
(String meshName, String tex, boolean isStatic, String shaderName) getSlot
(IsoGameCharacter chr) void
getSquareLighting
(int int1, IsoMovingObject isoMovingObject, ModelInstance.EffectLight[] effectLight) int
void
initAnimationMeshes
(boolean bReloading) boolean
boolean
void
loadAdditionalModel
(String meshName, String tex, boolean bStatic, String shaderName) void
loadStaticModel
(String meshName, String tex, String shaderName) newAdditionalModelInstance
(String meshName, String tex, IsoGameCharacter chr, AnimationPlayer animPlayer, String shaderName) newInstance
(Model model, IsoGameCharacter chr, AnimationPlayer player) newStaticInstance
(ModelManager.ModelSlot slot, String meshName, String texName, String boneName, String shaderName) void
putLoadedModel
(String name, String tex, boolean isStatic, String shaderName, Model model) void
void
reloadModelsMatching
(String meshName) void
Remove
(IsoGameCharacter chr) void
Remove
(BaseVehicle vehicle) void
RenderParticles
(TextureDraw texd, int userId, int va11) void
RenderPuddles
(int int1, int int2, int int3, int int4) void
RenderSkyBox
(TextureDraw texd, int shaderID, int userId, int apiId, int bufferId) void
RenderWater
(TextureDraw texd, int shaderID, int userId, boolean bShore) void
Reset()
void
Reset
(IsoGameCharacter chr) Reset Resets the specified character.void
void
ResetEquippedNextFrame
(IsoGameCharacter isoGameCharacter) void
resetModelInstance
(ModelInstance modelInstance, Object expectedOwner) void
resetModelInstanceRecurse
(ModelInstance modelInstance, Object expectedOwner) void
resetModelInstancesRecurse
(ArrayList<ModelInstance> modelInstances, Object expectedOwner) void
ResetNextFrame
(IsoGameCharacter isoGameCharacter) void
setModelMetaData
(String meshName, String texName, String shaderName, boolean bStatic) void
setModelMetaData
(String modelId, String meshName, String texName, String shaderName, boolean bStatic) boolean
shouldHideModel
(ItemVisuals itemVisuals, String string) boolean
shouldLimitTextureSize
(String string) tryGetLoadedModel
(String meshName, String tex, boolean isStatic, String shaderName, boolean logError) void
update()
-
Field Details
-
NoOpenGL
public static boolean NoOpenGL -
instance
-
m_maleModel
-
m_femaleModel
-
m_skeletonMaleModel
-
m_skeletonFemaleModel
-
bitmap
-
bDebugEnableModels
public boolean bDebugEnableModels -
bCreateSoftwareMeshes
public boolean bCreateSoftwareMeshes -
SoftwareMeshAnims
-
-
Constructor Details
-
ModelManager
public ModelManager()
-
-
Method Details
-
isCreated
public boolean isCreated() -
create
public void create() -
loadAdditionalModel
-
newAdditionalModelInstance
public ModelInstance newAdditionalModelInstance(String meshName, String tex, IsoGameCharacter chr, AnimationPlayer animPlayer, String shaderName) -
RenderSkyBox
-
RenderWater
-
RenderPuddles
public void RenderPuddles(int int1, int int2, int int3, int int4) -
RenderParticles
-
Reset
Reset Resets the specified character.- Parameters:
chr
- the character to reset
-
reloadAllOutfits
public void reloadAllOutfits() -
Add
Add the supplied character to the visible render list. -
dressInRandomOutfit
-
getBodyModel
-
ContainsChar
Returns TRUE if the character is currently in the visible render list, and has not been flagged for removal. -
ResetCharacterEquippedHands
-
shouldHideModel
-
resetModelInstance
-
resetModelInstanceRecurse
-
resetModelInstancesRecurse
public void resetModelInstancesRecurse(ArrayList<ModelInstance> modelInstances, Object expectedOwner) -
derefModelInstance
-
derefModelInstances
-
update
public void update() -
getSlot
-
Remove
-
Remove
-
ResetNextFrame
-
ResetEquippedNextFrame
-
Reset
public void Reset() -
getSquareLighting
public void getSquareLighting(int int1, IsoMovingObject isoMovingObject, ModelInstance.EffectLight[] effectLight) -
addVehicle
-
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
-
setModelMetaData
-
setModelMetaData
-
loadStaticModel
-
loadModel
-
getLoadedModel
-
getLoadedModel
-
tryGetLoadedModel
-
putLoadedModel
-
getAnimationAsset
-
addAnimationClip
-
getAnimationClip
-
getAllAnimationClips
-
newInstance
-
isLoadingAnimations
public boolean isLoadingAnimations() -
reloadModelsMatching
-
loadModAnimations
public void loadModAnimations() -
animationAssetLoaded
-
initAnimationMeshes
public void initAnimationMeshes(boolean bReloading)
-