Interface ISceneRenderer
- All Known Implementing Classes:
SceneRenderer
public interface ISceneRenderer
-
Method Summary
Modifier and TypeMethodDescriptionbooleanallOn(ComponentTypes comp) Checks if the component types are all on.booleanallVisible(ComponentTypes comp) Same asallOn(ComponentTypes), but it does not take into account the alpha fading factors.floatalpha(ComponentTypes comp) Computes the alpha of this component types by multiplying the alphas of all componentsvoiddoneLoading(com.badlogic.gdx.assets.AssetManager manager) Actually initializes all the clockwork of this renderer using the assets in the given manager.getRenderLists(boolean full) Returns he render lists of this renderer.Gets the current render process.voidinitialize(com.badlogic.gdx.assets.AssetManager manager) Initializes the renderer, sending all the necessary assets to the manager for loading.booleanChecks if a given component type is on.booleanSame asisOn(ComponentType), but it does not take into account the alpha fading factor.voidrenderScene(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.
-
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.
-
alpha
Computes the alpha of this component types by multiplying the alphas of all components- Parameters:
comp- The components- Returns:
- The alpha value
-
isOn
Checks if a given component type is on.- Parameters:
comp- The component.- Returns:
- Whether the component is on.
-
isVisible
Same asisOn(ComponentType), but it does not take into account the alpha fading factor.- Parameters:
comp- The component- Returns:
- Whether the component is strictly visible
-
allOn
Checks if the component types are all on.- Parameters:
comp- The components.- Returns:
- Whether the components are all on.
-
allVisible
Same asallOn(ComponentTypes), but it does not take into account the alpha fading factors.- Parameters:
comp- The components.- Returns:
- Whether the components are all strictly visible.
-
getRenderProcess
-
getRenderLists
Returns he render lists of this renderer.- Parameters:
full- Whether to return the render lists for the full- or the half-resolution buffer.
-