You.i Engine
YiCreateDeleteViewRecycler.h
Go to the documentation of this file.
1 // © You i Labs Inc. All rights reserved.
2 #ifndef _YI_CREATE_DELETE_VIEW_RECYCLER_H_
3 #define _YI_CREATE_DELETE_VIEW_RECYCLER_H_
4 
5 #include "view/YiViewRecycler.h"
6 
7 #include <memory>
8 
10 class CYISceneView;
11 class CYIViewTemplate;
12 
23 {
24 public:
25  virtual std::unique_ptr<CYISceneView> TakeView(const std::shared_ptr<CYIAssetViewTemplate> &pTemplate, CYISceneManager *pSceneManager, const CYIRuntimeTypeInfo *pViewClass = nullptr) override;
26 
30  virtual void RecycleView(std::unique_ptr<CYISceneView> pView) override;
31 };
32 
35 #endif // _YI_CREATE_DELETE_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 void RecycleView(std::unique_ptr< CYISceneView > pView) override
A view template defines information about a view, so it can be built automatically.
Definition: YiViewTemplate.h:29
The abstract runtime representation of a C++ type.
Definition: YiRtti.h:58
Definition: YiCreateDeleteViewRecycler.h:22
Definition: YiViewRecycler.h:24
virtual std::unique_ptr< CYISceneView > TakeView(const std::shared_ptr< CYIAssetViewTemplate > &pTemplate, CYISceneManager *pSceneManager, const CYIRuntimeTypeInfo *pViewClass=nullptr) override