Class BillboardRenderer

java.lang.Object
gaiasky.render.system.AbstractRenderSystem
gaiasky.scene.system.render.draw.BillboardRenderer
All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable, IObserver, IRenderSystem, Comparable<IRenderSystem>

public class BillboardRenderer extends AbstractRenderSystem implements IObserver
  • Constructor Details

    • BillboardRenderer

      public BillboardRenderer(SceneRenderer sceneRenderer, RenderGroup rg, float[] alphas, ExtShaderProgram[] programs, String texturePath, float w, float h, boolean starTextureListener)
    • BillboardRenderer

      public BillboardRenderer(SceneRenderer sceneRenderer, RenderGroup rg, float[] alphas, ExtShaderProgram[] shaderPrograms, String texturePath, boolean starTextureListener)
      Creates a new billboard quad render component.
      Parameters:
      rg - The render group.
      alphas - The alphas list.
      shaderPrograms - The shader programs to render the quad with.
      texturePath - The path to the texture to use for the billboards.
      starTextureListener - Whether to listen for star texture setting changes.
  • Method Details

    • setBillboardTexture

      public void setBillboardTexture(String texturePath)
    • renderStud

      public void renderStud(List<IRenderable> renderables, ICamera camera, double t)
      Specified by:
      renderStud in class AbstractRenderSystem
    • render

      public void render(com.badlogic.ashley.core.Entity entity, ExtShaderProgram shader, IntMesh mesh, ICamera camera)
      Billboard quad render, for planets, stars, sso and sets.
    • notify

      public void notify(Event event, Object source, Object... data)
      Description copied from interface: IObserver
      Event notification call.
      Specified by:
      notify in interface IObserver
      Parameters:
      event - The event type.
      source - The source object, if any.
      data - The data associated with this event.