|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.rico.engine.camera.CameraViewPort
public class CameraViewPort
This class represents the viewport of a camera
Constructor Summary | |
---|---|
CameraViewPort(int x,
int y,
int width,
int height)
Creates a new camera viewport |
Method Summary | |
---|---|
int |
getHeight()
Returns the height of the viewport. |
int |
getWidth()
Returns the width of the viewport |
int |
getX()
Returns the x-coordinate of the viewport |
int |
getY()
Returns the y-coordinate of the viewport |
void |
setHeight(int height)
Sets the height of the viewport to the specified value |
void |
setTo(int x,
int y,
int width,
int height)
Sets the viewport to the specified parameters |
void |
setWidth(int width)
Sets the width of the viewport to the specifed value |
void |
setX(int x)
Sets the x-coordinate of the viewport to the specified values |
void |
setY(int y)
Sets the y-coordinate of the viewport to the specified values |
java.lang.String |
toString()
|
void |
update(javax.media.opengl.GL gl)
Updates the viewport if neccessary |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CameraViewPort(int x, int y, int width, int height)
x
- x-coordinate of the viewporty
- y-coordinate of the viewportwidth
- width of the viewportheight
- height of the viewportMethod Detail |
---|
public void setTo(int x, int y, int width, int height)
x
- x-coordinate of the viewporty
- y-coordinate of the viewportwidth
- width of the viewportheight
- height of the viewportpublic int getX()
public void setX(int x)
x
- new x-coordinate for the viewportpublic void setY(int y)
y
- new y-coordinate for the viewportpublic void setWidth(int width)
width
- new width of the viewportpublic void setHeight(int height)
height
- new height of the viewportpublic int getY()
public int getWidth()
public int getHeight()
public java.lang.String toString()
toString
in class java.lang.Object
public void update(javax.media.opengl.GL gl)
gl
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |