public class LwjglDisplay extends LwjglAbstractDisplay
JmeContext.Type
allowSwapBuffers, autoFlush, frameRate, needClose, wasActive
clContext, 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, setAutoFlushFrames
create, createContextAttribs, destroy, determineMaxSamples, getGLVersion, getNumSamplesToUse, getOpenCLContext, getRenderer, getSettings, getTimer, initContextFirstTime, initOpenCL, internalCreate, internalDestroy, isCreated, isRenderable, loadNatives, printContextInitInfo, setSettings, setSystemListener, waitFor
protected org.lwjgl.opengl.DisplayMode getFullscreenDisplayMode(int width, int height, int bpp, int freq)
protected void createContext(AppSettings settings) throws org.lwjgl.LWJGLException
LwjglAbstractDisplay
createContext
in class LwjglAbstractDisplay
org.lwjgl.LWJGLException
protected void destroyContext()
LwjglAbstractDisplay
destroyContext
in class LwjglAbstractDisplay
public void create(boolean waitFor)
JmeContext
waitFor
- If true, will wait until context has initialized.public void runLoop()
LwjglAbstractDisplay
runLoop
in class LwjglAbstractDisplay
public void restart()
LwjglAbstractDisplay
restart
in interface JmeContext
restart
in class LwjglAbstractDisplay
public JmeContext.Type getType()
getType
in interface JmeContext
getType
in class LwjglAbstractDisplay
public void setTitle(java.lang.String title)
LwjglAbstractDisplay
setTitle
in interface JmeContext
setTitle
in class LwjglAbstractDisplay
title
- The new title of the display.