Package gaiasky.render
Interface ISGR
- All Superinterfaces:
com.badlogic.gdx.utils.Disposable
- All Known Implementing Classes:
SGR
,SGRCubemapProjections
,SGRFov
,SGROpenVR
,SGRStereoscopic
public interface ISGR
extends com.badlogic.gdx.utils.Disposable
Interface that must be extended by all types of scene graph renderers
-
Method Summary
Modifier and TypeMethodDescriptioncom.badlogic.gdx.graphics.glutils.FrameBuffer
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) Renders the scenevoid
resize
(int w, int h) Resizes the assets of this renderer to the given new sizeMethods inherited from interface com.badlogic.gdx.utils.Disposable
dispose
-
Method Details
-
render
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) Renders the scene- 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
void resize(int w, int h) Resizes the assets of this renderer to the given new size- Parameters:
w
- New widthh
- New height
-
getRenderingContext
RenderingContext getRenderingContext() -
getResultBuffer
com.badlogic.gdx.graphics.glutils.FrameBuffer getResultBuffer()
-