Package gaiasky.render.api
Interface ISceneRenderer
- All Known Implementing Classes:
SceneRenderer
public interface ISceneRenderer
Defines the interface for scene renderers.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
allOn
(ComponentTypes comp) Checks if the component types are all on.void
doneLoading
(com.badlogic.gdx.assets.AssetManager manager) Actually initializes all the clockwork of this renderer using the assets in the given manager.com.badlogic.gdx.graphics.glutils.FrameBuffer
Returns the post-processing glow frame buffer.Gets the current render process.void
initialize
(com.badlogic.gdx.assets.AssetManager manager) Initializes the renderer, sending all the necessary assets to the manager for loading.boolean
Checks if a given component type is on.void
renderGlowPass
(ICamera camera, com.badlogic.gdx.graphics.glutils.FrameBuffer frameBuffer) Renders the glow pass for the light glow.Returnst he render lists of this renderer.void
renderScene
(ICamera camera, double t, RenderingContext renderContext) Renders the scene.
-
Method Details
-
renderScene
Renders the scene.- Parameters:
camera
- The camera to use.t
- The time in seconds since the start.renderContext
- The render context.
-
renderGlowPass
Renders the glow pass for the light glow.- Parameters:
camera
- The camera.frameBuffer
- The frame buffer.
-
initialize
void initialize(com.badlogic.gdx.assets.AssetManager manager) Initializes the renderer, sending all the necessary assets to the manager for loading.- Parameters:
manager
- The asset manager.
-
doneLoading
void doneLoading(com.badlogic.gdx.assets.AssetManager manager) Actually initializes all the clockwork of this renderer using the assets in the given manager.- Parameters:
manager
- The asset manager.
-
isOn
Checks if a given component type is on.- Parameters:
comp
- The component.- Returns:
- Whether the component is on.
-
allOn
Checks if the component types are all on.- Parameters:
comp
- The components.- Returns:
- Whether the components are all on.
-
getRenderProcess
IRenderMode getRenderProcess()Gets the current render process.- Returns:
- The render mode.
-
getGlowFrameBuffer
com.badlogic.gdx.graphics.glutils.FrameBuffer getGlowFrameBuffer()Returns the post-processing glow frame buffer.- Returns:
- The glow frame buffer.
-
renderListsFront
List<List<IRenderable>> renderListsFront()Returnst he render lists of this renderer.
-