public class LwjglCanvas extends LwjglAbstractDisplay implements com.jme3.system.JmeCanvasContext
| Modifier and Type | Field and Description |
|---|---|
protected static int |
TASK_COMPLETE |
protected static int |
TASK_CREATE_DISPLAY |
protected static int |
TASK_DESTROY_DISPLAY |
protected static int |
TASK_NOTHING |
protected static boolean |
USE_SHARED_CONTEXT |
allowSwapBuffers, autoFlush, frameRate, needClose, wasActiveclContext, clPlatform, created, createdLock, joyInput, keyInput, listener, mouseInput, renderable, renderer, settings, THREAD_NAME, timer| Constructor and Description |
|---|
LwjglCanvas() |
| Modifier and Type | Method and Description |
|---|---|
protected org.lwjgl.opengl.PixelFormat |
acquirePixelFormat(boolean forPbuffer)
It seems it is best to use one pixel format for all shared contexts.
|
void |
create(boolean waitFor) |
protected void |
createContext(com.jme3.system.AppSettings settings)
This is called:
1) When the context thread starts
2) Any time the canvas becomes displayable again.
|
protected void |
destroyContext()
This is called:
1) When the context thread ends
2) Any time the canvas becomes non-displayable
|
protected void |
destroyPbuffer() |
java.awt.Canvas |
getCanvas() |
com.jme3.system.JmeContext.Type |
getType() |
protected void |
makePbufferAvailable()
Makes sure the pbuffer is available and ready for use
|
void |
restart()
Restart if it's a windowed or full-screen display.
|
protected 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, setSettings, setSystemListener, waitForprotected static final int TASK_NOTHING
protected static final int TASK_DESTROY_DISPLAY
protected static final int TASK_CREATE_DISPLAY
protected static final int TASK_COMPLETE
protected static final boolean USE_SHARED_CONTEXT
public com.jme3.system.JmeContext.Type getType()
getType in interface com.jme3.system.JmeContextgetType in class LwjglAbstractDisplaypublic void create(boolean waitFor)
create in interface com.jme3.system.JmeContextpublic void setTitle(java.lang.String title)
LwjglAbstractDisplaysetTitle in interface com.jme3.system.JmeContextsetTitle in class LwjglAbstractDisplaypublic void restart()
LwjglAbstractDisplayrestart in interface com.jme3.system.JmeContextrestart in class LwjglAbstractDisplaypublic java.awt.Canvas getCanvas()
getCanvas in interface com.jme3.system.JmeCanvasContextprotected void runLoop()
LwjglAbstractDisplayrunLoop in class LwjglAbstractDisplayprotected org.lwjgl.opengl.PixelFormat acquirePixelFormat(boolean forPbuffer)
protected void makePbufferAvailable()
throws org.lwjgl.LWJGLException
org.lwjgl.LWJGLExceptionprotected void destroyPbuffer()
protected void destroyContext()
destroyContext in class LwjglAbstractDisplayprotected void createContext(com.jme3.system.AppSettings settings)
createContext in class LwjglAbstractDisplay