Class VertGPURenderSystem<T extends IGPUVertsRenderable>
- java.lang.Object
-
- gaia.cu9.ari.gaiaorbit.render.system.AbstractRenderSystem
-
- gaia.cu9.ari.gaiaorbit.render.system.ImmediateRenderSystem
-
- gaia.cu9.ari.gaiaorbit.render.system.VertGPURenderSystem<T>
-
- All Implemented Interfaces:
IRenderSystem
public class VertGPURenderSystem<T extends IGPUVertsRenderable> extends ImmediateRenderSystem
Renders vertices using a VBO.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class gaia.cu9.ari.gaiaorbit.render.system.ImmediateRenderSystem
ImmediateRenderSystem.MeshData
-
Nested classes/interfaces inherited from class gaia.cu9.ari.gaiaorbit.render.system.AbstractRenderSystem
AbstractRenderSystem.RenderSystemRunnable
-
-
Field Summary
Fields Modifier and Type Field Description protected ICamera
camera
protected int
glType
-
Fields inherited from class gaia.cu9.ari.gaiaorbit.render.system.ImmediateRenderSystem
curr, logger, meshes, meshIdx, tempVerts
-
Fields inherited from class gaia.cu9.ari.gaiaorbit.render.system.AbstractRenderSystem
alphas, aux, comp, POINT_UPDATE_FLAG, postRunnables, preRunnables, programs, rc
-
-
Constructor Summary
Constructors Constructor Description VertGPURenderSystem(SceneGraphNode.RenderGroup rg, float[] alphas, ExtShaderProgram[] shaders, int glType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.badlogic.gdx.graphics.VertexAttribute[]
buildVertexAttributes()
protected void
initShaderProgram()
protected void
initVertices()
boolean
isLine()
boolean
isPoint()
void
renderStud(com.badlogic.gdx.utils.Array<IRenderable> renderables, ICamera camera, double t)
-
Methods inherited from class gaia.cu9.ari.gaiaorbit.render.system.ImmediateRenderSystem
clearMeshData, color, color, color, color, createMeshData, dispose, ensureTempVertsSize, vertex
-
Methods inherited from class gaia.cu9.ari.gaiaorbit.render.system.AbstractRenderSystem
addEffectsUniforms, addGravWaveUniforms, addPostRunnables, addPreRunnables, addRelativisticUniforms, getAlpha, getAlpha, getRenderGroup, getShaderProgram, render, resize, run, updateBatchSize
-
-
-
-
Field Detail
-
camera
protected ICamera camera
-
glType
protected int glType
-
-
Constructor Detail
-
VertGPURenderSystem
public VertGPURenderSystem(SceneGraphNode.RenderGroup rg, float[] alphas, ExtShaderProgram[] shaders, int glType)
-
-
Method Detail
-
isLine
public boolean isLine()
-
isPoint
public boolean isPoint()
-
initShaderProgram
protected void initShaderProgram()
- Specified by:
initShaderProgram
in classImmediateRenderSystem
-
initVertices
protected void initVertices()
- Specified by:
initVertices
in classImmediateRenderSystem
-
renderStud
public void renderStud(com.badlogic.gdx.utils.Array<IRenderable> renderables, ICamera camera, double t)
- Specified by:
renderStud
in classAbstractRenderSystem
-
buildVertexAttributes
protected com.badlogic.gdx.graphics.VertexAttribute[] buildVertexAttributes()
-
-