Package gaiasky.scene.system.render.draw
Class BillboardSetRenderer
java.lang.Object
gaiasky.render.system.AbstractRenderSystem
gaiasky.render.system.ImmediateModeRenderSystem
gaiasky.render.system.PointCloudRenderSystem
gaiasky.render.system.PointCloudTriRenderSystem
gaiasky.scene.system.render.draw.BillboardSetRenderer
- 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.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, meshIdx, tempIndices, tempVerts
Fields inherited from class gaiasky.render.system.AbstractRenderSystem
alphas, aux3d, aux3f, comp, postRunners, preRunners, programs, rc, sceneRenderer
-
Constructor Summary
ConstructorDescriptionBillboardSetRenderer
(SceneRenderer sceneRenderer, 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 listvoid
dispose()
protected void
Initializes metadata or essential uniforms in the shader program.protected void
void
Event notification call.protected void
Computes the offset for each vertex attribute.void
renderStud
(List<IRenderable> renderables, ICamera camera, double t) Methods inherited from class gaiasky.render.system.PointCloudTriRenderSystem
index, quadIndices
Methods inherited from class gaiasky.render.system.PointCloudRenderSystem
addMeshData, addMeshData, buildVertexAttributes, postRenderObjects, preRenderObjects, renderObject
Methods inherited from class gaiasky.render.system.ImmediateModeRenderSystem
addAffineTransformUniforms, clearMeshData, clearMeshes, color, color, color, color, createMeshData, ensureTempIndicesSize, ensureTempVertsSize, getCount, getOffset, inGpu, setCount, setInGpu, setOffset, vertex
Methods inherited from class gaiasky.render.system.AbstractRenderSystem
addCameraUpCubemapMode, addDepthBufferUniforms, addEffectsUniforms, addGravWaveUniforms, addPostRunnables, addPreRunnables, addPreviousFrameUniforms, addRelativisticUniforms, addVRScale, compareTo, getAlpha, getAlpha, getAlpha, getRenderGroup, getShaderProgram, getShaderProgram, render, resetFlags, resize, run, updateBatchSize
-
Field Details
-
logger
-
-
Constructor Details
-
BillboardSetRenderer
public BillboardSetRenderer(SceneRenderer sceneRenderer, RenderGroup rg, float[] alphas, ExtShaderProgram[] shaders)
-
-
Method Details
-
initShaderProgram
protected void initShaderProgram()Description copied from class:AbstractRenderSystem
Initializes metadata or essential uniforms in the shader program.- Overrides:
initShaderProgram
in classAbstractRenderSystem
-
dispose
public void dispose()- Specified by:
dispose
in interfacecom.badlogic.gdx.utils.Disposable
- Overrides:
dispose
in classImmediateModeRenderSystem
-
initVertices
protected void initVertices()- Overrides:
initVertices
in classPointCloudRenderSystem
-
renderStud
- Overrides:
renderStud
in classPointCloudRenderSystem
-
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
-
notify
Description copied from interface:IObserver
Event notification call.
-