Package gaiasky.render.system
Class LineRenderSystem
java.lang.Object
gaiasky.render.system.AbstractRenderSystem
gaiasky.render.system.ImmediateModeRenderSystem
gaiasky.render.system.LineRenderSystem
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable,IRenderSystem
- Direct Known Subclasses:
LinePrimitiveRenderer
-
Nested Class Summary
Nested ClassesNested 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
FieldsModifier and TypeFieldDescriptionprotected com.badlogic.gdx.math.Vector3protected ICameraprotected static final Logger.LogFields inherited from class gaiasky.render.system.ImmediateModeRenderSystem
curr, inGpu, meshes, meshIdx, tempIndices, tempVertsFields inherited from class gaiasky.render.system.AbstractRenderSystem
alphas, auxd, auxf, comp, postRunnables, preRunnables, programs, rc, sceneRenderer -
Constructor Summary
ConstructorsConstructorDescriptionLineRenderSystem(SceneRenderer sceneRenderer, RenderGroup rg, float[] alphas, ExtShaderProgram[] shaders) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLine(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) voidBreaks current line of pointsprotected com.badlogic.gdx.graphics.VertexAttribute[]protected voidInitializes metadata or essential uniforms in the shader program.protected voidvoidrenderStud(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
addDepthBufferUniforms, addEffectsUniforms, addGravWaveUniforms, addPostRunnables, addPreRunnables, addPreviousFrameUniforms, addRelativisticUniforms, addVRScale, getAlpha, getAlpha, getAlpha, getRenderGroup, getShaderProgram, render, resetFlags, resize, run, updateBatchSize
-
Field Details
-
logger
-
camera
-
aux2
protected com.badlogic.gdx.math.Vector3 aux2
-
-
Constructor Details
-
LineRenderSystem
public LineRenderSystem(SceneRenderer sceneRenderer, RenderGroup rg, float[] alphas, ExtShaderProgram[] shaders)
-
-
Method Details
-
initShaderProgram
protected void initShaderProgram()Description copied from class:AbstractRenderSystemInitializes metadata or essential uniforms in the shader program.- Overrides:
initShaderProgramin classAbstractRenderSystem
-
initVertices
protected void initVertices()- Specified by:
initVerticesin classImmediateModeRenderSystem
-
buildVertexAttributes
protected com.badlogic.gdx.graphics.VertexAttribute[] buildVertexAttributes() -
renderStud
- 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)
-