Package gaiasky.scene.system.render.draw
Class TextRenderer
java.lang.Object
gaiasky.render.system.AbstractRenderSystem
gaiasky.render.system.FontRenderSystem
gaiasky.scene.system.render.draw.TextRenderer
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable,IRenderSystem,Comparable<IRenderSystem>
-
Nested Class Summary
Nested classes/interfaces inherited from class gaiasky.render.system.AbstractRenderSystem
AbstractRenderSystem.RenderSystemRunnable -
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from class gaiasky.render.system.AbstractRenderSystem
alphas, aux3d, aux3f, comp, postRunners, preRunners, programs, rc, sceneRenderer -
Constructor Summary
ConstructorsConstructorDescriptionTextRenderer(SceneRenderer sceneRenderer, RenderGroup rg, float[] alphas, ExtSpriteBatch batch, ExtShaderProgram program) TextRenderer(SceneRenderer sceneRenderer, RenderGroup rg, float[] alphas, ExtSpriteBatch batch, ExtShaderProgram program, BitmapFont fontDistanceField, BitmapFont font2d, BitmapFont fontTitles) -
Method Summary
Modifier and TypeMethodDescriptionvoidrenderStud(List<IRenderable> renderables, ICamera camera, double t) voidresize(int w, int h) Resize the current render target with the given width and height.voidupdateBatchSize(int w, int h) Updates the size of object batches, if any.Methods inherited from class gaiasky.render.system.AbstractRenderSystem
addCameraUpCubemapMode, addDepthBufferUniforms, addEffectsUniforms, addGravWaveUniforms, addPostRunnables, addPreRunnables, addPreviousFrameUniforms, addRelativisticUniforms, addVRScale, compareTo, dispose, getAlpha, getAlpha, getAlpha, getRenderGroup, getShaderProgram, getShaderProgram, initShaderProgram, render, resetFlags, run
-
Field Details
-
fontDistanceField
-
font2d
-
fontTitles
-
-
Constructor Details
-
TextRenderer
public TextRenderer(SceneRenderer sceneRenderer, RenderGroup rg, float[] alphas, ExtSpriteBatch batch, ExtShaderProgram program) -
TextRenderer
public TextRenderer(SceneRenderer sceneRenderer, RenderGroup rg, float[] alphas, ExtSpriteBatch batch, ExtShaderProgram program, BitmapFont fontDistanceField, BitmapFont font2d, BitmapFont fontTitles)
-
-
Method Details
-
renderStud
- Overrides:
renderStudin classFontRenderSystem
-
resize
public void resize(int w, int h) Description copied from interface:IRenderSystemResize the current render target with the given width and height.- Specified by:
resizein interfaceIRenderSystem- Overrides:
resizein classFontRenderSystem- Parameters:
w- The new width.h- The new height.
-
updateBatchSize
public void updateBatchSize(int w, int h) Description copied from interface:IRenderSystemUpdates the size of object batches, if any.- Specified by:
updateBatchSizein interfaceIRenderSystem- Overrides:
updateBatchSizein classFontRenderSystem- Parameters:
w- The new width.h- The new height.
-