| 10 | |
| 11 | |
| 12 | class Tr2TextureArrayElement |
| 13 | { |
| 14 | public: |
| 15 | operator bool() const; |
| 16 | bool IsValid() const; |
| 17 | uint32_t GetElementIndex() const; |
| 18 | Tr2TextureArray* GetArray() const; |
| 19 | Tr2TextureAL GetTexture() const; |
| 20 | |
| 21 | private: |
| 22 | struct Data |
| 23 | { |
| 24 | ~Data(); |
| 25 | |
| 26 | Tr2TextureArrayPtr m_array; |
| 27 | uint32_t m_index; |
| 28 | }; |
| 29 | |
| 30 | std::shared_ptr<Data> m_data; |
| 31 | |
| 32 | friend class Tr2TextureArray; |
| 33 | }; |
| 34 | |
| 35 | |
| 36 | BLUE_CLASS( Tr2TextureArray ) : |