Interface IRectRenderObject
- All Superinterfaces:
AutoCloseable
,RenderObject
,Uploadable
- All Known Implementing Classes:
RectRenderObject
,TexturedRectRenderObject
public sealed interface IRectRenderObject
extends RenderObject
permits RectRenderObject, TexturedRectRenderObject
-
Field Summary
Fields inherited from interface 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
-
Method Summary
Modifier and TypeMethodDescriptiondefault int
default int
size()
The number of bytes that this consumer will provide the sink with uponUploadable.uploadTo(Sink)
.void
updateColor
(Color color) void
updatePosition
(float x, float y) default void
updatePositionSize
(float x, float y, float width, float height) void
updateSize
(float width, float height) Methods inherited from interface dev.pfaff.altargui.render.RenderObject
close, instanceLayout, program, uSpecUploadCanvas, uSpecUploadLayered
Methods inherited from interface dev.pfaff.altargui.uploadables.Uploadable
uploadTo, uSpecUploadAtUnchecked
-
Method Details
-
updatePosition
void updatePosition(float x, float y) -
updateSize
void updateSize(float width, float height) -
updatePositionSize
default void updatePositionSize(float x, float y, float width, float height) -
updateColor
- Parameters:
color
- RGBA
-
instanceCount
default int instanceCount()- Specified by:
instanceCount
in interfaceRenderObject
-
size
default 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 interfaceRenderObject
- Specified by:
size
in interfaceUploadable
-