Class UploadableRect
java.lang.Object
dev.pfaff.altargui.uploadables.UploadableRect
- All Implemented Interfaces:
Uploadable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final char
static final int
Fields inherited from interface dev.pfaff.altargui.uploadables.Uploadable
EMPTY_ARRAY, POSITION_LAYOUT, POSITION_PACKED_LAYOUT, UV_LAYOUT, UV_PACKED_LAYOUT, VERTEX_LAYOUT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
size()
The number of bytes that this consumer will provide the sink with uponUploadable.uploadTo(Sink)
.void
updateColor
(Color color) void
updateColorVerticalGradient
(int startColor, int endColor) void
updateCorners
(float x1, float y1, float x2, float y2) void
updatePositionSize
(float x, float y, float width, float height) void
updateTexLayer
(int layer) void
updateUV
(float u1, float v1, float u2, float v2) void
updateUVExtent
(float u, float v, float extentU, float extentV) void
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
uSpecUploadAtUnchecked
-
Field Details
-
OFFSETS
-
OFFSET_BITS
public static final char OFFSET_BITS -
TRIANGLES
public static final int TRIANGLES
-
-
Constructor Details
-
UploadableRect
-
-
Method Details
-
updateCorners
public void updateCorners(float x1, float y1, float x2, float y2) -
updatePositionSize
public void updatePositionSize(float x, float y, float width, float height) -
updateUVExtent
public void updateUVExtent(float u, float v, float extentU, float extentV) -
updateUV
public void updateUV(float u1, float v1, float u2, float v2) -
updateTexLayer
public void updateTexLayer(int layer) -
updateColor
- Parameters:
color
- RGBA
-
updateColorVerticalGradient
public void updateColorVerticalGradient(int startColor, int endColor) - Parameters:
startColor
- RGBAendColor
- RGBA
-
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
-
uploadTo
- Specified by:
uploadTo
in interfaceUploadable
-