com.jme3.system.lwjgl
Class LwjglDisplay
java.lang.Object
com.jme3.system.lwjgl.LwjglContext
com.jme3.system.lwjgl.LwjglAbstractDisplay
com.jme3.system.lwjgl.LwjglDisplay
- All Implemented Interfaces:
- JmeContext, java.lang.Runnable
public class LwjglDisplay
- extends LwjglAbstractDisplay
Method Summary |
void |
create(boolean waitFor)
Creates the context and makes it active. |
protected void |
createContext(AppSettings settings)
Apply the settings, changing resolution, etc. |
protected void |
destroyContext()
Destroy the context. |
protected org.lwjgl.opengl.DisplayMode |
getFullscreenDisplayMode(int width,
int height,
int bpp,
int freq)
|
JmeContext.Type |
getType()
|
void |
restart()
Restart if its a windowed or full-screen display. |
void |
runLoop()
execute one iteration of the render loop in the OpenGL thread |
void |
setTitle(java.lang.String title)
Set the title if its a windowed display |
Methods inherited from class com.jme3.system.lwjgl.LwjglContext |
create, createContextAttribs, destroy, getRenderer, getSettings, getTimer, initContextFirstTime, internalCreate, internalDestroy, isCreated, isRenderable, printContextInitInfo, setSettings, setSystemListener, waitFor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LwjglDisplay
public LwjglDisplay()
getFullscreenDisplayMode
protected org.lwjgl.opengl.DisplayMode getFullscreenDisplayMode(int width,
int height,
int bpp,
int freq)
createContext
protected void createContext(AppSettings settings)
throws org.lwjgl.LWJGLException
- Description copied from class:
LwjglAbstractDisplay
- Apply the settings, changing resolution, etc.
- Specified by:
createContext
in class LwjglAbstractDisplay
- Throws:
org.lwjgl.LWJGLException
destroyContext
protected void destroyContext()
- Description copied from class:
LwjglAbstractDisplay
- Destroy the context.
- Specified by:
destroyContext
in class LwjglAbstractDisplay
create
public void create(boolean waitFor)
- Description copied from interface:
JmeContext
- Creates the context and makes it active.
- Parameters:
waitFor
- If true, will wait until context has initialized.
runLoop
public void runLoop()
- Description copied from class:
LwjglAbstractDisplay
- execute one iteration of the render loop in the OpenGL thread
- Overrides:
runLoop
in class LwjglAbstractDisplay
restart
public void restart()
- Description copied from class:
LwjglAbstractDisplay
- Restart if its a windowed or full-screen display.
- Specified by:
restart
in interface JmeContext
- Specified by:
restart
in class LwjglAbstractDisplay
getType
public JmeContext.Type getType()
- Specified by:
getType
in interface JmeContext
- Specified by:
getType
in class LwjglAbstractDisplay
- Returns:
- Type.Display or Type.Canvas
setTitle
public void setTitle(java.lang.String title)
- Description copied from class:
LwjglAbstractDisplay
- Set the title if its a windowed display
- Specified by:
setTitle
in interface JmeContext
- Specified by:
setTitle
in class LwjglAbstractDisplay
- Parameters:
title
- The new title of the display.