public class LwjglDisplay extends LwjglAbstractDisplay
JmeContext.TypeallowSwapBuffers, autoFlush, frameRate, needClose, wasActiveclContext, clPlatform, created, createdLock, joyInput, keyInput, listener, mouseInput, renderable, renderer, settings, THREAD_NAME, timer| Constructor and Description |
|---|
LwjglDisplay() |
| Modifier and Type | Method and Description |
|---|---|
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 it's 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 it's a windowed display
|
checkGLError, deinitInThread, destroy, getJoyInput, getKeyInput, getMouseInput, getTouchInput, initInThread, run, setAutoFlushFramescreate, createContextAttribs, destroy, determineMaxSamples, getGLVersion, getNumSamplesToUse, getOpenCLContext, getRenderer, getSettings, getTimer, initContextFirstTime, initOpenCL, internalCreate, internalDestroy, isCreated, isRenderable, loadNatives, printContextInitInfo, reinitContext, setSettings, setSystemListener, waitForprotected org.lwjgl.opengl.DisplayMode getFullscreenDisplayMode(int width,
int height,
int bpp,
int freq)
protected void createContext(AppSettings settings) throws org.lwjgl.LWJGLException
LwjglAbstractDisplaycreateContext in class LwjglAbstractDisplaysettings - the AppSettings to applyorg.lwjgl.LWJGLException - for various error conditionsprotected void destroyContext()
LwjglAbstractDisplaydestroyContext in class LwjglAbstractDisplaypublic void create(boolean waitFor)
JmeContextwaitFor - If true, will wait until context has initialized.public void runLoop()
LwjglAbstractDisplayrunLoop in class LwjglAbstractDisplaypublic void restart()
LwjglAbstractDisplayrestart in interface JmeContextrestart in class LwjglAbstractDisplaypublic JmeContext.Type getType()
getType in interface JmeContextgetType in class LwjglAbstractDisplaypublic void setTitle(java.lang.String title)
LwjglAbstractDisplaysetTitle in interface JmeContextsetTitle in class LwjglAbstractDisplaytitle - the desired title