You.i Engine
YiViewRecycler.h
Go to the documentation of this file.
1 // © You i Labs Inc. All rights reserved.
2 #ifndef _YI_VIEW_RECYCLER_H_
3 #define _YI_VIEW_RECYCLER_H_
4 
5 #include "utility/YiString.h"
6 
7 #include <memory>
8 
10 class CYIRuntimeTypeInfo;
11 class CYISceneView;
12 class CYISceneManager;
13 class CYIViewTemplate;
14 
25 {
26 public:
27  virtual ~IYIViewRecycler();
28 
34  virtual std::unique_ptr<CYISceneView> TakeView(const std::shared_ptr<CYIAssetViewTemplate> &pTemplate, CYISceneManager *pSceneManager, const CYIRuntimeTypeInfo *pViewClass = nullptr) = 0;
35 
39  virtual void RecycleView(std::unique_ptr<CYISceneView> pView) = 0;
40 };
41 
44 #endif // _YI_VIEW_RECYCLER_H_
Scene trees composed of CYISceneNode objects are registered with the scene manager in order for them ...
Definition: YiSceneManager.h:82
The base class for all view types. Views are containers of renderable elements that often define inte...
Definition: YiSceneView.h:47
virtual std::unique_ptr< CYISceneView > TakeView(const std::shared_ptr< CYIAssetViewTemplate > &pTemplate, CYISceneManager *pSceneManager, const CYIRuntimeTypeInfo *pViewClass=nullptr)=0
virtual void RecycleView(std::unique_ptr< CYISceneView > pView)=0
A view template defines information about a view, so it can be built automatically.
Definition: YiViewTemplate.h:29
ViewTemplate asset. Wrapper around a CYIViewTemplate.
Definition: YiAssetViewTemplate.h:21
The abstract runtime representation of a C++ type.
Definition: YiRtti.h:58
Definition: YiViewRecycler.h:24
virtual ~IYIViewRecycler()