|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jme.system.DisplaySystem
com.jme.system.lwjgl.LWJGLDisplaySystem
public class LWJGLDisplaySystem
Modified to use an alternative pixel format constructor which enable stereo when needed.
| Constructor Summary | |
|---|---|
LWJGLDisplaySystem()
Constructor instantiates a new LWJGLDisplaySystem object. |
|
| Method Summary | |
|---|---|
void |
close()
close destroys the LWJGL Display context. |
com.jme.system.canvas.JMECanvas |
createCanvas(int w,
int h)
createCanvas will create an OpenGL capable Canvas context. |
com.jme.system.canvas.JMECanvas |
createCanvas(int w,
int h,
java.lang.String type,
java.util.HashMap<java.lang.String,java.lang.Object> props)
createCanvas will create an OpenGL capable Canvas context. |
void |
createHeadlessWindow(int w,
int h,
int bpp)
createHeadlessWindow will create a headless LWJGL display
context. |
com.jme.renderer.TextureRenderer |
createTextureRenderer(int width,
int height,
com.jme.renderer.TextureRenderer.Target target)
createTextureRenderer builds the renderer used to render to
a texture. |
void |
createWindow(int w,
int h,
int bpp,
int frq,
boolean fs)
createWindow will create a LWJGL display context. |
java.lang.String |
getAdapter()
|
com.jme.renderer.RenderContext<? extends java.lang.Object> |
getCurrentContext()
|
java.lang.String |
getDisplayAPIVersion()
getDisplayAPIVersion returns the API version supported. |
java.lang.String |
getDisplayRenderer()
getDisplayRenderer returns details of the adapter. |
java.lang.String |
getDisplayVendor()
getDisplayVendor returns the vendor of the graphics adapter. |
java.lang.String |
getDriverVersion()
|
org.lwjgl.opengl.PixelFormat |
getFormat()
Returns a new PixelFormat with the current settings. |
org.lwjgl.opengl.Pbuffer |
getHeadlessDisplay()
Returns the Pbuffer used for headless display or null if not headless. |
com.jme.renderer.lwjgl.LWJGLRenderer |
getRenderer()
getRenderer returns the created rendering class for LWJGL (
LWJGLRenderer). |
void |
initForApplet(int w,
int h)
Initializes the displaysystem for use in Applets. |
void |
initForCanvas(int width,
int height)
Inits the for canvas. |
boolean |
isActive()
|
boolean |
isClosing()
isClosing returns any close requests. |
boolean |
isValidDisplayMode(int width,
int height,
int bpp,
int freq)
Checks if is valid display mode. |
void |
moveWindowTo(int locX,
int locY)
|
void |
recreateWindow(int w,
int h,
int bpp,
int frq,
boolean fs)
recreateWindow will recreate a LWJGL display context. |
com.jme.renderer.RenderContext<? extends java.lang.Object> |
removeContext(java.lang.Object contextKey)
Switches to another RenderContext identified by the contextKey or to a new RenderContext if none is provided. |
void |
reset()
reset prepares the window for closing or restarting. |
void |
setIcon(com.jme.image.Image[] iconImages)
Sets the icon. |
void |
setRenderer(com.jme.renderer.Renderer r)
setRenderer sets the supplied renderer as this display's
renderer. |
void |
setTitle(java.lang.String title)
setTitle sets the window title of the created window. |
void |
setVSyncEnabled(boolean enabled)
Sets the v sync enabled. |
com.jme.renderer.RenderContext<? extends java.lang.Object> |
switchContext(java.lang.Object contextKey)
Switches to another RenderContext identified by the contextKey or to a new RenderContext if none is provided. |
| Methods inherited from class com.jme.system.DisplaySystem |
|---|
getBitDepth, getBrightness, getContrast, getDisplaySystem, getDisplaySystem, getFrequency, getGamma, getHeight, getMinAlphaBits, getMinDepthBits, getMinSamples, getMinStencilBits, getPickRay, getScreenCoordinates, getScreenCoordinates, getSystemProvider, getSystemProviderIdentifiers, getWidth, getWorldCoordinates, getWorldCoordinates, isCreated, isFullScreen, makeCanvasConstructor, registerCanvasConstructor, resetSystemProvider, setBrightness, setBrightnessGammaContrast, setContrast, setGamma, setHeight, setMinAlphaBits, setMinDepthBits, setMinSamples, setMinStencilBits, setSystemProvider, setWidth, updateStates |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LWJGLDisplaySystem()
LWJGLDisplaySystem object.
During instantiation confirmation is made to determine if the LWJGL API
is installed properly. If not, a JmeException is thrown.
| Method Detail |
|---|
public void close()
close destroys the LWJGL Display context.
close in class com.jme.system.DisplaySystem
public com.jme.system.canvas.JMECanvas createCanvas(int w,
int h)
createCanvas will create an OpenGL capable Canvas context.
This window will be a purely native context as defined by the LWJGL API.
createCanvas in class com.jme.system.DisplaySystemw - the wh - the h
DisplaySystem.createCanvas(int, int)
public com.jme.system.canvas.JMECanvas createCanvas(int w,
int h,
java.lang.String type,
java.util.HashMap<java.lang.String,java.lang.Object> props)
createCanvas will create an OpenGL capable Canvas context.
This window will be a purely native context as defined by the LWJGL API.
createCanvas in class com.jme.system.DisplaySystemw - the wh - the htype - the typeprops - the props
DisplaySystem.createCanvas(int, int, String, HashMap)
public void createHeadlessWindow(int w,
int h,
int bpp)
createHeadlessWindow will create a headless LWJGL display
context. This window will be a purely native context as defined by the
LWJGL API.
createHeadlessWindow in class com.jme.system.DisplaySystemw - the wh - the hbpp - the bppDisplaySystem.createHeadlessWindow(int, int, int)
public com.jme.renderer.TextureRenderer createTextureRenderer(int width,
int height,
com.jme.renderer.TextureRenderer.Target target)
createTextureRenderer builds the renderer used to render to
a texture.
createTextureRenderer in class com.jme.system.DisplaySystemwidth - the widthheight - the heighttarget - the target
public void createWindow(int w,
int h,
int bpp,
int frq,
boolean fs)
throws com.jme.system.JmeException
createWindow will create a LWJGL display context. This
window will be a purely native context as defined by the LWJGL API.
createWindow in class com.jme.system.DisplaySystemw - the wh - the hbpp - the bppfrq - the frqfs - the fs
com.jme.system.JmeException - the jme exceptionDisplaySystem.createWindow(int, int, int, int,
boolean)public java.lang.String getAdapter()
getAdapter in class com.jme.system.DisplaySystempublic com.jme.renderer.RenderContext<? extends java.lang.Object> getCurrentContext()
getCurrentContext in class com.jme.system.DisplaySystempublic java.lang.String getDisplayAPIVersion()
getDisplayAPIVersion returns the API version supported.
getDisplayAPIVersion in class com.jme.system.DisplaySystempublic java.lang.String getDisplayRenderer()
getDisplayRenderer returns details of the adapter.
getDisplayRenderer in class com.jme.system.DisplaySystempublic java.lang.String getDisplayVendor()
getDisplayVendor returns the vendor of the graphics adapter.
getDisplayVendor in class com.jme.system.DisplaySystempublic java.lang.String getDriverVersion()
getDriverVersion in class com.jme.system.DisplaySystempublic org.lwjgl.opengl.PixelFormat getFormat()
public org.lwjgl.opengl.Pbuffer getHeadlessDisplay()
public com.jme.renderer.lwjgl.LWJGLRenderer getRenderer()
getRenderer returns the created rendering class for LWJGL (
LWJGLRenderer). This will give the needed access to display
data to the window.
getRenderer in class com.jme.system.DisplaySystemDisplaySystem.getRenderer()
public void initForApplet(int w,
int h)
w - width of the appleth - height of the applet
public void initForCanvas(int width,
int height)
width - the widthheight - the heightpublic boolean isActive()
isActive in class com.jme.system.DisplaySystempublic boolean isClosing()
isClosing returns any close requests. True if any exist,
false otherwise.
isClosing in class com.jme.system.DisplaySystemDisplaySystem.isClosing()
public boolean isValidDisplayMode(int width,
int height,
int bpp,
int freq)
isValidDisplayMode in class com.jme.system.DisplaySystemwidth - the widthheight - the heightbpp - the bppfreq - the freq
DisplaySystem.isValidDisplayMode(int, int, int, int)
public void moveWindowTo(int locX,
int locY)
moveWindowTo in class com.jme.system.DisplaySystem
public void recreateWindow(int w,
int h,
int bpp,
int frq,
boolean fs)
recreateWindow will recreate a LWJGL display context. This
window will be a purely native context as defined by the LWJGL API.
If a window is not already created, it calls createWindow and exits.
Other wise it calls reinitDisplay and renderer.reinit(width,height)
recreateWindow in class com.jme.system.DisplaySystemw - the wh - the hbpp - the bppfrq - the frqfs - the fsDisplaySystem.recreateWindow(int, int, int, int,
boolean)public com.jme.renderer.RenderContext<? extends java.lang.Object> removeContext(java.lang.Object contextKey)
contextKey - key identifier
public void reset()
reset prepares the window for closing or restarting.
reset in class com.jme.system.DisplaySystemDisplaySystem.reset()public void setIcon(com.jme.image.Image[] iconImages)
setIcon in class com.jme.system.DisplaySystemiconImages - the new iconDisplaySystem.setIcon(com.jme.image.Image[])public void setRenderer(com.jme.renderer.Renderer r)
setRenderer sets the supplied renderer as this display's
renderer. NOTE: If the supplied renderer is not LWJGLRenderer, then it is
ignored.
setRenderer in class com.jme.system.DisplaySystemr - the renderer to set.public void setTitle(java.lang.String title)
setTitle sets the window title of the created window.
setTitle in class com.jme.system.DisplaySystemtitle - the title.public void setVSyncEnabled(boolean enabled)
setVSyncEnabled in class com.jme.system.DisplaySystemenabled - the new v sync enabledDisplaySystem.setVSyncEnabled(boolean)public com.jme.renderer.RenderContext<? extends java.lang.Object> switchContext(java.lang.Object contextKey)
contextKey - key identifier
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||