ViewTemplate asset. Wrapper around a CYIViewTemplate.
#include <asset/YiAssetViewTemplate.h>

Protected Member Functions | |
| virtual void | OnUnload () override |
| void | SetTemplate (const std::shared_ptr< CYIViewTemplate > &pViewTemplate) |
Protected Member Functions inherited from CYIAsset | |
| CYIAsset () | |
| ssize_t | GetID () const |
| void | SetPath (const CYIString &path, PATH_TYPE ePathType) |
| void | SetApproximateSize (uint32_t nSize) |
| void | SetLoaded (bool bAssetLoaded) |
| void | SetLoadParameters (std::unique_ptr< CYIAssetLoadParams > pParams) |
| virtual void | OnLoad () |
Protected Member Functions inherited from CYIScriptableRTTIObject | |
| virtual std::pair< const CYIRuntimeTypeInfo *, const void * > | GetRuntimeTypeInfoWithObject () const =0 |
Friends | |
| class | CYIAssetDecoderTemplate |
Additional Inherited Members | |
Public Types inherited from CYIAsset | |
| enum | PATH_TYPE { PATH_ABSOLUTE = 0, PATH_RELATIVE } |
Static Protected Attributes inherited from CYIAsset | |
| static ssize_t | INVALID_ID |
| CYIAssetViewTemplate::CYIAssetViewTemplate | ( | ) |
| CYIAssetViewTemplate::CYIAssetViewTemplate | ( | const CYIString & | path, |
| PATH_TYPE | ePathType = PATH_RELATIVE |
||
| ) |
|
virtual |
| std::unique_ptr<CYISceneView> CYIAssetViewTemplate::BuildView | ( | CYISceneManager * | pSceneManager | ) |
Constructs a new view instance from the view template. Before a CYISceneView is ready to be used, the Init() method must also be called.
Consider the following example to construct and initialize a CYISceneView:
The caller is responsible for destroying the view.
| const std::shared_ptr<CYIViewTemplate>& CYIAssetViewTemplate::GetTemplate | ( | ) |
Returns the view template object. The template will be reloaded if necessary.
|
overrideprotectedvirtual |
Reimplemented from CYIAsset.
|
protected |
|
friend |