You.i Engine
YiAssetBif.h
Go to the documentation of this file.
1 // © You i Labs Inc. All rights reserved.
2 #ifndef _YI_ASSET_BIF_H_
3 # define _YI_ASSET_BIF_H_
4 
5 # include "asset/YiAsset.h"
6 # include "asset/YiBifParser.h"
7 # include "utility/YiRtti.h"
8 
23 class CYIAssetBif : public CYIAsset
24 {
25 public:
26  CYIAssetBif();
27  virtual ~CYIAssetBif();
28 
34  bool GetImageDataAtIndex(size_t index, std::vector<uint8_t> *pImageData);
35 
40  size_t GetImageIndexAtTime(uint32_t time);
41 
46  const std::shared_ptr<CYIBif> &GetBif();
47 
51  void SetBif(const std::shared_ptr<CYIBif> &pBifParser);
52 
53 protected:
54  virtual void OnUnload() override;
55 
56 private:
57  std::shared_ptr<CYIBif> m_pBifParser;
58 
60 };
61 
62 #endif // _YI_ASSET_BIF_H_
63 
void SetBif(const std::shared_ptr< CYIBif > &pBifParser)
Asset representing BIF files.
Definition: YiAssetBif.h:23
const std::shared_ptr< CYIBif > & GetBif()
virtual void OnUnload() override
size_t GetImageIndexAtTime(uint32_t time)
Base class for any asset. An asset provides functions for dynamically loading and unloading itself an...
Definition: YiAsset.h:32
#define YI_TYPE_BASES(CLASS, BASES...)
Definition: YiRtti.h:259
virtual ~CYIAssetBif()
This file contains the classes and macros used to implement RTTI in You.i Engine. ...
bool GetImageDataAtIndex(size_t index, std::vector< uint8_t > *pImageData)