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, getFramebufferHeight, getFramebufferWidth, getGLVersion, getNumSamplesToUse, getOpenCLContext, getRenderer, getSettings, getSystemListener, getTimer, getWindowXPosition, getWindowYPosition, 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)
width - The required display widthheight - The required display heightbpp - The required bits per pixel. If -1 is passed it will return
whatever bpp is foundfreq - The required frequency, if -1 is passed it will return
whatever frequency is foundDisplayMode matches with specified settings or
return null if no matching display mode is foundprotected 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