Class SGROpenVR

All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable, IObserver, ISGR

public class SGROpenVR extends SGRAbstract implements ISGR, IObserver
Renders to OpenVR. Renders basically two scenes, one for each eye, using the OpenVR context.
  • Field Details

    • eyeSpace

      public final com.badlogic.gdx.math.Matrix4 eyeSpace
    • invEyeSpace

      public final com.badlogic.gdx.math.Matrix4 invEyeSpace
    • controllerObjects

      public com.badlogic.gdx.utils.Array<StubModel> controllerObjects
  • Constructor Details

    • SGROpenVR

      public SGROpenVR(VRContext vrContext, spriteBatch)
  • Method Details

    • render

      public void render(SceneGraphRenderer sgr, ICamera camera, double t, int rw, int rh, int tw, int th, fb, IPostProcessor.PostProcessBean ppb)
      Description copied from interface: ISGR
      Renders the scene
      Specified by:
      render in interface ISGR
      sgr - The scene graph renderer object
      camera - The camera.
      t - The time in seconds since the start
      rw - The width of the buffer
      rh - The height of the buffer
      tw - The final target width, usually of the screen
      th - The final target height, usually of the screen
      fb - The frame buffer, if any
      ppb - The post processing bean
    • resize

      public void resize(int screenWidth, int screenHeight)
      Description copied from interface: ISGR
      Resizes the assets of this renderer to the given new size
      Specified by:
      resize in interface ISGR
      screenWidth - New width
      screenHeight - New height
    • dispose

      public void dispose()
      Specified by:
      dispose in interface com.badlogic.gdx.utils.Disposable
    • notify

      public void notify(Event event, Object source, Object... data)
      Description copied from interface: IObserver
      Event notification call.
      Specified by:
      notify in interface IObserver
      event - The event type.
      source - The source object, if any.
      data - The data associated with this event.