Package gaiasky.render.system
Class VertGPURenderSystem<T extends IGPUVertsRenderable>
java.lang.Object
gaiasky.render.system.AbstractRenderSystem
gaiasky.render.system.ImmediateRenderSystem
gaiasky.render.system.VertGPURenderSystem<T>
- All Implemented Interfaces:
IRenderSystem
Renders vertices using a VBO.
-
Nested Class Summary
Nested classes/interfaces inherited from class gaiasky.render.system.ImmediateRenderSystem
ImmediateRenderSystem.MeshDataNested classes/interfaces inherited from class gaiasky.render.system.AbstractRenderSystem
AbstractRenderSystem.RenderSystemRunnable -
Field Summary
FieldsFields inherited from class gaiasky.render.system.ImmediateRenderSystem
curr, logger, meshes, meshIdx, tempVertsFields inherited from class gaiasky.render.system.AbstractRenderSystem
alphas, aux, auxd, comp, POINT_UPDATE_FLAG, postRunnables, preRunnables, programs, rc -
Constructor Summary
ConstructorsConstructorDescriptionVertGPURenderSystem(SceneGraphRenderer.RenderGroup rg, float[] alphas, ExtShaderProgram[] shaders, boolean lines) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.badlogic.gdx.graphics.VertexAttribute[]protected voidprotected voidbooleanisLine()booleanisPoint()voidrenderStud(com.badlogic.gdx.utils.Array<IRenderable> renderables, ICamera camera, double t)Methods inherited from class gaiasky.render.system.ImmediateRenderSystem
clearMeshData, clearMeshes, color, color, color, color, createMeshData, dispose, ensureTempVertsSize, vertexMethods inherited from class gaiasky.render.system.AbstractRenderSystem
addDepthBufferUniforms, addEffectsUniforms, addGravWaveUniforms, addPostRunnables, addPreRunnables, addPreviousFrameUniforms, addRelativisticUniforms, addVRScale, getAlpha, getAlpha, getRenderGroup, getShaderProgram, render, resize, run, updateBatchSize
-
Field Details
-
camera
-
lines
protected boolean lines
-
-
Constructor Details
-
VertGPURenderSystem
public VertGPURenderSystem(SceneGraphRenderer.RenderGroup rg, float[] alphas, ExtShaderProgram[] shaders, boolean lines)
-
-
Method Details
-
isLine
public boolean isLine() -
isPoint
public boolean isPoint() -
initShaderProgram
protected void initShaderProgram()- Specified by:
initShaderProgramin classImmediateRenderSystem
-
initVertices
protected void initVertices()- Specified by:
initVerticesin classImmediateRenderSystem
-
renderStud
public void renderStud(com.badlogic.gdx.utils.Array<IRenderable> renderables, ICamera camera, double t)- Specified by:
renderStudin classAbstractRenderSystem
-
buildVertexAttributes
protected com.badlogic.gdx.graphics.VertexAttribute[] buildVertexAttributes()
-