Class SingleStarQuadRenderer
java.lang.Object
gaiasky.render.system.AbstractRenderSystem
gaiasky.render.system.ImmediateModeRenderSystem
gaiasky.render.system.PointCloudRenderSystem
gaiasky.scene.system.render.draw.PointCloudQuadRenderer
gaiasky.scene.system.render.draw.SingleStarQuadRenderer
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable,IObserver,IRenderSystem,Comparable<IRenderSystem>
-
Nested Class Summary
Nested classes/interfaces inherited from class gaiasky.render.system.ImmediateModeRenderSystem
ImmediateModeRenderSystem.MeshData, ImmediateModeRenderSystem.OwnUsageNested classes/interfaces inherited from class gaiasky.render.system.AbstractRenderSystem
AbstractRenderSystem.RenderSystemRunnable -
Field Summary
FieldsFields inherited from class gaiasky.scene.system.render.draw.PointCloudQuadRenderer
vertPos, vertUVFields inherited from class gaiasky.render.system.ImmediateModeRenderSystem
auxMat, curr, inGpu, meshes, meshIdx, tempIndices, tempVertsFields inherited from class gaiasky.render.system.AbstractRenderSystem
alphas, aux3f, comp, postRunners, preRunners, programs, rc, sceneRenderer -
Constructor Summary
ConstructorsConstructorDescriptionSingleStarQuadRenderer(SceneRenderer sceneRenderer, RenderGroup rg, float[] alphas, ExtShaderProgram[] shaders, ComponentTypes.ComponentType ct) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddVertexAttributes(com.badlogic.gdx.utils.Array<com.badlogic.gdx.graphics.VertexAttribute> attributes) Adds the required vertex attributes for this renderer to the given listprotected voidInitializes metadata or essential uniforms in the shader program.voidEvent notification call.protected voidComputes the offset for each vertex attribute.protected voidpreRenderObjects(ExtShaderProgram shaderProgram, ICamera camera) voidrenderStud(List<IRenderable> renderables, ICamera camera, double t) Methods inherited from class gaiasky.scene.system.render.draw.PointCloudQuadRenderer
index, quadIndicesMethods inherited from class gaiasky.render.system.PointCloudRenderSystem
addMeshData, addMeshData, buildVertexAttributes, initVertices, postRenderObjects, renderObjectMethods inherited from class gaiasky.render.system.ImmediateModeRenderSystem
addAffineTransformUniforms, clearMeshData, clearMeshes, color, color, color, color, createMeshData, dispose, ensureTempIndicesSize, ensureTempVertsSize, getCount, getOffset, inGpu, setCount, setInGpu, setOffset, vertexMethods inherited from class gaiasky.render.system.AbstractRenderSystem
addCameraUpCubemapMode, addDepthBufferUniforms, addEffectsUniforms, addGravWaveUniforms, addPostRunnables, addPreRunnables, addRelativisticUniforms, addVRScale, compareTo, getAlpha, getAlpha, getAlpha, getRenderGroup, getShaderProgram, getShaderProgram, render, resetFlags, resize, run, updateBatchSize
-
Field Details
-
logger
-
-
Constructor Details
-
SingleStarQuadRenderer
public SingleStarQuadRenderer(SceneRenderer sceneRenderer, RenderGroup rg, float[] alphas, ExtShaderProgram[] shaders, ComponentTypes.ComponentType ct)
-
-
Method Details
-
addVertexAttributes
protected void addVertexAttributes(com.badlogic.gdx.utils.Array<com.badlogic.gdx.graphics.VertexAttribute> attributes) Description copied from class:PointCloudRenderSystemAdds the required vertex attributes for this renderer to the given list- Specified by:
addVertexAttributesin classPointCloudRenderSystem- Parameters:
attributes- The list of attributes
-
offsets
Description copied from class:PointCloudRenderSystemComputes the offset for each vertex attribute. The offsets will be used later in the render stage.- Specified by:
offsetsin classPointCloudRenderSystem- Parameters:
curr- The current mesh data
-
initShaderProgram
protected void initShaderProgram()Description copied from class:AbstractRenderSystemInitializes metadata or essential uniforms in the shader program.- Overrides:
initShaderProgramin classAbstractRenderSystem
-
preRenderObjects
- Overrides:
preRenderObjectsin classPointCloudRenderSystem
-
renderStud
- Overrides:
renderStudin classPointCloudRenderSystem
-
notify
-