fix(input): adjust to recent changes + link tbb to fix gcc compilation
This commit is contained in:
parent
054af3fd8f
commit
e1360cabce
2 changed files with 6 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
add_library_module(input system.cpp)
|
add_library_module(input system.cpp)
|
||||||
target_link_libraries(input PUBLIC surface math logger)
|
target_link_libraries(input PUBLIC surface math logger tbb)
|
||||||
|
|
||||||
add_test_module(input system.test.cpp)
|
add_test_module(input system.test.cpp)
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
#include <memory/reference.hpp>
|
#include <memory/reference.hpp>
|
||||||
#include <memory/scope.hpp>
|
#include <memory/scope.hpp>
|
||||||
#include <ranges>
|
#include <ranges>
|
||||||
|
#include <surface/system.hpp>
|
||||||
#include <test/test.hpp>
|
#include <test/test.hpp>
|
||||||
|
|
||||||
// NOLINTBEGIN
|
// NOLINTBEGIN
|
||||||
|
@ -48,9 +49,9 @@ public:
|
||||||
auto add_surface_component() -> ecs::EntityId
|
auto add_surface_component() -> ecs::EntityId
|
||||||
{
|
{
|
||||||
auto entity = m_registry->create_entity();
|
auto entity = m_registry->create_entity();
|
||||||
m_registry->add<surface::SurfaceComponent>(
|
m_surface_system.create_surface_component(
|
||||||
entity,
|
entity,
|
||||||
surface::SurfaceComponent::CreateInfo {}
|
{ .title = "", .resolution = { 20u, 20u } }
|
||||||
);
|
);
|
||||||
|
|
||||||
return entity;
|
return entity;
|
||||||
|
@ -58,6 +59,8 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
memory::Ref<ecs::Registry> m_registry = memory::create_ref<ecs::Registry>();
|
memory::Ref<ecs::Registry> m_registry = memory::create_ref<ecs::Registry>();
|
||||||
|
|
||||||
|
surface::System m_surface_system = surface::System { m_registry };
|
||||||
};
|
};
|
||||||
|
|
||||||
Suite raii = "raii"_suite = "raii"_suite = [] {
|
Suite raii = "raii"_suite = "raii"_suite = [] {
|
||||||
|
|
Loading…
Add table
Reference in a new issue