Class BillboardSetRenderer
java.lang.Object
gaiasky.render.system.AbstractRenderSystem
gaiasky.render.system.ImmediateModeRenderSystem
gaiasky.render.system.InstancedRenderSystem
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 InstancedRenderSystem
InstancedRenderSystem.InstancedModelNested classes/interfaces inherited from class ImmediateModeRenderSystem
ImmediateModeRenderSystem.MeshData, ImmediateModeRenderSystem.OwnUsageNested classes/interfaces inherited from class AbstractRenderSystem
AbstractRenderSystem.RenderSystemRunnable -
Field Summary
FieldsFields inherited from class InstancedRenderSystem
models, utilsFields inherited from class ImmediateModeRenderSystem
auxMat, curr, inGpu, meshes, meshIdx, tempIndices, tempVertsFields inherited from class AbstractRenderSystem
alphas, aux3f, comp, postRunners, preRunners, programs, rc, sceneRenderer -
Constructor Summary
ConstructorsConstructorDescriptionBillboardSetRenderer(SceneRenderer sceneRenderer, RenderGroup rg, float[] alphas, ExtShaderProgram[] shaders) Creates a billboard set renderer. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddAttributesDivisor1(com.badlogic.gdx.utils.Array<com.badlogic.gdx.graphics.VertexAttribute> attributes, int primitive) Adds the required vertex attributes for this renderer to the given list.protected voidInitializes metadata or essential uniforms in the shader program.voidEvent notification call.protected voidComputes the offset for each vertex attribute.protected voidComputes the offset for each vertex attribute in the instanced array.voidrenderStud(List<IRenderable> renderables, ICamera camera, double t) Methods inherited from class InstancedRenderSystem
addAttributesDivisor0, addMeshData, addMeshData, buildAttributesDivisor0, buildAttributesDivisor1, getModel, getModel, getModelQuad, initVertices, isWireframe, postRenderObjects, preRenderObjects, renderObject, setModelMethods inherited from class ImmediateModeRenderSystem
addAffineTransformUniforms, clearMeshData, clearMeshes, color, color, color, color, createMeshData, dispose, ensureTempIndicesSize, ensureTempVertsSize, getCount, getCounts, getOffset, getOffsets, inGpu, setCount, setInGpu, setOffset, vertexMethods inherited from class AbstractRenderSystem
addCameraUpCubemapMode, addDepthBufferUniforms, addEffectsUniforms, addGravWaveUniforms, addMotionTrailsUniforms, addPostRunnables, addPreRunnables, addRelativisticUniforms, addVRScale, compareTo, getAlpha, getAlpha, getAlpha, getRenderGroup, getShaderProgram, getShaderProgram, render, resize, run, updateBatchSize
-
Field Details
-
logger
-
-
Constructor Details
-
BillboardSetRenderer
public BillboardSetRenderer(SceneRenderer sceneRenderer, RenderGroup rg, float[] alphas, ExtShaderProgram[] shaders) Creates a billboard set renderer.- Parameters:
sceneRenderer- The scene renderer.rg- The render group.alphas- Alphas array.shaders- The shaders.
-
-
Method Details
-
addAttributesDivisor1
protected void addAttributesDivisor1(com.badlogic.gdx.utils.Array<com.badlogic.gdx.graphics.VertexAttribute> attributes, int primitive) Description copied from class:InstancedRenderSystemAdds the required vertex attributes for this renderer to the given list. These attributes are added for every instance (divisor=1)- Specified by:
addAttributesDivisor1in classInstancedRenderSystem- Parameters:
attributes- The list of attributes with divisor=1primitive- The rendering primitive.
-
offsets0
protected void offsets0(ImmediateModeRenderSystem.MeshData curr, InstancedRenderSystem.InstancedModel model) Description copied from class:InstancedRenderSystemComputes the offset for each vertex attribute. The offsets will be used later in the render stage.- Specified by:
offsets0in classInstancedRenderSystem- Parameters:
curr- The current mesh data.model- The instanced model.
-
offsets1
protected void offsets1(ImmediateModeRenderSystem.MeshData curr, InstancedRenderSystem.InstancedModel model) Description copied from class:InstancedRenderSystemComputes the offset for each vertex attribute in the instanced array. The offsets will be used later in the render stage.- Specified by:
offsets1in classInstancedRenderSystem- Parameters:
curr- The current mesh data.model- The instanced model.
-
initShaderProgram
protected void initShaderProgram()Description copied from class:AbstractRenderSystemInitializes metadata or essential uniforms in the shader program.- Overrides:
initShaderProgramin classAbstractRenderSystem
-
renderStud
- Overrides:
renderStudin classInstancedRenderSystem
-
notify
-