Class IRectRenderObject
java.lang.Object
dev.pfaff.altargui.render.RenderObject
dev.pfaff.altargui.render.objects.IRectRenderObject
- All Implemented Interfaces:
Uploadable
,AutoCloseable
- Direct Known Subclasses:
RectRenderObject
,TexturedRectRenderObject
public abstract sealed class IRectRenderObject
extends RenderObject
permits RectRenderObject, TexturedRectRenderObject
-
Field Summary
Fields inherited from class dev.pfaff.altargui.render.RenderObject
EMPTY_ARRAY
Fields inherited from interface dev.pfaff.altargui.uploadables.Uploadable
POSITION_LAYOUT, POSITION_PACKED_LAYOUT, UV_LAYOUT, UV_PACKED_LAYOUT, VERTEX_LAYOUT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final Color
getColor()
protected final float
protected final float
getWidth()
protected final float
getX()
protected final float
getY()
final int
int
size()
The number of bytes that this consumer will provide the sink with uponUploadable.uploadTo(Sink)
.final void
updateColor
(Color color) final void
updatePosition
(float x, float y) final void
updatePositionSize
(float x, float y, float width, float height) final void
updateSize
(float width, float height) Methods inherited from class dev.pfaff.altargui.render.RenderObject
buildSingleStatic, buildStatic, close, instanceLayout, program, uSpecUploadCanvas, uSpecUploadLayered
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.pfaff.altargui.uploadables.Uploadable
uploadTo, uSpecUploadAtUnchecked
-
Constructor Details
-
IRectRenderObject
public IRectRenderObject()
-
-
Method Details
-
getX
protected final float getX() -
getY
protected final float getY() -
getWidth
protected final float getWidth() -
getHeight
protected final float getHeight() -
getColor
-
updatePosition
public final void updatePosition(float x, float y) -
updateSize
public final void updateSize(float width, float height) -
updatePositionSize
public final void updatePositionSize(float x, float y, float width, float height) -
updateColor
- Parameters:
color
- RGBA
-
instanceCount
public final int instanceCount()- Specified by:
instanceCount
in classRenderObject
-
size
public int size()Description copied from interface:Uploadable
The number of bytes that this consumer will provide the sink with uponUploadable.uploadTo(Sink)
.- Specified by:
size
in interfaceUploadable
- Overrides:
size
in classRenderObject
-