Class LineRenderSystem
- java.lang.Object
-
- gaia.cu9.ari.gaiaorbit.render.system.AbstractRenderSystem
-
- gaia.cu9.ari.gaiaorbit.render.system.ImmediateRenderSystem
-
- gaia.cu9.ari.gaiaorbit.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 class
LineRenderSystem.LineArraySorter
-
Nested classes/interfaces inherited from class gaia.cu9.ari.gaiaorbit.render.system.ImmediateRenderSystem
ImmediateRenderSystem.MeshData
-
Nested classes/interfaces inherited from class gaia.cu9.ari.gaiaorbit.render.system.AbstractRenderSystem
AbstractRenderSystem.RenderSystemRunnable
-
-
Field Summary
Fields Modifier and Type Field Description protected com.badlogic.gdx.math.Vector3
aux2
protected ICamera
camera
-
Fields inherited from class gaia.cu9.ari.gaiaorbit.render.system.ImmediateRenderSystem
curr, logger, meshes, meshIdx, tempVerts
-
Fields inherited from class gaia.cu9.ari.gaiaorbit.render.system.AbstractRenderSystem
alphas, aux, comp, POINT_UPDATE_FLAG, postRunnables, preRunnables, programs, rc
-
-
Constructor Summary
Constructors Constructor Description LineRenderSystem(SceneGraphNode.RenderGroup rg, float[] alphas, ExtShaderProgram[] shaders)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLine(ILineRenderable lr, double x0, double y0, double z0, double x1, double y1, double z1, float r, float g, float b, float a)
void
addLine(ILineRenderable lr, double x0, double y0, double z0, double x1, double y1, double z1, com.badlogic.gdx.graphics.Color col)
void
addLinePostproc(double x0, double y0, double z0, double x1, double y1, double z1, double r, double g, double b, double a)
void
addPoint(ILineRenderable lr, double x, double y, double z, float r, float g, float b, float a)
void
breakLine()
Breaks current line of pointsprotected com.badlogic.gdx.graphics.VertexAttribute[]
buildVertexAttributes()
protected void
initShaderProgram()
protected void
initVertices()
void
renderStud(com.badlogic.gdx.utils.Array<IRenderable> renderables, ICamera camera, double t)
-
Methods inherited from class gaia.cu9.ari.gaiaorbit.render.system.ImmediateRenderSystem
clearMeshData, color, color, color, color, createMeshData, dispose, ensureTempVertsSize, vertex
-
Methods inherited from class gaia.cu9.ari.gaiaorbit.render.system.AbstractRenderSystem
addDepthBufferUniforms, addEffectsUniforms, addGravWaveUniforms, addPostRunnables, addPreRunnables, addRelativisticUniforms, getAlpha, getAlpha, getRenderGroup, getShaderProgram, render, resize, run, updateBatchSize
-
-
-
-
Field Detail
-
camera
protected ICamera camera
-
aux2
protected com.badlogic.gdx.math.Vector3 aux2
-
-
Constructor Detail
-
LineRenderSystem
public LineRenderSystem(SceneGraphNode.RenderGroup rg, float[] alphas, ExtShaderProgram[] shaders)
-
-
Method Detail
-
initShaderProgram
protected void initShaderProgram()
- Specified by:
initShaderProgram
in classImmediateRenderSystem
-
initVertices
protected void initVertices()
- Specified by:
initVertices
in 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:
renderStud
in 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)
-
-