Package gaiasky.render
Class SGRAbstract
java.lang.Object
gaiasky.render.SGRAbstract
- Direct Known Subclasses:
SGR
,SGRCubemap
,SGRFov
,SGROpenVR
,SGRStereoscopic
public class SGRAbstract
extends java.lang.Object
Abstract implementation with some useful methods for all SGRs.
-
Field Summary
Fields Modifier and Type Field Description protected com.badlogic.gdx.utils.viewport.Viewport
extendViewport
Viewport to use in normal modeprotected RenderingContext
rc
protected com.badlogic.gdx.graphics.glutils.FrameBuffer
resultBuffer
-
Constructor Summary
Constructors Constructor Description SGRAbstract()
-
Method Summary
Modifier and Type Method Description RenderingContext
getRenderingContext()
com.badlogic.gdx.graphics.glutils.FrameBuffer
getResultBuffer()
protected boolean
postprocessCapture(IPostProcessor.PostProcessBean ppb, com.badlogic.gdx.graphics.glutils.FrameBuffer fb, int rw, int rh)
protected void
postprocessRender(IPostProcessor.PostProcessBean ppb, com.badlogic.gdx.graphics.glutils.FrameBuffer fb, boolean postproc, ICamera camera, int rw, int rh)
protected void
sendOrientationUpdate(com.badlogic.gdx.graphics.PerspectiveCamera cam, int w, int h)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
resultBuffer
protected com.badlogic.gdx.graphics.glutils.FrameBuffer resultBuffer -
rc
-
extendViewport
protected com.badlogic.gdx.utils.viewport.Viewport extendViewportViewport to use in normal mode
-
-
Constructor Details
-
SGRAbstract
public SGRAbstract()
-
-
Method Details
-
postprocessCapture
protected boolean postprocessCapture(IPostProcessor.PostProcessBean ppb, com.badlogic.gdx.graphics.glutils.FrameBuffer fb, int rw, int rh) -
postprocessRender
protected void postprocessRender(IPostProcessor.PostProcessBean ppb, com.badlogic.gdx.graphics.glutils.FrameBuffer fb, boolean postproc, ICamera camera, int rw, int rh) -
getRenderingContext
-
getResultBuffer
public com.badlogic.gdx.graphics.glutils.FrameBuffer getResultBuffer() -
sendOrientationUpdate
protected void sendOrientationUpdate(com.badlogic.gdx.graphics.PerspectiveCamera cam, int w, int h)
-