Package gaiasky.render.system
Class OrbitalElementsGroupRenderSystem
java.lang.Object
gaiasky.render.system.AbstractRenderSystem
gaiasky.render.system.ImmediateModeRenderSystem
gaiasky.render.system.PointCloudRenderSystem
gaiasky.render.system.PointCloudTriRenderSystem
gaiasky.render.system.OrbitalElementsGroupRenderSystem
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
,IObserver
,IRenderSystem
public class OrbitalElementsGroupRenderSystem
extends PointCloudTriRenderSystem
implements IObserver
Renders orbital elements groups as a whole.
-
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
Fields inherited from class gaiasky.render.system.PointCloudTriRenderSystem
vertPos, vertUV
Fields inherited from class gaiasky.render.system.ImmediateModeRenderSystem
curr, inGpu, meshes, meshIdx, tempIndices, tempVerts
Fields inherited from class gaiasky.render.system.AbstractRenderSystem
alphas, auxd, comp, postRunnables, preRunnables, programs, rc
-
Constructor Summary
ConstructorDescriptionOrbitalElementsGroupRenderSystem
(SceneGraphRenderer.RenderGroup rg, float[] alphas, ExtShaderProgram[] shaders) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addVertexAttributes
(com.badlogic.gdx.utils.Array<com.badlogic.gdx.graphics.VertexAttribute> attributes) Adds the required vertex attributes for this renderer to the given listprotected void
void
Event notification call.protected void
Computes the offset for each vertex attribute.void
renderStud
(com.badlogic.gdx.utils.Array<IRenderable> renderables, ICamera camera, double t) void
reset()
Methods inherited from class gaiasky.render.system.PointCloudTriRenderSystem
index, quadIndices
Methods inherited from class gaiasky.render.system.PointCloudRenderSystem
addMeshData, addMeshData, buildVertexAttributes, initVertices, postRenderObjects, preRenderObjects, renderObject
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, getRenderGroup, getShaderProgram, render, resize, run, updateBatchSize
-
Field Details
-
logger
-
-
Constructor Details
-
OrbitalElementsGroupRenderSystem
public OrbitalElementsGroupRenderSystem(SceneGraphRenderer.RenderGroup rg, float[] alphas, ExtShaderProgram[] shaders)
-
-
Method Details
-
initShaderProgram
protected void initShaderProgram()- Specified by:
initShaderProgram
in classImmediateModeRenderSystem
-
addVertexAttributes
protected void addVertexAttributes(com.badlogic.gdx.utils.Array<com.badlogic.gdx.graphics.VertexAttribute> attributes) Description copied from class:PointCloudRenderSystem
Adds the required vertex attributes for this renderer to the given list- Specified by:
addVertexAttributes
in classPointCloudRenderSystem
- Parameters:
attributes
- The list of attributes
-
offsets
Description copied from class:PointCloudRenderSystem
Computes the offset for each vertex attribute. The offsets will be used later in the render stage.- Specified by:
offsets
in classPointCloudRenderSystem
- Parameters:
curr
- The current mesh data
-
renderStud
public void renderStud(com.badlogic.gdx.utils.Array<IRenderable> renderables, ICamera camera, double t) - Overrides:
renderStud
in classPointCloudRenderSystem
-
reset
public void reset() -
notify
Description copied from interface:IObserver
Event notification call.
-