Package gaiasky.render.system
Class PointCloudRenderSystem
java.lang.Object
gaiasky.render.system.AbstractRenderSystem
gaiasky.render.system.ImmediateModeRenderSystem
gaiasky.render.system.PointCloudRenderSystem
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable,IObserver,IRenderSystem,Comparable<IRenderSystem>
- Direct Known Subclasses:
PointCloudQuadRenderer,PointCloudTriRenderSystem
-
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, auxd, auxf, comp, postRunners, preRunners, programs, rc, sceneRenderer -
Constructor Summary
ConstructorsConstructorDescriptionPointCloudRenderSystem(SceneRenderer sceneRenderer, RenderGroup rg, float[] alphas, ExtShaderProgram[] shaders) -
Method Summary
Modifier and TypeMethodDescriptionprotected intaddMeshData(int maxVerts) Adds a new mesh data to the meshes list and increases the mesh data indexprotected intaddMeshData(int maxVerts, int maxIndices) Adds a new mesh data to the meshes list and increases the mesh data indexprotected abstract voidaddVertexAttributes(com.badlogic.gdx.utils.Array<com.badlogic.gdx.graphics.VertexAttribute> attributes) Adds the required vertex attributes for this renderer to the given listprotected com.badlogic.gdx.graphics.VertexAttribute[]Builds the vertex attributes array and returns itprotected voidprotected abstract voidComputes the offset for each vertex attribute.protected voidpostRenderObjects(ExtShaderProgram shaderProgram, ICamera camera) protected voidpreRenderObjects(ExtShaderProgram shaderProgram, ICamera camera) protected voidrenderObject(ExtShaderProgram shaderProgram, IRenderable renderable) voidrenderStud(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, vertexMethods inherited from class gaiasky.render.system.AbstractRenderSystem
addCameraUpCubemapMode, addDepthBufferUniforms, addEffectsUniforms, addGravWaveUniforms, addPostRunnables, addPreRunnables, addPreviousFrameUniforms, addRelativisticUniforms, addVRScale, compareTo, getAlpha, getAlpha, getAlpha, getRenderGroup, getShaderProgram, getShaderProgram, initShaderProgram, render, resetFlags, resize, run, updateBatchSize
-
Constructor Details
-
PointCloudRenderSystem
public PointCloudRenderSystem(SceneRenderer sceneRenderer, RenderGroup rg, float[] alphas, ExtShaderProgram[] shaders)
-
-
Method Details
-
initVertices
protected void initVertices()- Specified by:
initVerticesin classImmediateModeRenderSystem
-
addVertexAttributes
protected abstract void addVertexAttributes(com.badlogic.gdx.utils.Array<com.badlogic.gdx.graphics.VertexAttribute> attributes) Adds the required vertex attributes for this renderer to the given list- Parameters:
attributes- The list of attributes
-
buildVertexAttributes
protected com.badlogic.gdx.graphics.VertexAttribute[] buildVertexAttributes()Builds the vertex attributes array and returns it- Returns:
- The vertex attributes array
-
offsets
Computes the offset for each vertex attribute. The offsets will be used later in the render stage.- Parameters:
curr- The current mesh data
-
addMeshData
protected int addMeshData(int maxVerts) Adds a new mesh data to the meshes list and increases the mesh data index- Parameters:
maxVerts- The max number of vertices this mesh data can hold- Returns:
- The index of the new mesh data
-
addMeshData
protected int addMeshData(int maxVerts, int maxIndices) Adds a new mesh data to the meshes list and increases the mesh data index- Parameters:
maxVerts- The max number of vertices this mesh data can holdmaxIndices- The maximum number of indices this mesh data can hold- Returns:
- The index of the new mesh data
-
preRenderObjects
-
renderObject
-
postRenderObjects
-
renderStud
- Specified by:
renderStudin classAbstractRenderSystem
-