Interface Stage
-
- All Superinterfaces:
Updatable
public interface Stage extends Updatable
The stage contains everything that should be displayed. The stage can contain 2D graphics, 3D graphics, or a combination of the two.The contents of a stage consist of a camera, lighting, and a number of models. Models can be loaded from files using the
MediaLoader, but the stage can also contain simple geometry programatically.
-
-
Method Summary
All Methods Instance Methods Abstract 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 texture)PolygonMeshcreateQuad(Point2D size, ColorRGB color)PolygonMeshcreateQuad(Point2D size, Image texture)PolygonMeshcreateSphere(float diameter, ColorRGB color)PolygonMeshcreateSphere(float diameter, Image texture)Point3DgetCameraPosition()voidmoveCamera(Point3D position, Point3D direction)voidplayAnimation(PolygonModel model, AnimationInfo animation, boolean loop)voidremove(PolygonModel model)
-
-
-
Method Detail
-
getCameraPosition
Point3D getCameraPosition()
-
changeAmbientLight
void changeAmbientLight(ColorRGB color)
-
add
void add(PolygonModel model)
-
remove
void remove(PolygonModel model)
-
clear
void clear()
-
playAnimation
void playAnimation(PolygonModel model, AnimationInfo animation, boolean loop)
-
createQuad
PolygonMesh createQuad(Point2D size, ColorRGB color)
-
createQuad
PolygonMesh createQuad(Point2D size, Image texture)
-
createBox
PolygonMesh createBox(Point3D size, ColorRGB color)
-
createBox
PolygonMesh createBox(Point3D size, Image texture)
-
createSphere
PolygonMesh createSphere(float diameter, ColorRGB color)
-
createSphere
PolygonMesh createSphere(float diameter, Image texture)
-
-