|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.render.config.DisplayMode
public class DisplayMode
Represents an abstract display mode.
All available DisplayModes can be retrieved by a DisplayModeSelector
implementation.
DisplayModeSelector| Nested Class Summary | |
|---|---|
static class |
DisplayMode.FullscreenMode
|
| Field Summary | |
|---|---|
static DisplayMode.FullscreenMode |
FULLSCREEN
|
static boolean |
VSYNC_DISABLED
|
static boolean |
VSYNC_ENABLED
|
static DisplayMode.FullscreenMode |
WINDOWED
|
static DisplayMode.FullscreenMode |
WINDOWED_UNDECORATED
|
| Constructor Summary | |
|---|---|
DisplayMode(java.lang.Object nativeMode,
int width,
int height,
int bpp,
int freq)
Creates a new DisplayMode object. |
|
DisplayMode(OpenGLLayer oglLayer,
java.lang.Object nativeMode,
int width,
int height,
int bpp,
int freq)
Creates a new DisplayMode object. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object other)
|
float |
getAspect()
|
int |
getBPP()
|
static int |
getDefaultBPP()
|
static int |
getDefaultFrequency()
|
int |
getFrequency()
|
int |
getHeight()
|
java.lang.Object |
getNativeMode()
|
OpenGLLayer |
getOpenGLLayer()
|
org.openmali.vecmath2.Tuple2i |
getSize()
|
int |
getWidth()
|
static DisplayMode |
parseDisplayMode(OpenGLLayer layer,
java.lang.String value)
Creates a DisplayMode instance from the String, if possible. |
java.lang.String |
toLightString()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static DisplayMode.FullscreenMode FULLSCREEN
public static DisplayMode.FullscreenMode WINDOWED
public static DisplayMode.FullscreenMode WINDOWED_UNDECORATED
public static boolean VSYNC_ENABLED
public static boolean VSYNC_DISABLED
| Constructor Detail |
|---|
public DisplayMode(OpenGLLayer oglLayer,
java.lang.Object nativeMode,
int width,
int height,
int bpp,
int freq)
oglLayer - nativeMode - the OpenGLLayer dependent DisplayMode objectwidth - the widthheight - the heightbpp - the pits per pixelfreq - the frequency
public DisplayMode(java.lang.Object nativeMode,
int width,
int height,
int bpp,
int freq)
nativeMode - the OpenGLLayer dependent DisplayMode objectwidth - the widthheight - the heightbpp - the pits per pixelfreq - the frequency| Method Detail |
|---|
public static int getDefaultBPP()
public static int getDefaultFrequency()
public final OpenGLLayer getOpenGLLayer()
public java.lang.Object getNativeMode()
public final int getWidth()
getWidth in interface org.openmali.types.twodee.Sized2iROpublic final int getHeight()
getHeight in interface org.openmali.types.twodee.Sized2iROpublic org.openmali.vecmath2.Tuple2i getSize()
public float getAspect()
getAspect in interface org.openmali.types.twodee.Sized2iROpublic final int getBPP()
public final int getFrequency()
public static DisplayMode parseDisplayMode(OpenGLLayer layer,
java.lang.String value)
throws java.lang.IllegalArgumentException
layer - the OpenGLLayer to use for native mode retievalvalue - the String to create a DisplayMode from
java.lang.IllegalArgumentException - if the String was not of the right formatpublic java.lang.String toLightString()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||