Class OutlineRenderObject
java.lang.Object
dev.pfaff.altargui.render.Uploadable
dev.pfaff.altargui.render.RenderObject
dev.pfaff.altargui.render.objects.OutlineRenderObject
- All Implemented Interfaces:
AutoCloseable
The outlined area, as measured from the inner edges of the outline, will be the specified dimensions.
-
Field Summary
Fields inherited from class dev.pfaff.altargui.render.RenderObject
EMPTY_ARRAY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
int
int
program()
int
size()
The number of bytes that this consumer will provide the sink with uponUploadable.uploadTo(Sink)
.void
updateColor
(Color color) void
updatePositionSizeThickness
(float x, float y, float width, float height, float thickness) void
void
uSpecUploadAtUnchecked
(ViaIntermediateBuffer buffer, long offset) void
uSpecUploadCanvas
(CanvasImpl canvas) void
-
Constructor Details
-
OutlineRenderObject
public OutlineRenderObject()
-
-
Method Details
-
updatePositionSizeThickness
public void updatePositionSizeThickness(float x, float y, float width, float height, float thickness) -
updateColor
- Parameters:
color
- RGBA
-
instanceCount
public int instanceCount()- Specified by:
instanceCount
in classRenderObject
-
instanceLayout
- Specified by:
instanceLayout
in classRenderObject
-
size
public int size()Description copied from class:Uploadable
The number of bytes that this consumer will provide the sink with uponUploadable.uploadTo(Sink)
.- Overrides:
size
in classRenderObject
-
program
public int program()- Specified by:
program
in classRenderObject
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classRenderObject
-
uploadTo
- Specified by:
uploadTo
in classUploadable
-
uSpecUploadAtUnchecked
- Overrides:
uSpecUploadAtUnchecked
in classUploadable
-
uSpecUploadCanvas
- Overrides:
uSpecUploadCanvas
in classRenderObject
-
uSpecUploadLayered
- Overrides:
uSpecUploadLayered
in classRenderObject
-