Class UIRenderer
java.lang.Object
org.collebol.client.gui.graphics.renderer.Renderer
org.collebol.client.gui.graphics.renderer.ui.UIRenderer
The UIRenderer class is responsible for managing UI renderers.
It maintains a collection of specific renderers for different component types and delegates rendering tasks to them.
This class uses a map to store and retrieve renderers based on the component type.
Usage:
UIRenderer uiRenderer = new UIRenderer(engine);
uiRenderer.renderComponent(Field.class, fieldId);
uiRenderer.renderSubComponent(Button.class, buttonId, fieldId);
- Since:
- 1.0-dev
- Author:
- ColleBol - contact@collebol.org
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrenderComponent(T cls, int id) renderSubComponent(T cls, int id, int fieldId)
-
Constructor Details
-
UIRenderer
UIRenderer constructor.- Parameters:
e- instance
-
-
Method Details
-
addUIRenderers
public void addUIRenderers() -
renderComponent
-
renderSubComponent
-