Class RectRenderObject
java.lang.Object
dev.pfaff.altargui.render.objects.RectRenderObject
- All Implemented Interfaces:
IRectRenderObject
,RenderObject
,Uploadable
,AutoCloseable
-
Field Summary
FieldsFields 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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
int
program()
int
size()
The number of bytes that this consumer will provide the sink with uponUploadable.uploadTo(Sink)
.toString()
void
updateColor
(Color color) void
updatePosition
(float x, float y) void
updateSize
(float width, float height) void
void
uSpecUploadAtUnchecked
(ViaIntermediateBuffer buffer, long offset) void
uSpecUploadCanvas
(CanvasImpl canvas) void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface dev.pfaff.altargui.render.objects.IRectRenderObject
instanceCount, updatePositionSize
-
Field Details
-
LAYOUT
-
-
Constructor Details
-
RectRenderObject
public RectRenderObject()
-
-
Method Details
-
updatePosition
public void updatePosition(float x, float y) - Specified by:
updatePosition
in interfaceIRectRenderObject
-
updateSize
public void updateSize(float width, float height) - Specified by:
updateSize
in interfaceIRectRenderObject
-
updateColor
- Specified by:
updateColor
in interfaceIRectRenderObject
- Parameters:
color
- RGBA
-
instanceLayout
- Specified by:
instanceLayout
in interfaceRenderObject
-
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 interfaceIRectRenderObject
- Specified by:
size
in interfaceRenderObject
- Specified by:
size
in interfaceUploadable
-
uploadTo
- Specified by:
uploadTo
in interfaceUploadable
-
uSpecUploadAtUnchecked
- Specified by:
uSpecUploadAtUnchecked
in interfaceUploadable
-
uSpecUploadCanvas
- Specified by:
uSpecUploadCanvas
in interfaceRenderObject
-
uSpecUploadLayered
- Specified by:
uSpecUploadLayered
in interfaceRenderObject
-
program
public int program()- Specified by:
program
in interfaceRenderObject
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceRenderObject
-
toString
-