public class Scene extends java.lang.Object
Scene
data structure is a list of Model
data
structures and a Camera
data structure.
Each Model
object represents a distinct geometric object
in the scene.
The Camera
object determines a "view volume", which
determines how much of the scene is actually visible (to the
camera) and gets rendered into the framebuffer.
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)
|
java.lang.String |
toString()
For debugging.
|
public void addModel(Model... mArray)
Model
(or Models) to this Scene
.mArray
- array of Model
s to add to this Scene
public void setCamera(Camera camera)
camera
- new Camera
object for this Scene
public java.lang.String toString()
toString
in class java.lang.Object
String
representation of this Scene
object