Class Model

java.lang.Object
zombie.asset.Asset
zombie.core.skinnedmodel.model.Model

public final class Model extends Asset
  • Field Details

    • ASSET_TYPE

      public static final AssetType ASSET_TYPE
    • name

      public String name
    • mesh

      public final ModelMesh mesh
    • effect

      public Shader effect
    • tag

      public Object tag
    • isStatic

      public boolean isStatic
    • tex

      public Texture tex
    • softwareMesh

      public SoftwareModelMesh softwareMesh
    • m_staticReusableFloatBuffer

      public static final FloatBuffer m_staticReusableFloatBuffer
    • modelDrawCounts

      public static gnu.trove.map.hash.TObjectIntHashMap<Model> modelDrawCounts
    • instancingThreshold

      public static int instancingThreshold
    • debugDrawColours

      public static final Color[] debugDrawColours
    • assetParams

      public Model.ModelAssetParams assetParams
  • Constructor Details

  • Method Details

    • vectorToWorldCoords

      public static void vectorToWorldCoords(float x, float y, float z, float angle, Vector3 vec)
    • boneToWorldCoords

      public static void boneToWorldCoords(AnimationPlayer animPlayer, float x, float y, float z, float animalSize, int boneIndex, Vector3 vec)
    • vectorToWorldCoords

      public static void vectorToWorldCoords(IsoGameCharacter character, Vector3 vec)
    • boneToWorldCoords

      public static void boneToWorldCoords(IsoGameCharacter character, int boneIndex, Vector3 vec)
    • boneToWorldCoords

      public static void boneToWorldCoords(IsoGameCharacter character, SkinningBone bone, Vector3 vec)
    • boneZDirectionToWorldCoords

      public static void boneZDirectionToWorldCoords(IsoGameCharacter character, int boneIndex, Vector3 vec, float length)
    • boneZDirectionToWorldCoords

      public static void boneZDirectionToWorldCoords(IsoGameCharacter character, SkinningBone bone, Vector3 vec, float length)
    • boneYDirectionToWorldCoords

      public static void boneYDirectionToWorldCoords(IsoGameCharacter character, int boneIndex, Vector3 vec, float length)
    • vectorToWorldCoords

      public static void vectorToWorldCoords(ModelSlotRenderData slotData, Vector3 vec)
    • boneToWorldCoords

      public static void boneToWorldCoords(ModelSlotRenderData slotData, int boneIndex, Vector3 vec)
    • boneToWorldCoords

      public static void boneToWorldCoords(ModelSlotRenderData slotData, SkinningBone bone, Vector3 vec)
    • worldToModel

      public static void worldToModel(IsoGameCharacter isoGameCharacter, Vector3 vector3)
    • CharacterModelCameraBegin

      public static void CharacterModelCameraBegin(ModelSlotRenderData slotData)
    • CharacterModelCameraEnd

      public static void CharacterModelCameraEnd()
    • SwapInstancedBasic

      public static void SwapInstancedBasic()
    • EnsureEffect

      public void EnsureEffect()
    • DrawChar

      public void DrawChar(ModelSlotRenderData slotData, ModelInstanceRenderData instData)
    • drawBoneMtx

      public static void drawBoneMtx(org.lwjgl.util.vector.Matrix4f boneMtx)
    • debugDrawLightSource

      public void debugDrawLightSource(IsoLightSource ls, float cx, float cy, float cz, float radians)
    • debugDrawLightSource

      public static void debugDrawLightSource(float lx, float ly, float lz, float cx, float cy, float cz, float radians)
    • DrawVehicle

      public void DrawVehicle(ModelSlotRenderData slotData, ModelInstanceRenderData instData)
    • debugDrawAxis

      public static void debugDrawAxis(float x, float y, float z, boolean flipX, boolean flipY, boolean flipZ, float length, float thickness)
    • debugDrawAxis

      public static void debugDrawAxis(float x, float y, float z, float length, float thickness)
    • setLights

      public void setLights(ModelSlotRenderData slotData, int lightCount)
    • setLightsInst

      public void setLightsInst(ModelSlotRenderData slotData, int lightCount)
    • CreateShader

      public void CreateShader(String name)
    • getType

      public AssetType getType()
      Specified by:
      getType in class Asset