/*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
{
MeshVisualPtr meshVisualPtr( new MeshVisual( factoryCache ) );
meshVisualPtr->SetProperties( properties );
+ meshVisualPtr->Initialize();
return meshVisualPtr;
}
void MeshVisual::DoSetOnScene( Actor& actor )
{
- InitializeRenderer();
-
actor.AddRenderer( mImpl->mRenderer );
// Mesh loaded and ready to display
// Do nothing
}
-void MeshVisual::InitializeRenderer()
+void MeshVisual::OnInitialize()
{
//Try to load the geometry from the file.
if( !LoadGeometry() )