Constructs a scene consisting of a root, with a dimension of width and height, and specifies whether a depth buffer is created for this scene.
A scene with only 2D shapes and without any 3D transforms does not need a
depth buffer. A scene containing 3D shapes or 2D shapes with 3D
transforms may use depth buffer support for proper depth sorted
rendering; to avoid depth fighting (also known as Z fighting), disable
depth testing on 2D shapes that have no 3D transforms. See
depthTest for more information.
root | The root node of the scene graph | |
width | The width of the scene | |
height | The height of the scene | |
depthBuffer | The depth buffer flag
The depthBuffer flag is a conditional feature and its default value is
false. See
|
NullPointerException | if root is null |
Diagram: Scene