Package gaiasky.render.system
Class PointRenderSystem
java.lang.Object
gaiasky.render.system.AbstractRenderSystem
gaiasky.render.system.ImmediateModeRenderSystem
gaiasky.render.system.PointRenderSystem
- 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
Modifier and TypeFieldDescriptionprotected com.badlogic.gdx.math.Vector3
protected ICamera
protected int
protected static final Logger.Log
Fields inherited from class gaiasky.render.system.ImmediateModeRenderSystem
curr, inGpu, meshes, meshIdx, tempIndices, tempVerts
Fields inherited from class gaiasky.render.system.AbstractRenderSystem
alphas, aux, auxd, comp, postRunnables, preRunnables, programs, rc
-
Constructor Summary
ConstructorDescriptionPointRenderSystem
(SceneGraphRenderer.RenderGroup rg, float[] alphas, ExtShaderProgram[] shaders) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPoint
(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 void
protected void
void
renderStud
(com.badlogic.gdx.utils.Array<IRenderable> renderables, ICamera camera, double t) void
size
(float pointSize) 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, getRenderGroup, getShaderProgram, render, resize, run, updateBatchSize
-
Field Details
-
logger
-
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:
initShaderProgram
in classImmediateModeRenderSystem
-
initVertices
protected void initVertices()- Specified by:
initVertices
in classImmediateModeRenderSystem
-
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:
renderStud
in 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)
-