|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.badlogic.gdx.graphics.Camera
com.badlogic.gdx.graphics.PerspectiveCamera
public class PerspectiveCamera
A Camera with perspective projection.
Field Summary | |
---|---|
float |
fieldOfView
the field of view in degrees |
Fields inherited from class com.badlogic.gdx.graphics.Camera |
---|
combined, direction, far, frustum, invProjectionView, near, position, projection, up, view, viewportHeight, viewportWidth |
Constructor Summary | |
---|---|
PerspectiveCamera()
|
|
PerspectiveCamera(float fieldOfView,
float viewportWidth,
float viewportHeight)
Constructs a new PerspectiveCamera with the given field of view and viewport size. |
Method Summary | |
---|---|
void |
update()
Recalculates the projection and view matrix of this camera and the Frustum planes. |
Methods inherited from class com.badlogic.gdx.graphics.Camera |
---|
apply, getPickRay, getPickRay, lookAt, normalizeUp, project, project, rotate, translate, unproject, unproject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public float fieldOfView
Constructor Detail |
---|
public PerspectiveCamera()
public PerspectiveCamera(float fieldOfView, float viewportWidth, float viewportHeight)
PerspectiveCamera
with the given field of view and viewport size. The apsect ratio is derrived from
the viewport size.
fieldOfView
- the field of view in degreesviewportWidth
- the viewport widthviewportHeight
- the viewport heightMethod Detail |
---|
public void update()
Camera
Frustum
planes. Use this after you've manipulated
any of the attributes of the camera.
update
in class Camera
|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |