You.i Engine
YiImageMapThumbnails.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2020. All rights reserved.
2 #ifndef _YI_IMAGE_MAP_THUMBNAILS_H_
3 #define _YI_IMAGE_MAP_THUMBNAILS_H_
4 
5 #include "framework/YiPredef.h"
6 #include "player/YiThumbnails.h"
7 
8 #include <memory>
9 
10 class CYIMaterial;
11 class CYIAssetTexture;
12 
28 {
29 public:
30  CYIImageMapThumbnails(CYIImageView *pThumbnailNode);
31  virtual ~CYIImageMapThumbnails();
32 
33  virtual void Init(const CYIString &path) override;
34 
35  virtual void Update(uint64_t time) override;
36 
37 private:
38  void BuildThumbnailNode();
39 
40  std::shared_ptr<CYIAssetTexture> m_pThumbnailTextureAsset;
41  std::shared_ptr<CYIMaterial> m_pThumbnailMaterial;
42 };
43 
48 #endif // _YI_IMAGE_MAP_THUMBNAILS_H_
virtual void Update(uint64_t time) override
CYIImageMapThumbnails(CYIImageView *pThumbnailNode)
Container class for Unicode strings. Conceptually, a CYIString object is a sequence of Unicode charac...
Definition: YiString.h:36
A texture asset representing an image which will be loaded into the GPU.
Definition: YiAssetTexture.h:22
Implementation of thumbnails using Image Map file format.
Definition: YiImageMapThumbnails.h:27
CYIMaterial is a place holder for all the drawing parameters required by the renderer to draw a mesh/...
Definition: YiMaterial.h:26
A simple view which downloads and renders images.
Definition: YiImageView.h:97
Provides an interface for thumbnail implementations.
Definition: YiThumbnails.h:19
virtual ~CYIImageMapThumbnails()
virtual void Init(const CYIString &path) override