public class Camera extends GlTFChildOfRootProperty
| Constructor and Description |
|---|
Camera() |
| Modifier and Type | Method and Description |
|---|---|
CameraOrthographic |
getOrthographic()
An orthographic camera containing properties to create an orthographic
projection matrix.
|
CameraPerspective |
getPerspective()
A perspective camera containing properties to create a perspective
projection matrix.
|
java.lang.String |
getType()
Specifies if the camera uses a perspective or orthographic projection.
|
void |
setOrthographic(CameraOrthographic orthographic)
An orthographic camera containing properties to create an orthographic
projection matrix.
|
void |
setPerspective(CameraPerspective perspective)
A perspective camera containing properties to create a perspective
projection matrix.
|
void |
setType(java.lang.String type)
Specifies if the camera uses a perspective or orthographic projection.
|
getName, setNameaddExtensions, getExtensions, getExtras, removeExtensions, setExtensions, setExtraspublic void setOrthographic(CameraOrthographic orthographic)
orthographic - The orthographic to setpublic CameraOrthographic getOrthographic()
public void setPerspective(CameraPerspective perspective)
perspective - The perspective to setpublic CameraPerspective getPerspective()
public void setType(java.lang.String type)
type - The type to setjava.lang.NullPointerException - If the given value is nulljava.lang.IllegalArgumentException - If the given value does not meet
the given constraintspublic java.lang.String getType()
Copyright © 2024. All Rights Reserved.