public class Camera extends QuickEntity implements WindowChangeListener
| Modifier and Type | Field and Description |
|---|---|
protected float |
aspect |
protected float |
fov |
protected Matrix4f |
projection |
protected float |
zFar |
protected float |
zNear |
engine, name, NAME_UNTITLED_ENTITY, parent| Constructor and Description |
|---|
Camera() |
Camera(Dimension screen) |
Camera(float fov,
float aspect) |
Camera(float fov,
float aspect,
float zNear,
float zFar) |
Camera(Matrix4f projection)
For internal use only
(or for smart people out there)
|
| Modifier and Type | Method and Description |
|---|---|
void |
bindAsMain() |
Matrix4f |
getView() |
Matrix4f |
getViewProjection() |
void |
onWindowChange(Window window) |
void |
removed()
Sets the parent to null.
|
void |
setAspect(float aspect) |
void |
setEngine(CoreEngine engine)
Set the CoreEngine
|
void |
setFov(float fov) |
protected void |
setMatrix(float fov,
float aspect,
float zNear,
float zFar) |
void |
setzFar(float zFar) |
void |
setzNear(float zNear) |
attached, boxed, getTransform, render, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, setParentgetEngineprotected float fov
protected float aspect
protected float zNear
protected float zFar
protected Matrix4f projection
public Camera(Matrix4f projection)
projection - The view camera-projectionpublic Camera()
public Camera(Dimension screen)
public Camera(float fov,
float aspect)
public Camera(float fov,
float aspect,
float zNear,
float zFar)
public Matrix4f getViewProjection()
public Matrix4f getView()
public void bindAsMain()
public void setEngine(CoreEngine engine)
EntitysetEngine in interface EngineHolder<CoreEngine>setEngine in interface Entityengine - The new coreenginepublic void removed()
QuickEntityremoved in interface Entityremoved in class QuickEntityEntity.removed()public void setFov(float fov)
public void setAspect(float aspect)
public void setzNear(float zNear)
public void setzFar(float zFar)
protected void setMatrix(float fov,
float aspect,
float zNear,
float zFar)
public void onWindowChange(Window window)
onWindowChange in interface WindowChangeListenerCopyright © 2014. All rights reserved.