Package gaiasky.render.system
Class ParticleGroupPointRenderSystem
java.lang.Object
gaiasky.render.system.AbstractRenderSystem
gaiasky.render.system.ImmediateModeRenderSystem
gaiasky.render.system.PointCloudRenderSystem
gaiasky.render.system.ParticleGroupPointRenderSystem
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable,IObserver,IRenderSystem
-
Nested Class Summary
Nested classes/interfaces inherited from class gaiasky.render.system.ImmediateModeRenderSystem
ImmediateModeRenderSystem.MeshData, ImmediateModeRenderSystem.OwnUsageNested 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, tempVertsFields inherited from class gaiasky.render.system.AbstractRenderSystem
alphas, aux, auxd, comp, postRunnables, preRunnables, programs, rc -
Constructor Summary
ConstructorsConstructorDescriptionParticleGroupPointRenderSystem(SceneGraphRenderer.RenderGroup rg, float[] alphas, ExtShaderProgram[] shaders) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddVertexAttributes(com.badlogic.gdx.utils.Array<com.badlogic.gdx.graphics.VertexAttribute> attributes) Adds the required vertex attributes for this renderer to the given listprotected voidvoidEvent notification call.protected voidComputes the offset for each vertex attribute.protected voidpreRenderObjects(ExtShaderProgram shaderProgram, ICamera camera) protected voidrenderObject(ExtShaderProgram shaderProgram, IRenderable renderable) protected voidsetInGpu(IRenderable renderable, boolean state) Methods inherited from class gaiasky.render.system.PointCloudRenderSystem
addMeshData, addMeshData, buildVertexAttributes, initVertices, postRenderObjects, renderStudMethods inherited from class gaiasky.render.system.ImmediateModeRenderSystem
clearMeshData, clearMeshes, color, color, color, color, createMeshData, dispose, ensureTempIndicesSize, ensureTempVertsSize, getCount, getOffset, inGpu, setCount, setOffset, vertexMethods inherited from class gaiasky.render.system.AbstractRenderSystem
addDepthBufferUniforms, addEffectsUniforms, addGravWaveUniforms, addPostRunnables, addPreRunnables, addPreviousFrameUniforms, addRelativisticUniforms, addVRScale, getAlpha, getAlpha, getRenderGroup, getShaderProgram, render, resize, run, updateBatchSize
-
Constructor Details
-
ParticleGroupPointRenderSystem
public ParticleGroupPointRenderSystem(SceneGraphRenderer.RenderGroup rg, float[] alphas, ExtShaderProgram[] shaders)
-
-
Method Details
-
initShaderProgram
protected void initShaderProgram()- Specified by:
initShaderProgramin classImmediateModeRenderSystem
-
offsets
Description copied from class:PointCloudRenderSystemComputes the offset for each vertex attribute. The offsets will be used later in the render stage.- Specified by:
offsetsin classPointCloudRenderSystem- 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:PointCloudRenderSystemAdds the required vertex attributes for this renderer to the given list- Specified by:
addVertexAttributesin classPointCloudRenderSystem- Parameters:
attributes- The list of attributes
-
preRenderObjects
- Overrides:
preRenderObjectsin classPointCloudRenderSystem
-
renderObject
- Overrides:
renderObjectin classPointCloudRenderSystem
-
setInGpu
- Overrides:
setInGpuin classImmediateModeRenderSystem
-
notify
Description copied from interface:IObserverEvent notification call.
-