chore: refactoring and cleanup for Gizmo
This commit is contained in:
@@ -38,7 +38,7 @@ extern "C"
|
||||
#include "material/image.h"
|
||||
}
|
||||
|
||||
namespace thermion_filament
|
||||
namespace thermion
|
||||
{
|
||||
|
||||
using namespace std::chrono;
|
||||
@@ -98,7 +98,6 @@ namespace thermion_filament
|
||||
_collisionComponentManager = new CollisionComponentManager(tm);
|
||||
_animationComponentManager = new AnimationComponentManager(tm, _engine->getRenderableManager());
|
||||
|
||||
gizmo = new Gizmo(*_engine, _scene);
|
||||
_gridOverlay = new GridOverlay(*_engine);
|
||||
|
||||
_scene->addEntity(_gridOverlay->sphere());
|
||||
@@ -114,7 +113,7 @@ namespace thermion_filament
|
||||
_engine->getEntityManager().destroy(entity);
|
||||
}
|
||||
_cameras.clear();
|
||||
delete gizmo;
|
||||
|
||||
_gridOverlay->destroy();
|
||||
destroyAll();
|
||||
|
||||
@@ -132,6 +131,10 @@ namespace thermion_filament
|
||||
AssetLoader::destroy(&_assetLoader);
|
||||
}
|
||||
|
||||
bool SceneManager::isGizmoEntity(Entity entity) {
|
||||
return false; // TODO
|
||||
}
|
||||
|
||||
int SceneManager::getInstanceCount(EntityId entityId)
|
||||
{
|
||||
auto *asset = getAssetByEntityId(entityId);
|
||||
@@ -2502,4 +2505,4 @@ EntityId SceneManager::createGeometry(
|
||||
}
|
||||
|
||||
|
||||
} // namespace thermion_filament
|
||||
} // namespace thermion
|
||||
|
||||
Reference in New Issue
Block a user