Class SGRStereoscopic

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

    public class SGRStereoscopic
    extends SGRAbstract
    implements ISGR, IObserver
    Renders all the 3D/stereoscopic modes. Renders basically two scenes, one for each eye, and then blends them together on screen with the necessary processing depending on the 3D regime (anaglyphic, 3dtv, crosseye, vr).
    • Constructor Detail

      • SGRStereoscopic

        public SGRStereoscopic()
    • Method Detail

      • render

        public void render​(SceneGraphRenderer sgr,
                           ICamera camera,
                           double t,
                           int rw,
                           int rh,
                           com.badlogic.gdx.graphics.glutils.FrameBuffer fb,
                           IPostProcessor.PostProcessBean ppb)
        Description copied from interface: ISGR
        Renders the scene
        Specified by:
        render in interface ISGR
        Parameters:
        sgr - The scene graph renderer object
        camera - The camera.
        t - The time in seconds since the start
        rw - The width
        rh - The height
        fb - The frame buffer, if any
        ppb - The post processing bean
      • resize

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

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

        public void notify​(Events event,
                           java.lang.Object... data)
        Specified by:
        notify in interface IObserver