Class RenderModeCubemapProjections
java.lang.Object
gaiasky.render.process.RenderModeAbstract
gaiasky.render.process.RenderModeCubemap
gaiasky.render.process.RenderModeCubemapProjections
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable, IObserver, IRenderMode
public class RenderModeCubemapProjections
extends RenderModeCubemap
implements IRenderMode, IObserver
Projects a cubemap using a specific projection algorithm.
-
Field Summary
Fields inherited from class RenderModeCubemap
angleFromZenith, aux1, aux2, aux3, dirBackup, dirEffective, dirUpCrs, fovBackup, frameBufferCubeMap, stretchViewport, upBackup, upEffective, xNegFb, xNegFlag, xPosFb, xPosFlag, yNegFb, yNegFlag, yPosFb, yPosFlag, zNegFb, zNegFlag, zPosFb, zPosFlagModifier and TypeFieldDescriptionprotected floatprotected com.badlogic.gdx.math.Vector3protected com.badlogic.gdx.math.Vector3protected com.badlogic.gdx.math.Vector3protected com.badlogic.gdx.math.Vector3protected com.badlogic.gdx.math.Vector3protected com.badlogic.gdx.math.Vector3protected floatprotected com.badlogic.gdx.utils.viewport.StretchViewportprotected com.badlogic.gdx.math.Vector3protected com.badlogic.gdx.math.Vector3protected com.badlogic.gdx.graphics.glutils.FrameBufferprotected booleanprotected com.badlogic.gdx.graphics.glutils.FrameBufferprotected booleanprotected com.badlogic.gdx.graphics.glutils.FrameBufferprotected booleanprotected com.badlogic.gdx.graphics.glutils.FrameBufferprotected booleanprotected com.badlogic.gdx.graphics.glutils.FrameBufferprotected booleanprotected com.badlogic.gdx.graphics.glutils.FrameBufferprotected booleanFields inherited from class RenderModeAbstract
extendViewport, rc, resultBufferModifier and TypeFieldDescriptionprotected com.badlogic.gdx.utils.viewport.ViewportViewport to use in normal modeprotected RenderingContextprotected com.badlogic.gdx.graphics.glutils.FrameBuffer -
Constructor Summary
Constructors -
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 sizeMethods inherited from class RenderModeCubemap
getFrameBuffer, getFrameBuffer, getKey, postRender, renderCubemapSides, renderFace, renderRegularFace90Modifier and TypeMethodDescriptionprotected com.badlogic.gdx.graphics.glutils.FrameBuffergetFrameBuffer(int w, int h) protected com.badlogic.gdx.graphics.glutils.FrameBuffergetFrameBuffer(int w, int h, int extra) protected intgetKey(int w, int h, int extra) protected voidpostRender(com.badlogic.gdx.graphics.glutils.FrameBuffer fb) protected voidrenderCubemapSides(ISceneRenderer sgr, ICamera camera, double t, int rw, int rh, IPostProcessor.PostProcessBean ppb) protected voidrenderFace(com.badlogic.gdx.graphics.glutils.FrameBuffer fb, ICamera camera, ISceneRenderer sgr, IPostProcessor.PostProcessBean ppb, int rw, int rh, int wh, double t) protected voidrenderRegularFace90(com.badlogic.gdx.graphics.glutils.FrameBuffer fb, ICamera camera, ISceneRenderer sgr, IPostProcessor.PostProcessBean ppb, int rw, int rh, int wh, double t) Methods inherited from class RenderModeAbstract
getRenderingContext, getResultBuffer, postProcessCapture, postProcessRender, sendOrientationUpdateModifier and TypeMethodDescriptioncom.badlogic.gdx.graphics.glutils.FrameBufferprotected booleanpostProcessCapture(IPostProcessor.PostProcessBean ppb, com.badlogic.gdx.graphics.glutils.FrameBuffer fb, int rw, int rh, BooleanSupplier captureFunction) protected voidpostProcessRender(IPostProcessor.PostProcessBean ppb, com.badlogic.gdx.graphics.glutils.FrameBuffer fb, boolean postproc, ICamera camera, int rw, int rh) protected voidsendOrientationUpdate(com.badlogic.gdx.graphics.PerspectiveCamera cam, int w, int h) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IRenderMode
getRenderingContext, getResultBufferModifier and TypeMethodDescriptioncom.badlogic.gdx.graphics.glutils.FrameBuffer
-
Constructor Details
-
RenderModeCubemapProjections
public RenderModeCubemapProjections()
-
-
Method Details
-
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
-