Class BillboardSet

java.lang.Object
gaiasky.scene.component.BillboardSet
All Implemented Interfaces:
com.badlogic.ashley.core.Component, IDisposable

public class BillboardSet extends Object implements com.badlogic.ashley.core.Component, IDisposable
A component that aggregates several sets of billboard datasets.
  • Field Details

    • procedural

      public boolean procedural
      Use procedural generation to create the particles of this set.
    • morphology

      Galaxy morphology for procedural generation. If set, the billboard datasets will be automatically generated.
    • seed

      public long seed
      Procedural generation seed.
    • datasets

      public BillboardDataset[] datasets
      List of BillboardDataset objects.
    • textureFiles

      public String[] textureFiles
      Location of the textures for the billboard particles.
    • textureArray

      public com.badlogic.gdx.graphics.TextureArray textureArray
      The GPU texture array for this set.
    • provider

      public String provider
      Fully qualified name of the data provider class. Loads particle data files.
    • loadStatus

      public AtomicReference<LoadStatus> loadStatus
      Current load status.
    • textureArrayName

      public String textureArrayName
      Texture array name.
  • Constructor Details

    • BillboardSet

      public BillboardSet()
  • Method Details

    • setData

      public void setData(Object[] data)
    • getLoadStatus

      public LoadStatus getLoadStatus()
    • setLoadStatus

      public void setLoadStatus(LoadStatus loadStatus)
    • setProcedural

      public void setProcedural(Boolean procedural)
    • setMorphology

      public void setMorphology(String morphology)
    • setSeed

      public void setSeed(Long seed)
    • hasSeed

      public boolean hasSeed()
    • setTextures

      public void setTextures(String[] textures)
    • setTexture

      public void setTexture(String tex)
    • contains

      public boolean contains(BillboardDataset bd)
    • removeDataset

      public void removeDataset(BillboardDataset bd)
      Removes the given dataset from the list, if it contains it.
      Parameters:
      bd - The dataset to remove.
    • replaceDatasets

      public void replaceDatasets(BillboardDataset[] datasets)
      Replaces the current datasets list with the given one.
      Parameters:
      datasets - The new datasets.
    • dispose

      public void dispose(com.badlogic.ashley.core.Entity e)
      Specified by:
      dispose in interface IDisposable