Class LwjglContextVR

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

public abstract class LwjglContextVR extends Object implements JmeContext
A VR oriented LWJGL implementation of a graphics context.
  • Field Details

  • Constructor Details

    • LwjglContextVR

      public LwjglContextVR()
  • Method Details

    • getSystemListener

      public SystemListener getSystemListener()
      Accesses the listener that receives events related to this context.
      Specified by:
      getSystemListener in interface JmeContext
      Returns:
      the pre-existing instance
    • setSystemListener

      public void setSystemListener(SystemListener listener)
      Description copied from interface: JmeContext
      Sets the listener that will receive events relating to context creation, update, and destroy.
      Specified by:
      setSystemListener in interface JmeContext
      Parameters:
      listener - the desired listener
    • printContextInitInfo

      protected void printContextInitInfo()
    • determineMaxSamples

      protected int determineMaxSamples()
    • loadNatives

      protected void loadNatives()
    • isRetinaDisplay

      public boolean isRetinaDisplay()
      Check if the display is a retina display.
      Returns:
      true if the display is a retina display and false otherwise.
    • getNumSamplesToUse

      protected int getNumSamplesToUse()
    • initContextFirstTime

      protected void initContextFirstTime()
    • internalDestroy

      public void internalDestroy()
      Context internal destroy.
    • internalCreate

      public void internalCreate()
      Context internal create.
    • create

      public void create()
      Create the context.
    • destroy

      public void destroy()
      Destroy the context.
    • waitFor

      protected void waitFor(boolean createdVal)
      Parameters:
      createdVal -
    • isCreated

      public boolean isCreated()
      Specified by:
      isCreated in interface JmeContext
      Returns:
      True if the context has been created but not yet destroyed.
    • isRenderable

      public boolean isRenderable()
      Specified by:
      isRenderable in interface JmeContext
      Returns:
      True if the context contains a valid render surface, if any of the rendering methods in Renderer are called while this is false, then the result is undefined.
    • setSettings

      public void setSettings(AppSettings settings)
      Specified by:
      setSettings in interface JmeContext
      Parameters:
      settings - the display settings to use for the created context. If the context has already been created, then restart() must be called for the changes to be applied.
    • getSettings

      public AppSettings getSettings()
      Specified by:
      getSettings in interface JmeContext
      Returns:
      The current display settings. Note that they might be different from the ones set with setDisplaySettings() if the context was restarted or the settings changed internally.
    • getRenderer

      public Renderer getRenderer()
      Specified by:
      getRenderer in interface JmeContext
      Returns:
      The renderer for this context, or null if not created yet.
    • getTimer

      public Timer getTimer()
      Specified by:
      getTimer in interface JmeContext
      Returns:
      The timer for this context, or null if not created yet.