Package gaiasky.scene.system.render.draw
Class LinePrimitiveRenderer
java.lang.Object
gaiasky.render.system.AbstractRenderSystem
gaiasky.render.system.ImmediateModeRenderSystem
gaiasky.render.system.LineRenderSystem
gaiasky.scene.system.render.draw.LinePrimitiveRenderer
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
,IRenderSystem
,Comparable<IRenderSystem>
- Direct Known Subclasses:
LineQuadstripRenderer
-
Nested Class Summary
Nested classes/interfaces inherited from class gaiasky.render.system.LineRenderSystem
LineRenderSystem.LineArraySorter
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 static final Logger.Log
protected ExtShaderProgram
protected LineView
Fields inherited from class gaiasky.render.system.ImmediateModeRenderSystem
curr, inGpu, meshes, meshIdx, tempIndices, tempVerts
Fields inherited from class gaiasky.render.system.AbstractRenderSystem
alphas, auxd, auxf, comp, postRunners, preRunners, programs, rc, sceneRenderer
-
Constructor Summary
ConstructorDescriptionLinePrimitiveRenderer
(SceneRenderer sceneRenderer, RenderGroup rg, float[] alphas, ExtShaderProgram[] shaders) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addLine
(ILineRenderable lr, double x0, double y0, double z0, double x1, double y1, double z1, double r0, double g0, double b0, double a0, double r1, double g1, double b1, double a1) protected int
void
renderStud
(List<IRenderable> renderables, ICamera camera, double t) Methods inherited from class gaiasky.render.system.LineRenderSystem
addLine, addLine, addLine, addLine, addLinePostproc, addLinePostproc, addPoint, breakLine, buildVertexAttributes, initShaderProgram, initVertices, initVertices
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
addCameraUpCubemapMode, addDepthBufferUniforms, addEffectsUniforms, addGravWaveUniforms, addPostRunnables, addPreRunnables, addPreviousFrameUniforms, addRelativisticUniforms, addVRScale, compareTo, getAlpha, getAlpha, getAlpha, getRenderGroup, getShaderProgram, getShaderProgram, render, resetFlags, resize, run, updateBatchSize
-
Field Details
-
logger
-
camera
-
aux2
protected com.badlogic.gdx.math.Vector3 aux2 -
view
-
shaderProgram
-
-
Constructor Details
-
LinePrimitiveRenderer
public LinePrimitiveRenderer(SceneRenderer sceneRenderer, RenderGroup rg, float[] alphas, ExtShaderProgram[] shaders)
-
-
Method Details
-
renderStud
- Overrides:
renderStud
in classLineRenderSystem
-
getGLPrimitive
-
addLine
public void addLine(ILineRenderable lr, double x0, double y0, double z0, double x1, double y1, double z1, double r0, double g0, double b0, double a0, double r1, double g1, double b1, double a1)
-