Package gaiasky.render.system
Class PointRenderSystem
java.lang.Object
gaiasky.render.system.AbstractRenderSystem
gaiasky.render.system.ImmediateRenderSystem
gaiasky.render.system.PointRenderSystem
- All Implemented Interfaces:
IRenderSystem
-
Nested Class Summary
Nested classes/interfaces inherited from class gaiasky.render.system.ImmediateRenderSystem
ImmediateRenderSystem.MeshDataNested classes/interfaces inherited from class gaiasky.render.system.AbstractRenderSystem
AbstractRenderSystem.RenderSystemRunnable -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.badlogic.gdx.math.Vector3protected ICameraprotected intFields inherited from class gaiasky.render.system.ImmediateRenderSystem
curr, logger, meshes, meshIdx, tempVertsFields inherited from class gaiasky.render.system.AbstractRenderSystem
alphas, aux, auxd, comp, POINT_UPDATE_FLAG, postRunnables, preRunnables, programs, rc -
Constructor Summary
ConstructorsConstructorDescriptionPointRenderSystem(SceneGraphRenderer.RenderGroup rg, float[] alphas, ExtShaderProgram[] shaders) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPoint(IPointRenderable pr, double x, double y, double z, float pointSize, float r, float g, float b, float a)protected com.badlogic.gdx.graphics.VertexAttribute[]protected voidprotected voidvoidrenderStud(com.badlogic.gdx.utils.Array<IRenderable> renderables, ICamera camera, double t)voidsize(float pointSize)Methods inherited from class gaiasky.render.system.ImmediateRenderSystem
clearMeshData, color, color, color, color, createMeshData, dispose, ensureTempVertsSize, vertexMethods inherited from class gaiasky.render.system.AbstractRenderSystem
addDepthBufferUniforms, addEffectsUniforms, addGravWaveUniforms, addPostRunnables, addPreRunnables, addPreviousFrameUniforms, addRelativisticUniforms, addVRScale, getAlpha, getAlpha, getRenderGroup, getShaderProgram, render, resize, run, updateBatchSize
-
Field Details
-
camera
-
glType
protected int glType -
aux2
protected com.badlogic.gdx.math.Vector3 aux2
-
-
Constructor Details
-
PointRenderSystem
public PointRenderSystem(SceneGraphRenderer.RenderGroup rg, float[] alphas, ExtShaderProgram[] shaders)
-
-
Method Details
-
initShaderProgram
protected void initShaderProgram()- Specified by:
initShaderProgramin classImmediateRenderSystem
-
initVertices
protected void initVertices()- Specified by:
initVerticesin classImmediateRenderSystem
-
buildVertexAttributes
protected com.badlogic.gdx.graphics.VertexAttribute[] buildVertexAttributes() -
renderStud
public void renderStud(com.badlogic.gdx.utils.Array<IRenderable> renderables, ICamera camera, double t)- Specified by:
renderStudin classAbstractRenderSystem
-
addPoint
public void addPoint(IPointRenderable pr, double x, double y, double z, float pointSize, float r, float g, float b, float a) -
size
public void size(float pointSize)
-