| 12345678910111213141516171819202122232425262728293031323334353637 |
- $#include "BillboardSet.h"
- /// %Billboard component.
- class BillboardSet : public Drawable
- {
- public:
- /// Set material.
- void SetMaterial(Material* material);
- /// Set number of billboards.
- void SetNumBillboards(unsigned num);
- /// Set whether billboards are relative to the scene node.
- void SetRelative(bool enable);
- /// Set whether scene node scale affects billboards' size.
- void SetScaled(bool enable);
- /// Set whether billboards are sorted by distance.
- void SetSorted(bool enable);
- /// Set animation LOD bias.
- void SetAnimationLodBias(float bias);
- /// Mark for bounding box and vertex buffer update. Call after modifying the billboards.
- void Commit();
-
- /// Return material.
- Material* GetMaterial() const;
- /// Return number of billboards.
- unsigned GetNumBillboards() const { return billboards_.Size(); }
- /// Return billboard by index.
- Billboard* GetBillboard(unsigned index);
- /// Return whether billboards are relative to the scene node.
- bool IsRelative() const { return relative_; }
- /// Return whether scene node scale affects billboards' size.
- bool IsScaled() const { return scaled_; }
- /// Return whether billboards are sorted.
- bool IsSorted() const { return sorted_; }
- /// Return animation LOD bias.
- float GetAnimationLodBias() const { return animationLodBias_; }
- float GetAnimationLodBias() const;
- };
|