Package gaiasky.scene.system.render.draw
Class LineQuadstripRenderer
java.lang.Object
gaiasky.render.system.AbstractRenderSystem
gaiasky.render.system.ImmediateModeRenderSystem
gaiasky.render.system.LineRenderSystem
gaiasky.scene.system.render.draw.LinePrimitiveRenderer
gaiasky.scene.system.render.draw.LineQuadstripRenderer
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
,IRenderSystem
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
Pools arrays of double-precision floating point numbers.Nested classes/interfaces inherited from class gaiasky.scene.system.render.draw.LinePrimitiveRenderer
LinePrimitiveRenderer.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 static final int
protected static final Logger.Log
protected static final int
Fields inherited from class gaiasky.scene.system.render.draw.LinePrimitiveRenderer
aux2, camera, view
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, postRunnables, preRunnables, programs, rc, sceneRenderer
-
Constructor Summary
ConstructorDescriptionLineQuadstripRenderer
(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, float c) void
addLine
(ILineRenderable lr, double x0, double y0, double z0, double x1, double y1, double z1, float c0, float c1) 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, float r0, float g0, float b0, float a0, float r1, float g1, float b1, float a1) void
addLine
(ILineRenderable lr, double x0, double y0, double z0, double x1, double y1, double z1, com.badlogic.gdx.graphics.Color c) void
addLine
(ILineRenderable lr, double x0, double y0, double z0, double x1, double y1, double z1, com.badlogic.gdx.graphics.Color c0, com.badlogic.gdx.graphics.Color c1) void
addLinePostproc
(double x0, double y0, double z0, double x1, double y1, double z1, float c0, float c1, double dist0, double dist1, double widthTan) void
addPoint
(ILineRenderable lr, double x, double y, double z, float r, float g, float b, float a) void
Breaks current line of pointsprotected com.badlogic.gdx.graphics.VertexAttribute[]
void
dispose()
protected void
void
renderStud
(List<IRenderable> renderables, ICamera camera, double t) void
uv
(float u, float v) Methods inherited from class gaiasky.scene.system.render.draw.LinePrimitiveRenderer
addLine, addLinePostproc, addLinePostproc, initShaderProgram
Methods inherited from class gaiasky.render.system.ImmediateModeRenderSystem
clearMeshData, clearMeshes, color, color, color, color, createMeshData, 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, getAlpha, getRenderGroup, getShaderProgram, render, resetFlags, resize, run, updateBatchSize
-
Field Details
-
logger
-
INI_DPOOL_SIZE
protected static final int INI_DPOOL_SIZE- See Also:
-
MAX_DPOOL_SIZE
protected static final int MAX_DPOOL_SIZE- See Also:
-
-
Constructor Details
-
LineQuadstripRenderer
public LineQuadstripRenderer(SceneRenderer sceneRenderer, RenderGroup rg, float[] alphas, ExtShaderProgram[] shaders)
-
-
Method Details
-
initVertices
protected void initVertices()- Overrides:
initVertices
in classLinePrimitiveRenderer
-
buildVertexAttributes
protected com.badlogic.gdx.graphics.VertexAttribute[] buildVertexAttributes()- Overrides:
buildVertexAttributes
in classLinePrimitiveRenderer
-
uv
public void uv(float u, float v) -
breakLine
public void breakLine()Description copied from class:LinePrimitiveRenderer
Breaks current line of points- Overrides:
breakLine
in classLinePrimitiveRenderer
-
addPoint
public void addPoint(ILineRenderable lr, double x, double y, double z, float r, float g, float b, float a) - Overrides:
addPoint
in classLinePrimitiveRenderer
-
addLine
public void addLine(ILineRenderable lr, double x0, double y0, double z0, double x1, double y1, double z1, com.badlogic.gdx.graphics.Color c) - Overrides:
addLine
in classLinePrimitiveRenderer
-
addLine
public void addLine(ILineRenderable lr, double x0, double y0, double z0, double x1, double y1, double z1, com.badlogic.gdx.graphics.Color c0, com.badlogic.gdx.graphics.Color c1) - Overrides:
addLine
in classLinePrimitiveRenderer
-
addLine
public void addLine(ILineRenderable lr, double x0, double y0, double z0, double x1, double y1, double z1, float c) -
addLine
public void addLine(ILineRenderable lr, double x0, double y0, double z0, double x1, double y1, double z1, float c0, float c1) -
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) - Overrides:
addLine
in classLinePrimitiveRenderer
-
addLine
public void addLine(ILineRenderable lr, double x0, double y0, double z0, double x1, double y1, double z1, float r0, float g0, float b0, float a0, float r1, float g1, float b1, float a1) - Overrides:
addLine
in classLineRenderSystem
-
addLinePostproc
public void addLinePostproc(double x0, double y0, double z0, double x1, double y1, double z1, float c0, float c1, double dist0, double dist1, double widthTan) -
renderStud
- Overrides:
renderStud
in classLinePrimitiveRenderer
-
dispose
public void dispose()- Specified by:
dispose
in interfacecom.badlogic.gdx.utils.Disposable
- Overrides:
dispose
in classImmediateModeRenderSystem
-