Package gaiasky.scene.component
Class Label
java.lang.Object
gaiasky.scene.component.Label
- All Implemented Interfaces:
com.badlogic.ashley.core.Component
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe function to apply to set up the depth buffer for text rendering.booleanForce to render the label of this entity, bypassing the solid angle checkbooleanIs it a label or another kind of text?floatFactor to apply to the size of the label.floatInternal rednering factorPosition 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.floatPower to apply to the view angle for labels.floatScale parameter for distance field fonts. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetForceLabel(Boolean force) voidvoidsetLabelFactor(Double labelFactor) voidsetLabelMax(Double labelMax) voidsetLabelposition(double[] labelPosition) voidsetLabelPosition(double[] labelPositionPc) voidsetLabelPositionKm(double[] labelPositionKm) voidsetLabelPositionPc(double[] labelPositionPc) Sets the position of the label, in parsecs and in the internal reference frame.voidsetTextScale(Double textScale)
-
Field Details
-
forceLabel
public boolean forceLabelForce to render the label of this entity, bypassing the solid angle check -
labelFactor
public float labelFactorFactor to apply to the size of the label. -
labelMax
public float labelMaxInternal rednering factor -
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? -
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
-
setForceLabel
-
setLabelPositionPc
public void setLabelPositionPc(double[] labelPositionPc) Sets the position of the label, in parsecs and in the internal reference frame.- Parameters:
labelPositionPc- The position of the label in internal cartesian coordinates.
-
setLabelPositionKm
public void setLabelPositionKm(double[] labelPositionKm) -
setLabelposition
public void setLabelposition(double[] labelPosition) -
setLabelPosition
public void setLabelPosition(double[] labelPositionPc) -
setLabelFactor
-
setLabelMax
-
setTextScale
-
setLabel2d
-