This commit is contained in:
Arron David Nelson 2024-09-16 16:18:05 -07:00
parent a43e2a285e
commit bbac18ced2
2 changed files with 10 additions and 5 deletions

View File

@ -73,10 +73,15 @@ if (IS_OS_WINDOWS)
elseif (IS_OS_LINUX)
add_compile_definitions(VK_USE_PLATFORM_XCB_KHR EHS_WS_XCB)
target_link_directories(TechDemo PRIVATE "${USER_HOME_DIRECTORY}/.local/lib")
target_include_directories(TechDemo PRIVATE "${USER_HOME_DIRECTORY}/.local/include")
find_package(PkgConfig REQUIRED)
pkg_check_modules(PIPEWIRE REQUIRED libpipewire-0.3)
target_link_libraries(TechDemo PRIVATE wayland-client xcb xcb-cursor xcb-xfixes xcb-xinput asound)
target_include_directories(TechDemo PRIVATE "${USER_HOME_DIRECTORY}/.local/include")
target_include_directories(TechDemo PRIVATE ${PIPEWIRE_INCLUDE_DIRS})
target_link_directories(TechDemo PRIVATE "${USER_HOME_DIRECTORY}/.local/lib")
target_link_libraries(TechDemo PRIVATE pipewire-0.3 wayland-client xcb xcb-cursor xcb-xfixes xcb-xinput asound)
endif()
target_link_libraries(TechDemo PRIVATE Vulkan::Headers Vulkan::Vulkan OpenSSL::SSL OpenSSL::Crypto ZLIB::ZLIB LWE EHC EHE EHS_Stc)
target_link_libraries(TechDemo PRIVATE Vulkan::Headers Vulkan::Vulkan OpenSSL::SSL OpenSSL::Crypto ZLIB::ZLIB LWE_Stc EHC EHE EHS_Stc)

View File

@ -240,7 +240,7 @@ void TestLevel::Setup(lwe::GpuInterface* inf)
lwe::CollectionGui* stats = new lwe::CollectionGui("Stats");
stats->SetScale({250.0f, 127.0f});
stats->AddResource(new lwe::GpuFontAtlas("resources/fonts/Arial_24.ehf", inf));
AddResource(new lwe::GpuFontAtlas("resources/fonts/Arial_24.ehf", inf));
lwe::SolidBoxGui* bckgrd = new lwe::SolidBoxGui("Background");
bckgrd->SetScale({250.0f, 127.0f});