Skip to content

Commit

Permalink
Remove no more used scene_item_entity
Browse files Browse the repository at this point in the history
  • Loading branch information
sguionni committed Oct 10, 2024
1 parent c392443 commit 45560b5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 49 deletions.
4 changes: 4 additions & 0 deletions lib/app/include/app/core/renderer/renderer_system.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ namespace VTX::App::Core::Renderer

RendererSystem() : VTX::Renderer::Facade( 1, 1, SHADER_DIR ) {}

/**
* @brief Initialize the renderer system, must be called before construction.
* @param p_shaderPath the path to the shader directory.
*/
inline static void init( const FilePath & p_shaderPath ) { SHADER_DIR = p_shaderPath; }
};

Expand Down
18 changes: 0 additions & 18 deletions lib/app/include/app/entity/scene/scene_item_entity.hpp

This file was deleted.

1 change: 1 addition & 0 deletions lib/app/src/app/application/scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ namespace VTX::App::Application
// TOCHECK: do that in state or in scene?
// (let that here instead of doing the exact same things in all states for the moment)

// TODO: remove polymorphism.
Core::ECS::View updatables
= MAIN_REGISTRY().findComponents<Component::Scene::SceneItemComponent, Component::Scene::Updatable>();

Expand Down
30 changes: 0 additions & 30 deletions lib/app/src/app/entity/scene/scene_item_entity.cpp

This file was deleted.

1 change: 0 additions & 1 deletion lib/app/src/app/entity/scene/viewpoint_entity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include "app/component/render/viewpoint.hpp"
#include "app/component/scene/selectable.hpp"
#include "app/component/scene/transform_component.hpp"
#include "app/entity/scene/scene_item_entity.hpp"
#include "app/vtx_app.hpp"
#include <string>
#include <util/logger.hpp>
Expand Down

0 comments on commit 45560b5

Please sign in to comment.