Package zombie.core.skinnedmodel
Class ModelManager
java.lang.Object
zombie.core.skinnedmodel.ModelManager
Created by LEMMYATI on 05/01/14.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static class
-
Field Summary
-
Constructor Summary
-
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
getAnimationClip
(String name) void
getClosestThreeLights
(IsoMovingObject chr, IsoLightSource[] ret) getLoadedModel
(String meshName) getLoadedModel
(String meshName, String tex, boolean isStatic, String shaderName) getSlot
(IsoGameCharacter chr) 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 shaderID, int userId, int z) 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) 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 shaderID, int userId, int z) -
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.- Parameters:
chr
-
-
dressInRandomOutfit
-
getBodyModel
-
ContainsChar
Returns TRUE if the character is currently in the visible render list, and has not been flagged for removal.- Parameters:
chr
-- Returns:
-
ResetCharacterEquippedHands
-
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() -
getClosestThreeLights
-
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() -
setModelMetaData
-
setModelMetaData
-
loadStaticModel
-
getLoadedModel
-
getLoadedModel
-
tryGetLoadedModel
-
putLoadedModel
-
addAnimationClip
-
getAnimationClip
-
getAllAnimationClips
-
newInstance
-
isLoadingAnimations
public boolean isLoadingAnimations() -
reloadModelsMatching
-
loadModAnimations
public void loadModAnimations() -
animationAssetLoaded
-
initAnimationMeshes
public void initAnimationMeshes(boolean bReloading)
-