Class TeaStage
- java.lang.Object
-
- nl.colorize.multimedialib.renderer.teavm.TeaStage
-
-
Constructor Summary
Constructors Constructor Description TeaStage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(PolygonModel model)voidchangeAmbientLight(ColorRGB color)voidchangeLight(ColorRGB color, Point3D target)voidclear()PolygonMeshcreateBox(Point3D size, ColorRGB color)PolygonMeshcreateBox(Point3D size, Image image)PolygonMeshcreateQuad(Point2D size, ColorRGB color)PolygonMeshcreateQuad(Point2D size, Image image)PolygonMeshcreateSphere(float diameter, ColorRGB color)PolygonMeshcreateSphere(float diameter, Image image)Point3DgetCameraPosition()voidloadModel()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.
-
-
-
Method Detail
-
update
public void update(float deltaTime)
Description copied from interface:UpdatableUpdates this object for the current frame.
-
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 target)
- Specified by:
changeLightin interfaceStage
-
loadModel
public void loadModel()
-
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
-
createQuad
public PolygonMesh createQuad(Point2D size, ColorRGB color)
- Specified by:
createQuadin interfaceStage
-
createQuad
public PolygonMesh createQuad(Point2D size, Image image)
- Specified by:
createQuadin interfaceStage
-
createBox
public PolygonMesh createBox(Point3D size, ColorRGB color)
-
createBox
public PolygonMesh createBox(Point3D size, Image image)
-
createSphere
public PolygonMesh createSphere(float diameter, ColorRGB color)
- Specified by:
createSpherein interfaceStage
-
createSphere
public PolygonMesh createSphere(float diameter, Image image)
- Specified by:
createSpherein interfaceStage
-
-