Class GDXModel
java.lang.Object
nl.colorize.multimedialib.renderer.libgdx.GDXModel
- All Implemented Interfaces:
Updatable
,PolygonModel
-
Constructor Summary
ModifierConstructorDescriptionprotected
GDXModel
(com.badlogic.gdx.graphics.g3d.ModelInstance instance) -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Creates a copy of this model.getAnimation
(String name) protected com.badlogic.gdx.graphics.g3d.ModelInstance
void
playAnimation
(ModelAnimation animation) toString()
void
update
(float deltaTime) Updates this object for the current frame.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface nl.colorize.multimedialib.stage.PolygonModel
playAnimation
-
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. -
getAnimation
- Specified by:
getAnimation
in interfacePolygonModel
-
playAnimation
- Specified by:
playAnimation
in interfacePolygonModel
-
getTransform
- Specified by:
getTransform
in interfacePolygonModel
-
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 interfacePolygonModel
-
toString
-