Package zombie.core.skinnedmodel.model
Class ModelMesh
java.lang.Object
zombie.asset.Asset
zombie.core.skinnedmodel.model.ModelMesh
public final class ModelMesh extends Asset
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ModelMesh.MeshAssetParams
Nested classes/interfaces inherited from class zombie.asset.Asset
Asset.ObserverCallback, Asset.State
-
Field Summary
Fields Modifier and Type Field Description static AssetType
ASSET_TYPE
ModelMesh.MeshAssetParams
assetParams
protected boolean
bStatic
ModelMesh
m_animationsMesh
java.lang.String
m_fullPath
Matrix4f
m_transform
SkinningData
skinningData
SoftwareModelMesh
softwareMesh
VertexBufferObject
vb
Fields inherited from class zombie.asset.Asset
m_asset_manager
-
Constructor Summary
Constructors Constructor Description ModelMesh(AssetPath assetPath, AssetManager assetManager, ModelMesh.MeshAssetParams meshAssetParams)
-
Method Summary
Modifier and Type Method Description void
clear()
void
Draw(Shader shader)
AssetType
getType()
void
onBeforeReady()
protected void
onLoadedTxt(ModelTxt modelTxt)
protected void
onLoadedX(ProcessedAiScene processedAiScene)
void
setAssetParams(AssetManager.AssetParams assetParams)
void
SetVertexBuffer(VertexBufferObject vertexBufferObject)
Methods inherited from class zombie.asset.Asset
addDependency, getAssetManager, getObserverCb, getPath, getRefCount, getState, isEmpty, isFailure, isReady, onBeforeEmpty, onCreated, removeDependency
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
vb
-
skinningData
-
softwareMesh
-
assetParams
-
m_transform
-
bStatic
protected boolean bStatic -
m_animationsMesh
-
m_fullPath
public java.lang.String m_fullPath -
ASSET_TYPE
-
-
Constructor Details
-
ModelMesh
public ModelMesh(AssetPath assetPath, AssetManager assetManager, ModelMesh.MeshAssetParams meshAssetParams)
-
-
Method Details
-
onLoadedX
-
onLoadedTxt
-
SetVertexBuffer
-
Draw
-
onBeforeReady
public void onBeforeReady()- Overrides:
onBeforeReady
in classAsset
-
setAssetParams
- Overrides:
setAssetParams
in classAsset
-
getType
-
clear
public void clear()
-