Package gaiasky.render.process
Class RenderModeStereoscopic
java.lang.Object
gaiasky.render.process.RenderModeAbstract
gaiasky.render.process.RenderModeStereoscopic
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable,IObserver,IRenderMode
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 (anaglyph 3D, 3DTV, cross-eye, VR)
-
Field Summary
Fields inherited from class gaiasky.render.process.RenderModeAbstract
extendViewport, rc, resultBuffer -
Constructor Summary
ConstructorsConstructorDescriptionRenderModeStereoscopic(com.badlogic.gdx.graphics.g2d.SpriteBatch spriteBatch) -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()voidEvent notification call.voidrender(ISceneRenderer sgr, ICamera camera, double t, int rw, int rh, int tw, int th, com.badlogic.gdx.graphics.glutils.FrameBuffer fb, IPostProcessor.PostProcessBean ppb) Renders the scene.voidresize(int rw, int rh, int tw, int th) Resizes the assets of this renderer to the given new sizevoidMethods inherited from class gaiasky.render.process.RenderModeAbstract
getRenderingContext, getResultBuffer, postProcessCapture, postProcessRender, sendOrientationUpdateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gaiasky.render.api.IRenderMode
getRenderingContext, getResultBuffer
-
Constructor Details
-
RenderModeStereoscopic
public RenderModeStereoscopic(com.badlogic.gdx.graphics.g2d.SpriteBatch spriteBatch)
-
-
Method Details
-
updateAnaglyphMode
public void updateAnaglyphMode() -
render
public void render(ISceneRenderer sgr, ICamera camera, double t, int rw, int rh, int tw, int th, com.badlogic.gdx.graphics.glutils.FrameBuffer fb, IPostProcessor.PostProcessBean ppb) Description copied from interface:IRenderModeRenders the scene.- Specified by:
renderin interfaceIRenderMode- Parameters:
sgr- The scene 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 process bean.
-
resize
public void resize(int rw, int rh, int tw, int th) Description copied from interface:IRenderModeResizes the assets of this renderer to the given new size- Specified by:
resizein interfaceIRenderMode- Parameters:
rw- New render buffer width.rh- New render buffer height.tw- New target (screen) width.th- New target (screen) height.
-
dispose
public void dispose()- Specified by:
disposein interfacecom.badlogic.gdx.utils.Disposable
-
notify
Description copied from interface:IObserverEvent notification call.
-