Class TextRenderObject
java.lang.Object
dev.pfaff.altargui.render.Uploadable
dev.pfaff.altargui.render.RenderObject
dev.pfaff.altargui.render.objects.TextRenderObject
- All Implemented Interfaces:
AutoCloseable
A multi-character text render object with individual styling.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static interface
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StructLayout
static final VarHandle
static final VarHandle
static final VarHandle
static final VarHandle
static final VarHandle
static final VarHandle
static final VarHandle
static final VarHandle
static final VarHandle
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)
.toString()
void
updateCharacters
(int length, TextRenderObject.Provider provider) void
updatePosition
(float x, float y) void
updateTex
(int index, byte u, byte v, byte extent) void
void
uSpecUploadAtUnchecked
(ViaIntermediateBuffer buffer, long offset) void
uSpecUploadCanvas
(CanvasImpl canvas) void
Methods inherited from class dev.pfaff.altargui.render.RenderObject
buildSingleStatic, buildStatic
-
Field Details
-
TEXT_CHAR_LAYOUT
-
VH_posX
-
VH_posY
-
VH_size
-
VH_color
-
VH_char
-
VH_flags
-
VH_uBase
-
VH_vBase
-
VH_uvExtent
-
-
Constructor Details
-
TextRenderObject
public TextRenderObject(int capacity)
-
-
Method Details
-
updatePosition
public void updatePosition(float x, float y) -
updateTex
public void updateTex(int index, byte u, byte v, byte extent) -
updateCharacters
-
instanceCount
public int instanceCount()- Specified by:
instanceCount
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
-
instanceLayout
- Specified by:
instanceLayout
in classRenderObject
-
uploadTo
- Specified by:
uploadTo
in classUploadable
-
uSpecUploadAtUnchecked
- Overrides:
uSpecUploadAtUnchecked
in classUploadable
-
uSpecUploadCanvas
- Overrides:
uSpecUploadCanvas
in classRenderObject
-
uSpecUploadLayered
- Overrides:
uSpecUploadLayered
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
-
toString
-