Package gaiasky.scene.system.render.draw
Class ParticleEffectsRenderer
java.lang.Object
gaiasky.render.system.AbstractRenderSystem
gaiasky.render.system.ImmediateModeRenderSystem
gaiasky.scene.system.render.draw.ParticleEffectsRenderer
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
,IRenderSystem
-
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
ConstructorDescriptionParticleEffectsRenderer
(SceneRenderer sceneRenderer, RenderGroup rg, float[] alphas, ExtShaderProgram[] programs) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.badlogic.gdx.graphics.VertexAttribute[]
protected void
Initializes metadata or essential uniforms in the shader program.protected void
void
render
(List<IRenderable> renderables, ICamera camera, double t, RenderingContext rc) Renders the given list of renderable objects.void
renderStud
(List<IRenderable> renderables, ICamera camera, double t) 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, resetFlags, resize, run, updateBatchSize
-
Constructor Details
-
ParticleEffectsRenderer
public ParticleEffectsRenderer(SceneRenderer sceneRenderer, RenderGroup rg, float[] alphas, ExtShaderProgram[] programs)
-
-
Method Details
-
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() -
render
Description copied from interface:IRenderSystem
Renders the given list of renderable objects.- Specified by:
render
in interfaceIRenderSystem
- Overrides:
render
in classAbstractRenderSystem
- Parameters:
renderables
- The list of objects to render.camera
- The camera object.t
- The time, in seconds, since the session start.rc
- The rendering context object.
-
renderStud
- Specified by:
renderStud
in classAbstractRenderSystem
-