|
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.OrthographicCamera
public class OrthographicCamera
A camera with orthographic projection.
Field Summary | |
---|---|
float |
zoom
the zoom of the camera |
Fields inherited from class com.badlogic.gdx.graphics.Camera |
---|
combined, direction, far, frustum, invProjectionView, near, position, projection, up, view, viewportHeight, viewportWidth |
Constructor Summary | |
---|---|
OrthographicCamera()
|
|
OrthographicCamera(float viewportWidth,
float viewportHeight)
Constructs a new OrthographicCamera, using the given viewport width and height. |
|
OrthographicCamera(float viewportWidth,
float viewportHeight,
float diamondAngle)
Constructs a new OrthographicCamera, using the given viewport width and height. |
Method Summary | |
---|---|
void |
findDirectionForIsoView(float targetAngle,
float epsilon,
int maxIterations)
|
void |
setToOrtho(boolean yDown)
Sets this camera to an orthographic projection using a viewport fitting the screen resolution, centered at (Gdx.graphics.getWidth()/2, Gdx.graphics.getHeight()/2), with the y-axis pointing up or down. |
void |
setToOrtho(boolean yDown,
float viewportWidth,
float viewportHeight)
Sets this camera to an orthographic projection, centered at (viewportWidth/2, viewportHeight/2), with the y-axis pointing up or down. |
void |
update()
Recalculates the projection and view matrix of this camera and the Frustum planes. |
void |
update(boolean updateFrustum)
Recalculates the projection and view matrix of this camera and the Frustum planes if updateFrustum is
true. |
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 zoom
Constructor Detail |
---|
public OrthographicCamera()
public OrthographicCamera(float viewportWidth, float viewportHeight)
viewportWidth
- the viewport widthviewportHeight
- the viewport heightpublic OrthographicCamera(float viewportWidth, float viewportHeight, float diamondAngle)
viewportWidth
- the viewport widthviewportHeight
- the viewport heightdiamondAngle
- the angle in degreesMethod Detail |
---|
public void findDirectionForIsoView(float targetAngle, float epsilon, int maxIterations)
public void update()
Camera
Frustum
planes. Use this after you've manipulated
any of the attributes of the camera.
update
in class Camera
public void update(boolean updateFrustum)
Camera
Frustum
planes if updateFrustum
is
true. Use this after you've manipulated any of the attributes of the camera.
update
in class Camera
public void setToOrtho(boolean yDown)
yDown
- whether y should be pointing downpublic void setToOrtho(boolean yDown, float viewportWidth, float viewportHeight)
yDown
- whether y should be pointing down.viewportWidth
- viewportHeight
-
|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |