Class GDXStage
- java.lang.Object
-
- nl.colorize.multimedialib.renderer.libgdx.GDXStage
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGDXStage(GDXMediaLoader mediaLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(PolygonModel model)voidchangeAmbientLight(ColorRGB color)voidchangeLight(ColorRGB color, Point3D direction)voidclear()PolygonMeshcreateBox(Point3D size, ColorRGB color)PolygonMeshcreateBox(Point3D size, Image texture)PolygonMeshcreateQuad(Point2D size, ColorRGB color)PolygonMeshcreateQuad(Point2D size, Image texture)PolygonMeshcreateSphere(float diameter, ColorRGB color)PolygonMeshcreateSphere(float diameter, Image texture)protected com.badlogic.gdx.graphics.PerspectiveCameragetCamera()Point3DgetCameraPosition()protected com.badlogic.gdx.graphics.g3d.EnvironmentgetEnvironment()protected java.util.List<com.badlogic.gdx.graphics.g3d.ModelInstance>getModelDisplayList()voidmoveCamera(Point3D position, Point3D target)voidplayAnimation(PolygonModel model, AnimationInfo animation, boolean loop)voidremove(PolygonModel model)voidupdate(float deltaTime)Updates this object for the current frame.
-
-
-
Constructor Detail
-
GDXStage
protected GDXStage(GDXMediaLoader mediaLoader)
-
-
Method Detail
-
moveCamera
public void moveCamera(Point3D position, Point3D target)
- Specified by:
moveCamerain interfaceStage
-
getCameraPosition
public Point3D getCameraPosition()
- Specified by:
getCameraPositionin interfaceStage
-
changeAmbientLight
public void changeAmbientLight(ColorRGB color)
- Specified by:
changeAmbientLightin interfaceStage
-
changeLight
public void changeLight(ColorRGB color, Point3D direction)
- Specified by:
changeLightin interfaceStage
-
add
public void add(PolygonModel model)
-
remove
public void remove(PolygonModel model)
-
playAnimation
public void playAnimation(PolygonModel model, AnimationInfo animation, boolean loop)
- Specified by:
playAnimationin interfaceStage
-
getCamera
protected com.badlogic.gdx.graphics.PerspectiveCamera getCamera()
-
getEnvironment
protected com.badlogic.gdx.graphics.g3d.Environment getEnvironment()
-
update
public void update(float deltaTime)
Description copied from interface:UpdatableUpdates this object for the current frame.
-
getModelDisplayList
protected java.util.List<com.badlogic.gdx.graphics.g3d.ModelInstance> getModelDisplayList()
-
createQuad
public PolygonMesh createQuad(Point2D size, ColorRGB color)
- Specified by:
createQuadin interfaceStage
-
createQuad
public PolygonMesh createQuad(Point2D size, Image texture)
- Specified by:
createQuadin interfaceStage
-
createBox
public PolygonMesh createBox(Point3D size, ColorRGB color)
-
createBox
public PolygonMesh createBox(Point3D size, Image texture)
-
createSphere
public PolygonMesh createSphere(float diameter, ColorRGB color)
- Specified by:
createSpherein interfaceStage
-
createSphere
public PolygonMesh createSphere(float diameter, Image texture)
- Specified by:
createSpherein interfaceStage
-
-