Package gaiasky.render.system
Class LineRenderSystem
java.lang.Object
gaiasky.render.system.AbstractRenderSystem
gaiasky.render.system.ImmediateRenderSystem
gaiasky.render.system.LineRenderSystem
- All Implemented Interfaces:
IRenderSystem
- Direct Known Subclasses:
LineQuadRenderSystem
public class LineRenderSystem extends ImmediateRenderSystem
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classLineRenderSystem.LineArraySorterNested classes/interfaces inherited from class gaiasky.render.system.ImmediateRenderSystem
ImmediateRenderSystem.MeshDataNested classes/interfaces inherited from class gaiasky.render.system.AbstractRenderSystem
AbstractRenderSystem.RenderSystemRunnable -
Field Summary
Fields Modifier and Type Field Description protected com.badlogic.gdx.math.Vector3aux2protected ICameracameraFields 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
Constructors Constructor Description LineRenderSystem(SceneGraphRenderer.RenderGroup rg, float[] alphas, ExtShaderProgram[] shaders) -
Method Summary
Modifier and Type Method Description voidaddLine(ILineRenderable lr, double x0, double y0, double z0, double x1, double y1, double z1, float r, float g, float b, float a)voidaddLine(ILineRenderable lr, double x0, double y0, double z0, double x1, double y1, double z1, com.badlogic.gdx.graphics.Color col)voidaddLinePostproc(double x0, double y0, double z0, double x1, double y1, double z1, double r, double g, double b, double a)voidaddPoint(ILineRenderable lr, double x, double y, double z, float r, float g, float b, float a)voidbreakLine()Breaks current line of pointsprotected com.badlogic.gdx.graphics.VertexAttribute[]buildVertexAttributes()protected voidinitShaderProgram()protected voidinitVertices()voidrenderStud(com.badlogic.gdx.utils.Array<IRenderable> renderables, ICamera camera, double t)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, updateBatchSizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
camera
-
aux2
protected com.badlogic.gdx.math.Vector3 aux2
-
-
Constructor Details
-
LineRenderSystem
public LineRenderSystem(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
-
breakLine
public void breakLine()Breaks current line of points -
addPoint
public void addPoint(ILineRenderable lr, double x, double y, double z, float r, float g, float b, float a) -
addLine
public void addLine(ILineRenderable lr, double x0, double y0, double z0, double x1, double y1, double z1, com.badlogic.gdx.graphics.Color col) -
addLine
public void addLine(ILineRenderable lr, double x0, double y0, double z0, double x1, double y1, double z1, float r, float g, float b, float a) -
addLinePostproc
public void addLinePostproc(double x0, double y0, double z0, double x1, double y1, double z1, double r, double g, double b, double a)
-