Package heronarts.glx.shader
Class Text3d.Label
java.lang.Object
heronarts.glx.shader.Text3d.Label
- Enclosing class:
Text3d
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()voidbooleansetBackgroundColorARGB(int backgroundColorARGB) setDepthTest(boolean depthTest) setHorizontalAlignment(Text3d.HorizontalAlignment horizontalAlignment) setOrientation(Text3d.TextOrientation textOrientation) setPosition(float x, float y, float z) Position of the label in world-spacesetPosition(org.joml.Vector3f position) Position of the label in world-spacesetTextColorARGB(int textColorARGB) setTextFont(Text3d.TextFont textFont) setTextScale(Text3d.TextScale textScale) setTextSize(float textSize) Sets the text size, which is either in world-units or scaled UI pixel units according to the TextScale settingsetVerticalAlignment(Text3d.VerticalAlignment verticalAlignment) setVisible(boolean visible)
-
Method Details
-
setLabel
-
setTextFont
-
isVisible
public boolean isVisible() -
setVisible
-
setPosition
Position of the label in world-space- Parameters:
position- Position in world-space- Returns:
- this
-
setPosition
Position of the label in world-space- Parameters:
x- World-space x-coordinatey- World-space y-coordinatez- World-space z-coordinate- Returns:
- this
-
setOrientation
-
setTextSize
Sets the text size, which is either in world-units or scaled UI pixel units according to the TextScale setting- Parameters:
textSize- Text size, interpreted according to TextScale- Returns:
-
setTextScale
-
setHorizontalAlignment
-
setVerticalAlignment
-
setDepthTest
-
setTextColorARGB
-
setBackgroundColorARGB
-
draw
-
dispose
public void dispose()
-