Package gaiasky.scene.system.render.draw
Class PrimitiveVertexRenderSystem<T extends IGPUVertsRenderable>
java.lang.Object
gaiasky.render.system.AbstractRenderSystem
gaiasky.render.system.ImmediateModeRenderSystem
gaiasky.scene.system.render.draw.PrimitiveVertexRenderSystem<T>
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
,IObserver
,IRenderSystem
public class PrimitiveVertexRenderSystem<T extends IGPUVertsRenderable>
extends ImmediateModeRenderSystem
implements IObserver
Renders vertices using a VBO.
-
Nested Class Summary
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 ICamera
protected int
protected final boolean
protected static final Logger.Log
protected final boolean
Enable method with aliasing in the fragment shader.protected final VertsView
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
ConstructorDescriptionPrimitiveVertexRenderSystem
(SceneRenderer sceneRenderer, RenderGroup rg, float[] alphas, ExtShaderProgram[] shaders, boolean lines) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.badlogic.gdx.graphics.VertexAttribute[]
protected void
Initializes metadata or essential uniforms in the shader program.protected void
boolean
isLine()
boolean
isPoint()
void
Event notification call.void
renderStud
(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, 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
-
lines
protected final boolean lines -
vertsView
-
shaderAliasMethod
protected final boolean shaderAliasMethodEnable method with aliasing in the fragment shader.- See Also:
-
camera
-
coordOffset
protected int coordOffset
-
-
Constructor Details
-
PrimitiveVertexRenderSystem
public PrimitiveVertexRenderSystem(SceneRenderer sceneRenderer, RenderGroup rg, float[] alphas, ExtShaderProgram[] shaders, boolean lines)
-
-
Method Details
-
isLine
public boolean isLine() -
isPoint
public boolean isPoint() -
initShaderProgram
protected void initShaderProgram()Description copied from class:AbstractRenderSystem
Initializes metadata or essential uniforms in the shader program.- Overrides:
initShaderProgram
in classAbstractRenderSystem
-
initVertices
protected void initVertices()- Specified by:
initVertices
in classImmediateModeRenderSystem
-
renderStud
- Specified by:
renderStud
in classAbstractRenderSystem
-
buildVertexAttributes
protected com.badlogic.gdx.graphics.VertexAttribute[] buildVertexAttributes() -
notify
Description copied from interface:IObserver
Event notification call.
-