Class LwjglContext

java.lang.Object
com.jme3.system.lwjgl.LwjglContext
All Implemented Interfaces:
com.jme3.system.JmeContext
Direct Known Subclasses:
LwjglWindow

public abstract class LwjglContext extends Object implements com.jme3.system.JmeContext
A LWJGL implementation of a graphics context.
  • Field Details

    • CL_GL_SHARING_POSSIBLE

      public static final boolean CL_GL_SHARING_POSSIBLE
      See Also:
    • createdLock

      protected final Object createdLock
    • created

      protected final AtomicBoolean created
    • renderable

      protected final AtomicBoolean renderable
    • settings

      protected final com.jme3.system.AppSettings settings
    • keyInput

      protected GlfwKeyInput keyInput
    • mouseInput

      protected GlfwMouseInput mouseInput
    • joyInput

      protected GlfwJoystickInput joyInput
    • timer

      protected com.jme3.system.Timer timer
    • renderer

      protected com.jme3.renderer.Renderer renderer
    • listener

      protected com.jme3.system.SystemListener listener
    • clContext

      protected LwjglContext 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:
      getSystemListener in interface com.jme3.system.JmeContext
      Returns:
      the pre-existing instance
    • setSystemListener

      public void setSystemListener(com.jme3.system.SystemListener listener)
      Specified by:
      setSystemListener in interface com.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:
      isCreated in interface com.jme3.system.JmeContext
    • isRenderable

      public boolean isRenderable()
      Specified by:
      isRenderable in interface com.jme3.system.JmeContext
    • setSettings

      public void setSettings(com.jme3.system.AppSettings settings)
      Specified by:
      setSettings in interface com.jme3.system.JmeContext
    • getSettings

      public com.jme3.system.AppSettings getSettings()
      Specified by:
      getSettings in interface com.jme3.system.JmeContext
    • getRenderer

      public com.jme3.renderer.Renderer getRenderer()
      Specified by:
      getRenderer in interface com.jme3.system.JmeContext
    • getTimer

      public com.jme3.system.Timer getTimer()
      Specified by:
      getTimer in interface com.jme3.system.JmeContext
    • getOpenCLContext

      public com.jme3.opencl.Context getOpenCLContext()
      Specified by:
      getOpenCLContext in interface com.jme3.system.JmeContext