Package gaiasky.render
Class SGRCubemapProjections
java.lang.Object
gaiasky.render.SGRAbstract
gaiasky.render.SGRCubemap
gaiasky.render.SGRCubemapProjections
Renders the cube map projection mode. Basically, it renders the six sides of
the cube map (front, back, up, down, right, left) with a 90 degree fov each
and applies a cube map projection (spherical, cylindrical, hammer, fisheye)
-
Field Summary
Fields inherited from class gaiasky.render.SGRCubemap
angleFromZenith, aux1, aux2, aux3, dirBak, dirUpCrs, fovBak, frameBufferCubeMap, stretchViewport, upBak, xNegFb, xNegFlag, xPosFb, xPosFlag, yNegFb, yNegFlag, yPosFb, yPosFlag, zNegFb, zNegFlag, zPosFb, zPosFlagFields inherited from class gaiasky.render.SGRAbstract
extendViewport, rc, resultBuffer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()voidEvent notification call.voidrender(SceneGraphRenderer 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 scenevoidresize(int w, int h)Resizes the assets of this renderer to the given new sizeMethods inherited from class gaiasky.render.SGRCubemap
getFrameBuffer, getFrameBuffer, getKey, postRender, renderCubemapSides, renderFace, renderRegularFaceMethods inherited from class gaiasky.render.SGRAbstract
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.ISGR
getRenderingContext, getResultBuffer
-
Constructor Details
-
SGRCubemapProjections
public SGRCubemapProjections()
-
-
Method Details
-
render
public void render(SceneGraphRenderer 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:ISGRRenders the scene- Specified by:
renderin interfaceISGR- Parameters:
sgr- The scene graph renderer objectcamera- The camera.t- The time in seconds since the startrw- The width of the bufferrh- The height of the buffertw- The final target width, usually of the screenth- The final target height, usually of the screenfb- The frame buffer, if anyppb- The post processing bean
-
resize
public void resize(int w, int h)Description copied from interface:ISGRResizes the assets of this renderer to the given new size -
dispose
public void dispose()- Specified by:
disposein interfacecom.badlogic.gdx.utils.Disposable
-
notify
Description copied from interface:IObserverEvent notification call.
-