java.lang.Object
nl.colorize.multimedialib.renderer.libgdx.GDXModel
All Implemented Interfaces:
Updatable, PolygonModel

public class GDXModel extends Object implements PolygonModel
  • Constructor Details

    • GDXModel

      protected GDXModel(com.badlogic.gdx.graphics.g3d.ModelInstance instance)
  • Method Details

    • getInstance

      protected com.badlogic.gdx.graphics.g3d.ModelInstance getInstance()
    • update

      public void update(float deltaTime)
      Description copied from interface: Updatable
      Updates this object for the current frame. deltaTime indicates the elapsed time since the last frame update, in seconds.
      Specified by:
      update in interface Updatable
    • getAnimation

      public ModelAnimation getAnimation(String name)
      Specified by:
      getAnimation in interface PolygonModel
    • playAnimation

      public void playAnimation(ModelAnimation animation)
      Specified by:
      playAnimation in interface PolygonModel
    • getTransform

      public Transform3D getTransform()
      Specified by:
      getTransform in interface PolygonModel
    • copy

      public PolygonModel copy()
      Description copied from interface: PolygonModel
      Creates a copy of this model. The copy will share the same geometry and textures, but will have its own transform. Note that creating the copy does *not* automatically add the copy to the stage.
      Specified by:
      copy in interface PolygonModel
    • toString

      public String toString()
      Overrides:
      toString in class Object