Class LwjglContextVR

All Implemented Interfaces:
Direct Known Subclasses:

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
      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
      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.
      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)
      createdVal -
    • isCreated

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

      public boolean isRenderable()
      Specified by:
      isRenderable in interface JmeContext
      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
      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
      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
      The renderer for this context, or null if not created yet.
    • getTimer

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