Package gaiasky.render.system
Class FontRenderSystem
java.lang.Object
gaiasky.render.system.AbstractRenderSystem
gaiasky.render.system.FontRenderSystem
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
,IRenderSystem
,Comparable<IRenderSystem>
- Direct Known Subclasses:
TextRenderer
-
Nested Class Summary
Nested classes/interfaces inherited from class gaiasky.render.system.AbstractRenderSystem
AbstractRenderSystem.RenderSystemRunnable
-
Field Summary
Modifier and TypeFieldDescriptionFields inherited from class gaiasky.render.system.AbstractRenderSystem
alphas, auxd, auxf, comp, postRunners, preRunners, programs, rc, sceneRenderer
-
Constructor Summary
ModifierConstructorDescriptionFontRenderSystem
(SceneRenderer sceneRenderer, RenderGroup rg, float[] alphas, ExtSpriteBatch batch, ExtShaderProgram program) FontRenderSystem
(SceneRenderer sceneRenderer, RenderGroup rg, float[] alphas, ExtSpriteBatch batch, ExtShaderProgram program, BitmapFont fontDistanceField, BitmapFont font2d, BitmapFont fontTitles) protected
FontRenderSystem
(SceneRenderer sceneRenderer, RenderGroup rg, float[] alphas, ExtShaderProgram[] programs) -
Method Summary
Modifier and TypeMethodDescriptionvoid
renderStud
(List<IRenderable> renderables, ICamera camera, double t) void
resize
(int w, int h) Resize the current render target with the given width and height.void
updateBatchSize
(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
-
FontRenderSystem
protected FontRenderSystem(SceneRenderer sceneRenderer, RenderGroup rg, float[] alphas, ExtShaderProgram[] programs) -
FontRenderSystem
public FontRenderSystem(SceneRenderer sceneRenderer, RenderGroup rg, float[] alphas, ExtSpriteBatch batch, ExtShaderProgram program) -
FontRenderSystem
public FontRenderSystem(SceneRenderer sceneRenderer, RenderGroup rg, float[] alphas, ExtSpriteBatch batch, ExtShaderProgram program, BitmapFont fontDistanceField, BitmapFont font2d, BitmapFont fontTitles)
-
-
Method Details
-
renderStud
- Specified by:
renderStud
in classAbstractRenderSystem
-
resize
public void resize(int w, int h) Description copied from interface:IRenderSystem
Resize the current render target with the given width and height.- Specified by:
resize
in interfaceIRenderSystem
- Overrides:
resize
in classAbstractRenderSystem
- Parameters:
w
- The new width.h
- The new height.
-
updateBatchSize
public void updateBatchSize(int w, int h) Description copied from interface:IRenderSystem
Updates the size of object batches, if any.- Specified by:
updateBatchSize
in interfaceIRenderSystem
- Overrides:
updateBatchSize
in classAbstractRenderSystem
- Parameters:
w
- The new width.h
- The new height.
-