|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.threed.jpct.VideoMode
A VideoMode represents a display mode that a device can handle. Useful to set up the OpenGL renderer in a mode that the current hardware supports. The VideoMode is a description of a video-mode only. It doesn't really set the mode.
FrameBuffer.getVideoModes(int)
,
Serialized FormField Summary | |
int |
bpp
The colordepth of the framebuffer that this video mode uses in bits |
int |
depth
The depth of the depthbuffer in bits |
int |
height
The height of the framebuffer that this video mode uses in pixels |
int |
refresh
The refresh rate in Hz. |
int |
width
The width of the framebuffer that this video mode uses in pixels |
Constructor Summary | |
VideoMode(int width,
int height,
int bpp,
int depth,
int refresh)
Creates a new VideoMode. |
Method Summary | |
boolean |
equalsAlmost(VideoMode vm,
boolean adjust)
Compares two video-modes. |
boolean |
equalsExactly(VideoMode vm)
Compares two video-modes. |
java.lang.String |
toString()
Displays the video-mode data in a human readable format. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public int width
public int height
public int bpp
public int depth
public int refresh
Constructor Detail |
public VideoMode(int width, int height, int bpp, int depth, int refresh)
width
- the widthheight
- the heightbpp
- the colordepthdepth
- the z-buffer depthrefresh
- the refresh rateMethod Detail |
public java.lang.String toString()
public boolean equalsExactly(VideoMode vm)
vm
- the video-mode to compare to
public boolean equalsAlmost(VideoMode vm, boolean adjust)
vm
- the video-mode to compare toadjust
- if true, vm will be adjusted to match the values of this
video-mode, otherwise (=false) it won't be touched.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |