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 Summary
Nested classes/interfaces inherited from interface com.jme3.system.JmeContext
JmeContext.Type
-
Field Summary
Fields inherited from class com.jme3.system.lwjgl.LwjglContext
clContext, clPlatform, created, createdLock, joyInput, keyInput, listener, mouseInput, renderable, renderer, settings, THREAD_NAME, timer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
void
create
(boolean waitFor) Creates the context and makes it active.protected void
void
destroy
(boolean waitFor) Destroys the context completely, making it inactive.getType()
protected void
void
restart()
Destroys and then re-creates the context.void
run()
protected void
runLoop()
void
setAutoFlushFrames
(boolean enabled) void
Sets the title of the display (if available).Methods inherited from class com.jme3.system.lwjgl.LwjglContext
create, 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
-
LwjglOffscreenBuffer
public LwjglOffscreenBuffer()
-
-
Method Details
-
initInThread
protected void initInThread() -
checkGLError
protected boolean checkGLError() -
runLoop
protected void runLoop() -
deinitInThread
protected void deinitInThread() -
run
public void run() -
destroy
public void destroy(boolean waitFor) Description copied from interface:JmeContext
Destroys the context completely, making it inactive.- Specified by:
destroy
in interfaceJmeContext
- Parameters:
waitFor
- If true, will wait until the context is destroyed fully.
-
create
public void create(boolean waitFor) Description copied from interface:JmeContext
Creates the context and makes it active.- Specified by:
create
in interfaceJmeContext
- Parameters:
waitFor
- If true, will wait until context has initialized.
-
restart
public void restart()Description copied from interface:JmeContext
Destroys and then re-creates the context. This should be called after the display settings have been changed.- Specified by:
restart
in interfaceJmeContext
-
setAutoFlushFrames
public void setAutoFlushFrames(boolean enabled) - Specified by:
setAutoFlushFrames
in interfaceJmeContext
- Parameters:
enabled
- If enabled, the context will automatically flush frames to the video card (swap buffers) after an update cycle.
-
getType
- Specified by:
getType
in interfaceJmeContext
- Returns:
- The type of the context.
-
getMouseInput
- Specified by:
getMouseInput
in interfaceJmeContext
- Returns:
- Mouse input implementation. May be null if not available.
-
getKeyInput
- Specified by:
getKeyInput
in interfaceJmeContext
- Returns:
- Keyboard input implementation. May be null if not available.
-
getJoyInput
- Specified by:
getJoyInput
in interfaceJmeContext
- Returns:
- Joystick input implementation. May be null if not available.
-
getTouchInput
- Specified by:
getTouchInput
in interfaceJmeContext
- Returns:
- Touch device input implementation. May be null if not available.
-
setTitle
Description copied from interface:JmeContext
Sets the title of the display (if available). This does nothing for fullscreen, headless, or canvas contexts.- Specified by:
setTitle
in interfaceJmeContext
- Parameters:
title
- The new title of the display.
-