Package gaiasky.scene.component
Class Label
java.lang.Object
gaiasky.scene.component.Label
- All Implemented Interfaces:
com.badlogic.ashley.core.Component
-
Field Summary
Modifier and TypeFieldDescriptionThe function to apply to set up the depth buffer for text rendering.boolean
Is it a label or another kind of text?boolean
Is it a label or another kind of text?float
float
Position of label.Consumers.Consumer7<LabelEntityRenderSystem,
LabelView, ExtSpriteBatch, ExtShaderProgram, FontRenderSystem, RenderingContext, ICamera> The label rendering code.Function that checks whether the label must be rendered or not.float
Power to apply to the view angle for labels.float
Scale parameter for distance field fonts. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setLabelFactor
(Double labelFactor) void
setLabelMax
(Double labelMax) void
setLabelposition
(double[] labelPosition) void
setLabelPosition
(double[] labelPosition) Sets the position of the label, in parsecs and in the internal reference frame.void
setTextScale
(Double textScale)
-
Field Details
-
labelFactor
public float labelFactor -
labelMax
public float labelMax -
textScale
public float textScaleScale parameter for distance field fonts. -
solidAnglePow
public float solidAnglePowPower to apply to the view angle for labels. -
labelPosition
Position of label. -
label
public boolean labelIs it a label or another kind of text? -
label2d
public boolean label2dIs it a label or another kind of text? -
renderFunction
Function that checks whether the label must be rendered or not. -
depthBufferConsumer
The function to apply to set up the depth buffer for text rendering. -
renderConsumer
public Consumers.Consumer7<LabelEntityRenderSystem,LabelView, renderConsumerExtSpriteBatch, ExtShaderProgram, FontRenderSystem, RenderingContext, ICamera> The label rendering code.
-
-
Constructor Details
-
Label
public Label()
-
-
Method Details
-
setLabelPosition
public void setLabelPosition(double[] labelPosition) Sets the position of the label, in parsecs and in the internal reference frame.- Parameters:
labelPosition
- The position of the label in internal cartesian coordinates.
-
setLabelposition
public void setLabelposition(double[] labelPosition) -
setLabelFactor
-
setLabelMax
-
setTextScale
-