Class Camera
Inheritance
java.lang.Object
Camera
Syntax
public class Camera extends SceneComponent
Constructors
Camera(float fov, float aspectRatio, float zNear, float zFar, String name)
Declaration
public Camera(float fov, float aspectRatio, float zNear, float zFar, String name)
Parameters
Type |
Name |
Description |
float |
fov |
|
float |
aspectRatio |
|
float |
zNear |
|
float |
zFar |
|
String |
name |
|
Camera(float left, float right, float bottom, float top, float zNear, float zFar, String name)
Declaration
public Camera(float left, float right, float bottom, float top, float zNear, float zFar, String name)
Parameters
Type |
Name |
Description |
float |
left |
|
float |
right |
|
float |
bottom |
|
float |
top |
|
float |
zNear |
|
float |
zFar |
|
String |
name |
|
Camera(Vector3f pos, Vector3f forward, Vector3f up, String name)
Declaration
public Camera(Vector3f pos, Vector3f forward, Vector3f up, String name)
Parameters
Methods
addToScene()
Declaration
getLeft()
Declaration
public Vector3f getLeft()
Returns
getProjection()
Declaration
public Matrix4f getProjection()
Returns
getRight()
Declaration
public Vector3f getRight()
Returns
getViewOrthographic()
Declaration
public Matrix4f getViewOrthographic()
Returns
getViewProjection()
Declaration
public Matrix4f getViewProjection()
Returns
Declaration
public void input(float delta)
Parameters
Type |
Name |
Description |
float |
delta |
|
setProjection(Matrix4f projection)
Declaration
public void setProjection(Matrix4f projection)
Parameters
Type |
Name |
Description |
Matrix4f |
projection |
|