| 1 | #pragma once |
|---|---|
| 2 | |
| 3 | #include <container/seadBuffer.h> |
| 4 | |
| 5 | namespace al { |
| 6 | class PlacementInfo; |
| 7 | class PlacementId; |
| 8 | |
| 9 | class ViewIdHolder { |
| 10 | public: |
| 11 | ViewIdHolder(); |
| 12 | void init(const PlacementInfo& placementInfo); |
| 13 | const PlacementId& getViewId(s32 idx) const; |
| 14 | |
| 15 | static ViewIdHolder* tryCreate(const PlacementInfo& placementInfo); |
| 16 | |
| 17 | private: |
| 18 | s32 mNumPlacements = 0; |
| 19 | PlacementId* mPlacementIds = nullptr; |
| 20 | }; |
| 21 | } // namespace al |
| 22 |