Class BillboardSet
java.lang.Object
gaiasky.scene.component.BillboardSet
- All Implemented Interfaces:
com.badlogic.ashley.core.Component, IDisposable
A component that aggregates several sets of billboard datasets.
-
Field Summary
FieldsModifier and TypeFieldDescriptionList ofBillboardDatasetobjects.Current load status.Galaxy morphology for procedural generation.booleanUse procedural generation to create the particles of this set.Fully qualified name of the data provider class.longProcedural generation seed.com.badlogic.gdx.graphics.TextureArrayThe GPU texture array for this set.Texture array name.String[]Location of the textures for the billboard particles. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoiddispose(com.badlogic.ashley.core.Entity e) booleanhasSeed()voidRemoves the given dataset from the list, if it contains it.voidreplaceDatasets(BillboardDataset[] datasets) Replaces the current datasets list with the given one.voidvoidsetLoadStatus(LoadStatus loadStatus) voidsetMorphology(String morphology) voidsetProcedural(Boolean procedural) voidvoidsetTexture(String tex) voidsetTextures(String[] textures)
-
Field Details
-
procedural
public boolean proceduralUse 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 seedProcedural generation seed. -
datasets
List ofBillboardDatasetobjects. -
textureFiles
Location of the textures for the billboard particles. -
textureArray
public com.badlogic.gdx.graphics.TextureArray textureArrayThe GPU texture array for this set. -
provider
Fully qualified name of the data provider class. Loads particle data files. -
loadStatus
Current load status. -
textureArrayName
Texture array name.
-
-
Constructor Details
-
BillboardSet
public BillboardSet()
-
-
Method Details
-
setData
-
getLoadStatus
-
setLoadStatus
-
setProcedural
-
setMorphology
-
setSeed
-
hasSeed
public boolean hasSeed() -
setTextures
-
setTexture
-
contains
-
removeDataset
Removes the given dataset from the list, if it contains it.- Parameters:
bd- The dataset to remove.
-
replaceDatasets
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:
disposein interfaceIDisposable
-