Package com.xebisco.yield
Class RectangleMesh
java.lang.Object
com.xebisco.yield.AbstractBehavior
com.xebisco.yield.ComponentBehavior
com.xebisco.yield.AbstractRenderable
com.xebisco.yield.RectangleMesh
- All Implemented Interfaces:
Behavior,Renderable,Closeable,AutoCloseable
- Direct Known Subclasses:
TexturedRectangleMesh
RectangleMesh class extends AbstractRenderable and represents a rectangle mesh object.
It is used to render a rectangle with specified color and size.-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.xebisco.yield.AbstractRenderable
form, paintMethods 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
-
RectangleMesh
public RectangleMesh()Constructs a new RectangleMesh.
-
-
Method Details
-
render
Description copied from class:ComponentBehaviorRenders the behavior.- Specified by:
renderin interfaceRenderable- Overrides:
renderin classAbstractRenderable- Parameters:
renderer- The renderer.
-
color
Gets the color of the rectangle mesh.- Returns:
- The color of the rectangle mesh.
-
setColor
Sets the color of the rectangle mesh.- Parameters:
color- The new color for the rectangle mesh.- Returns:
- This
RectangleMeshinstance for method chaining.
-
size
Gets the size of the rectangle mesh.- Returns:
- The size of the rectangle mesh.
-
setSize
Sets the size of the rectangle mesh.- Parameters:
size- The new size for the rectangle mesh.- Returns:
- This
RectangleMeshinstance for method chaining.
-