Package com.xebisco.yield
Class AbstractRenderable
java.lang.Object
com.xebisco.yield.AbstractBehavior
com.xebisco.yield.ComponentBehavior
com.xebisco.yield.AbstractRenderable
- All Implemented Interfaces:
Behavior,Renderable,Closeable,AutoCloseable
- Direct Known Subclasses:
EmptyRenderable,RectangleMesh,TextMesh
Abstract class representing a renderable component in the application.
This class provides methods for rendering the component using a provided renderer.
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractRenderable(Form form) Constructs a new AbstractRenderable with the given form. -
Method Summary
Methods inherited from class com.xebisco.yield.ComponentBehavior
application, close, component, component, entity, onCreate, onLateUpdate, onStart, onUpdate, renderIndex, setEntity, setRenderIndex, texture, texture, transformMethods inherited from class com.xebisco.yield.AbstractBehavior
frames, tick
-
Constructor Details
-
AbstractRenderable
Constructs a new AbstractRenderable with the given form.- Parameters:
form- The form of the renderable component.
-
-
Method Details
-
render
Description copied from class:ComponentBehaviorRenders the behavior.- Specified by:
renderin interfaceRenderable- Overrides:
renderin classComponentBehavior- Parameters:
renderer- The renderer.
-
form
Returns the form of the renderable component.- Returns:
- The form of the renderable component.
-
paint
Returns the paint object used for rendering the component.- Returns:
- The paint object used for rendering the component.
-