Package gaiasky.scene.system.render.draw
Class ParticleSetPointRenderer
java.lang.Object
gaiasky.render.system.AbstractRenderSystem
gaiasky.render.system.ImmediateModeRenderSystem
gaiasky.scene.system.render.draw.PointCloudRenderer
gaiasky.scene.system.render.draw.ParticleSetPointRenderer
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
,IObserver
,IRenderSystem
,Comparable<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, postRunners, preRunners, programs, rc, sceneRenderer
-
Constructor Summary
ConstructorDescriptionParticleSetPointRenderer
(SceneRenderer sceneRenderer, RenderGroup rg, float[] alphas, ExtShaderProgram[] shaders) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addVertexAttributes
(com.badlogic.gdx.utils.Array<com.badlogic.gdx.graphics.VertexAttribute> attributes) Adds the required vertex attributes for this renderer to the given listprotected void
Initializes metadata or essential uniforms in the shader program.void
Event notification call.protected void
Computes the offset for each vertex attribute.protected void
preRenderObjects
(ExtShaderProgram shaderProgram, ICamera camera) protected void
renderObject
(ExtShaderProgram shaderProgram, IRenderable renderable) protected void
setInGpu
(IRenderable renderable, boolean state) Methods inherited from class gaiasky.scene.system.render.draw.PointCloudRenderer
addMeshData, addMeshData, buildVertexAttributes, initVertices, postRenderObjects, renderStud
Methods inherited from class gaiasky.render.system.ImmediateModeRenderSystem
clearMeshData, clearMeshes, color, color, color, color, createMeshData, dispose, ensureTempIndicesSize, ensureTempVertsSize, getCount, getOffset, inGpu, setCount, setOffset, vertex
Methods inherited from class gaiasky.render.system.AbstractRenderSystem
addCameraUpCubemapMode, addDepthBufferUniforms, addEffectsUniforms, addGravWaveUniforms, addPostRunnables, addPreRunnables, addPreviousFrameUniforms, addRelativisticUniforms, addVRScale, compareTo, getAlpha, getAlpha, getAlpha, getRenderGroup, getShaderProgram, getShaderProgram, render, resetFlags, resize, run, updateBatchSize
-
Constructor Details
-
ParticleSetPointRenderer
public ParticleSetPointRenderer(SceneRenderer sceneRenderer, RenderGroup rg, float[] alphas, ExtShaderProgram[] shaders)
-
-
Method Details
-
initShaderProgram
protected void initShaderProgram()Description copied from class:AbstractRenderSystem
Initializes metadata or essential uniforms in the shader program.- Overrides:
initShaderProgram
in classAbstractRenderSystem
-
offsets
Description copied from class:PointCloudRenderer
Computes the offset for each vertex attribute. The offsets will be used later in the render stage.- Specified by:
offsets
in classPointCloudRenderer
- Parameters:
curr
- The current mesh data
-
addVertexAttributes
protected void addVertexAttributes(com.badlogic.gdx.utils.Array<com.badlogic.gdx.graphics.VertexAttribute> attributes) Description copied from class:PointCloudRenderer
Adds the required vertex attributes for this renderer to the given list- Specified by:
addVertexAttributes
in classPointCloudRenderer
- Parameters:
attributes
- The list of attributes
-
preRenderObjects
- Overrides:
preRenderObjects
in classPointCloudRenderer
-
renderObject
- Overrides:
renderObject
in classPointCloudRenderer
-
setInGpu
- Overrides:
setInGpu
in classImmediateModeRenderSystem
-
notify
Description copied from interface:IObserver
Event notification call.
-