Package gaiasky.scene.system.render.draw
Class SinglePointRenderer
java.lang.Object
gaiasky.render.system.AbstractRenderSystem
gaiasky.render.system.ImmediateModeRenderSystem
gaiasky.scene.system.render.draw.SinglePointRenderer
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
,IObserver
,IRenderSystem
Renders single points. Gathers all celestial entities that are to be
represented using point primitives into a mesh and renders them with
a single draw call.
-
Nested Class Summary
Nested classes/interfaces inherited from class gaiasky.render.system.ImmediateModeRenderSystem
ImmediateModeRenderSystem.MeshData, ImmediateModeRenderSystem.OwnUsage
Nested classes/interfaces inherited from class gaiasky.render.system.AbstractRenderSystem
AbstractRenderSystem.RenderSystemRunnable
-
Field Summary
Fields inherited from class gaiasky.render.system.ImmediateModeRenderSystem
curr, inGpu, meshes, meshIdx, tempIndices, tempVerts
Fields inherited from class gaiasky.render.system.AbstractRenderSystem
alphas, auxd, auxf, comp, postRunnables, preRunnables, programs, rc, sceneRenderer
-
Constructor Summary
ConstructorDescriptionSinglePointRenderer
(SceneRenderer sceneRenderer, RenderGroup rg, float[] alphas, ExtShaderProgram[] shaders, ComponentTypes.ComponentType ct) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.badlogic.gdx.graphics.VertexAttribute[]
void
ensureMeshSize
(int desiredNumVertices) protected void
Initializes metadata or essential uniforms in the shader program.protected void
void
Event notification call.void
renderStud
(List<IRenderable> renderables, ICamera camera, double t) void
setStarTexture
(String starTexture) Methods inherited from class gaiasky.render.system.ImmediateModeRenderSystem
clearMeshData, clearMeshes, color, color, color, color, createMeshData, dispose, ensureTempIndicesSize, ensureTempVertsSize, getCount, getOffset, inGpu, setCount, setInGpu, setOffset, vertex
Methods inherited from class gaiasky.render.system.AbstractRenderSystem
addDepthBufferUniforms, addEffectsUniforms, addGravWaveUniforms, addPostRunnables, addPreRunnables, addPreviousFrameUniforms, addRelativisticUniforms, addVRScale, getAlpha, getAlpha, getAlpha, getRenderGroup, getShaderProgram, render, resetFlags, resize, run, updateBatchSize
-
Field Details
-
logger
-
-
Constructor Details
-
SinglePointRenderer
public SinglePointRenderer(SceneRenderer sceneRenderer, RenderGroup rg, float[] alphas, ExtShaderProgram[] shaders, ComponentTypes.ComponentType ct)
-
-
Method Details
-
setStarTexture
-
initShaderProgram
protected void initShaderProgram()Description copied from class:AbstractRenderSystem
Initializes metadata or essential uniforms in the shader program.- Overrides:
initShaderProgram
in classAbstractRenderSystem
-
initVertices
protected void initVertices()- Specified by:
initVertices
in classImmediateModeRenderSystem
-
buildVertexAttributes
protected com.badlogic.gdx.graphics.VertexAttribute[] buildVertexAttributes() -
ensureMeshSize
public void ensureMeshSize(int desiredNumVertices) -
renderStud
- Specified by:
renderStud
in classAbstractRenderSystem
-
notify
Description copied from interface:IObserver
Event notification call.
-