public class Viewport
extends java.lang.Object
Constructor and Description |
---|
Viewport()
Creates a blank view port
|
Viewport(int width,
int height)
Creates a full screen view port
|
Modifier and Type | Method and Description |
---|---|
int |
getFarClip() |
int |
getHeight() |
int |
getNearClip() |
float |
getNearClipHeight() |
float |
getNearClipWidth() |
float[] |
getProjectionMatrix() |
int |
getWidth() |
void |
setFullscreen(int width,
int height) |
void |
update()
Update the frustum
|
public Viewport()
public Viewport(int width, int height)
width
- The width of the screenheight
- The height of the screenpublic void update()
public void setFullscreen(int width, int height)
public float getNearClipWidth()
public float getNearClipHeight()
public float[] getProjectionMatrix()
public int getWidth()
public int getHeight()
public int getNearClip()
public int getFarClip()