Package gaiasky.render.system
Class LineQuadRenderSystem
- java.lang.Object
-
- gaiasky.render.system.AbstractRenderSystem
-
- gaiasky.render.system.ImmediateRenderSystem
-
- gaiasky.render.system.LineRenderSystem
-
- gaiasky.render.system.LineQuadRenderSystem
-
- All Implemented Interfaces:
IRenderSystem
public class LineQuadRenderSystem extends LineRenderSystem
Renders lines as Polyline Quadstrips (Polyboards). Slower but higher quality.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
LineQuadRenderSystem.DPool
-
Nested classes/interfaces inherited from class gaiasky.render.system.LineRenderSystem
LineRenderSystem.LineArraySorter
-
Nested classes/interfaces inherited from class gaiasky.render.system.ImmediateRenderSystem
ImmediateRenderSystem.MeshData
-
Nested classes/interfaces inherited from class gaiasky.render.system.AbstractRenderSystem
AbstractRenderSystem.RenderSystemRunnable
-
-
Field Summary
Fields Modifier and Type Field Description protected static int
INI_DPOOL_SIZE
protected static int
MAX_DPOOL_SIZE
-
Fields inherited from class gaiasky.render.system.LineRenderSystem
aux2, camera
-
Fields inherited from class gaiasky.render.system.ImmediateRenderSystem
curr, logger, meshes, meshIdx, tempVerts
-
Fields inherited from class gaiasky.render.system.AbstractRenderSystem
alphas, auxd, comp, POINT_UPDATE_FLAG, postRunnables, preRunnables, programs, rc
-
-
Constructor Summary
Constructors Constructor Description LineQuadRenderSystem(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 c)
void
addLinePostproc(double x0, double y0, double z0, double x1, double y1, double z1, double r, double g, double b, double a, double dist0, double dist1, double widthTan)
void
addLinePostproc(gaiasky.render.system.LineQuadRenderSystem.Line l)
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()
void
dispose()
protected void
initVertices()
void
renderStud(java.util.List<IRenderable> renderables, ICamera camera, double t)
void
uv(float u, float v)
-
Methods inherited from class gaiasky.render.system.LineRenderSystem
addLinePostproc, initShaderProgram
-
Methods inherited from class gaiasky.render.system.ImmediateRenderSystem
clearMeshData, color, color, color, color, createMeshData, ensureTempVertsSize, vertex
-
Methods inherited from class gaiasky.render.system.AbstractRenderSystem
addDepthBufferUniforms, addEffectsUniforms, addGravWaveUniforms, addPostRunnables, addPreRunnables, addPreviousFrameUniforms, addRelativisticUniforms, addVRScale, getAlpha, getAlpha, getRenderGroup, getShaderProgram, render, resize, run, updateBatchSize
-
-
-
-
Field Detail
-
INI_DPOOL_SIZE
protected static final int INI_DPOOL_SIZE
- See Also:
- Constant Field Values
-
MAX_DPOOL_SIZE
protected static final int MAX_DPOOL_SIZE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LineQuadRenderSystem
public LineQuadRenderSystem(SceneGraphNode.RenderGroup rg, float[] alphas, ExtShaderProgram[] shaders)
-
-
Method Detail
-
initVertices
protected void initVertices()
- Overrides:
initVertices
in classLineRenderSystem
-
buildVertexAttributes
protected com.badlogic.gdx.graphics.VertexAttribute[] buildVertexAttributes()
- Overrides:
buildVertexAttributes
in classLineRenderSystem
-
uv
public void uv(float u, float v)
-
breakLine
public void breakLine()
Description copied from class:LineRenderSystem
Breaks current line of points- Overrides:
breakLine
in classLineRenderSystem
-
addPoint
public void addPoint(ILineRenderable lr, double x, double y, double z, float r, float g, float b, float a)
- Overrides:
addPoint
in classLineRenderSystem
-
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 classLineRenderSystem
-
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 classLineRenderSystem
-
addLinePostproc
public void addLinePostproc(gaiasky.render.system.LineQuadRenderSystem.Line l)
-
addLinePostproc
public void addLinePostproc(double x0, double y0, double z0, double x1, double y1, double z1, double r, double g, double b, double a, double dist0, double dist1, double widthTan)
-
renderStud
public void renderStud(java.util.List<IRenderable> renderables, ICamera camera, double t)
- Overrides:
renderStud
in classLineRenderSystem
-
dispose
public void dispose()
- Overrides:
dispose
in classImmediateRenderSystem
-
-