Package com.jme3.system.lwjgl
Class LwjglOffscreenBuffer
java.lang.Object
com.jme3.system.lwjgl.LwjglContext
com.jme3.system.lwjgl.LwjglOffscreenBuffer
- All Implemented Interfaces:
- JmeContext,- Runnable
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.jme3.system.JmeContextJmeContext.Type
- 
Field SummaryFieldsFields inherited from class com.jme3.system.lwjgl.LwjglContextclContext, clPlatform, created, createdLock, joyInput, keyInput, listener, mouseInput, renderable, renderer, settings, THREAD_NAME, timer
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanvoidcreate(boolean waitFor) Creates the context and makes it active.protected voidvoiddestroy(boolean waitFor) Destroys the context completely, making it inactive.getType()protected voidvoidrestart()Destroys and then re-creates the context.voidrun()protected voidrunLoop()voidsetAutoFlushFrames(boolean enabled) voidSets the title of the display (if available).Methods inherited from class com.jme3.system.lwjgl.LwjglContextcreate, 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, waitFor
- 
Field Details- 
needClose
 
- 
- 
Constructor Details- 
LwjglOffscreenBufferpublic LwjglOffscreenBuffer()
 
- 
- 
Method Details- 
initInThreadprotected void initInThread()
- 
checkGLErrorprotected boolean checkGLError()
- 
runLoopprotected void runLoop()
- 
deinitInThreadprotected void deinitInThread()
- 
runpublic void run()
- 
destroypublic void destroy(boolean waitFor) Description copied from interface:JmeContextDestroys the context completely, making it inactive.- Specified by:
- destroyin interface- JmeContext
- Parameters:
- waitFor- If true, will wait until the context is destroyed fully.
 
- 
createpublic void create(boolean waitFor) Description copied from interface:JmeContextCreates the context and makes it active.- Specified by:
- createin interface- JmeContext
- Parameters:
- waitFor- If true, will wait until context has initialized.
 
- 
restartpublic void restart()Description copied from interface:JmeContextDestroys and then re-creates the context. This should be called after the display settings have been changed.- Specified by:
- restartin interface- JmeContext
 
- 
setAutoFlushFramespublic void setAutoFlushFrames(boolean enabled) - Specified by:
- setAutoFlushFramesin interface- JmeContext
- Parameters:
- enabled- If enabled, the context will automatically flush frames to the video card (swap buffers) after an update cycle.
 
- 
getType- Specified by:
- getTypein interface- JmeContext
- Returns:
- The type of the context.
 
- 
getMouseInput- Specified by:
- getMouseInputin interface- JmeContext
- Returns:
- Mouse input implementation. May be null if not available.
 
- 
getKeyInput- Specified by:
- getKeyInputin interface- JmeContext
- Returns:
- Keyboard input implementation. May be null if not available.
 
- 
getJoyInput- Specified by:
- getJoyInputin interface- JmeContext
- Returns:
- Joystick input implementation. May be null if not available.
 
- 
getTouchInput- Specified by:
- getTouchInputin interface- JmeContext
- Returns:
- Touch device input implementation. May be null if not available.
 
- 
setTitleDescription copied from interface:JmeContextSets the title of the display (if available). This does nothing for fullscreen, headless, or canvas contexts.- Specified by:
- setTitlein interface- JmeContext
- Parameters:
- title- The new title of the display.
 
 
-