public class Scene extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
Camera |
camera |
java.util.List<Model> |
modelList |
Constructor and Description |
---|
Scene()
Construct a scene with a default camera object.
|
Scene(Camera camera)
Construct a scene with the given camera object.
|
Modifier and Type | Method and Description |
---|---|
void |
addModel(Model... mArray)
Add a model (or models) to this scene.
|
void |
setCamera(Camera camera)
Change this scene's camera to the given camera object.
|
java.lang.String |
toString()
For debugging.
|
public Scene()
public void addModel(Model... mArray)
mArray
- array of Models to add to this Scenepublic void setCamera(Camera camera)
camera
- new Camera object for this Scenepublic java.lang.String toString()
toString
in class java.lang.Object