Package com.jme3.system.lwjgl
Class LwjglContext
java.lang.Object
com.jme3.system.lwjgl.LwjglContext
- All Implemented Interfaces:
com.jme3.system.JmeContext
- Direct Known Subclasses:
LwjglWindow
A LWJGL implementation of a graphics context.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.jme3.system.JmeContext
com.jme3.system.JmeContext.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanprotected LwjglContextprotected final AtomicBooleanprotected final Objectprotected GlfwJoystickInputprotected GlfwKeyInputprotected com.jme3.system.SystemListenerprotected GlfwMouseInputprotected final AtomicBooleanprotected com.jme3.renderer.Rendererprotected final com.jme3.system.AppSettingsprotected com.jme3.system.Timer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreate()voiddestroy()protected intprotected intcom.jme3.opencl.Contextcom.jme3.renderer.Renderercom.jme3.system.AppSettingscom.jme3.system.SystemListenerAccesses the listener that receives events related to this context.com.jme3.system.TimergetTimer()protected voidInitializes the LWJGL renderer and input for the first time.protected voidinitOpenCL(long window) voidvoidbooleanbooleanprotected voidprotected voidReinitializes the relevant details of the context.voidsetSettings(com.jme3.system.AppSettings settings) voidsetSystemListener(com.jme3.system.SystemListener listener) protected voidwaitFor(boolean createdVal) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.jme3.system.JmeContext
create, destroy, getFramebufferHeight, getFramebufferWidth, getJoyInput, getKeyInput, getMouseInput, getTouchInput, getType, getWindowXPosition, getWindowYPosition, restart, setAutoFlushFrames, setTitle
-
Field Details
-
CL_GL_SHARING_POSSIBLE
public static final boolean CL_GL_SHARING_POSSIBLE- See Also:
-
createdLock
-
created
-
renderable
-
settings
protected final com.jme3.system.AppSettings settings -
keyInput
-
mouseInput
-
joyInput
-
timer
protected com.jme3.system.Timer timer -
renderer
protected com.jme3.renderer.Renderer renderer -
listener
protected com.jme3.system.SystemListener listener -
clContext
-
-
Constructor Details
-
LwjglContext
public LwjglContext()
-
-
Method Details
-
getSystemListener
public com.jme3.system.SystemListener getSystemListener()Accesses the listener that receives events related to this context.- Specified by:
getSystemListenerin interfacecom.jme3.system.JmeContext- Returns:
- the pre-existing instance
-
setSystemListener
public void setSystemListener(com.jme3.system.SystemListener listener) - Specified by:
setSystemListenerin interfacecom.jme3.system.JmeContext
-
printContextInitInfo
protected void printContextInitInfo() -
determineMaxSamples
protected int determineMaxSamples() -
getNumSamplesToUse
protected int getNumSamplesToUse() -
reinitContext
protected void reinitContext()Reinitializes the relevant details of the context. For internal use only. -
initContextFirstTime
protected void initContextFirstTime()Initializes the LWJGL renderer and input for the first time. For internal use only. -
initOpenCL
protected void initOpenCL(long window) -
internalDestroy
public void internalDestroy() -
internalCreate
public void internalCreate() -
create
public void create() -
destroy
public void destroy() -
waitFor
protected void waitFor(boolean createdVal) -
isCreated
public boolean isCreated()- Specified by:
isCreatedin interfacecom.jme3.system.JmeContext
-
isRenderable
public boolean isRenderable()- Specified by:
isRenderablein interfacecom.jme3.system.JmeContext
-
setSettings
public void setSettings(com.jme3.system.AppSettings settings) - Specified by:
setSettingsin interfacecom.jme3.system.JmeContext
-
getSettings
public com.jme3.system.AppSettings getSettings()- Specified by:
getSettingsin interfacecom.jme3.system.JmeContext
-
getRenderer
public com.jme3.renderer.Renderer getRenderer()- Specified by:
getRendererin interfacecom.jme3.system.JmeContext
-
getTimer
public com.jme3.system.Timer getTimer()- Specified by:
getTimerin interfacecom.jme3.system.JmeContext
-
getOpenCLContext
public com.jme3.opencl.Context getOpenCLContext()- Specified by:
getOpenCLContextin interfacecom.jme3.system.JmeContext
-