|
2 | 2 | // This file is part of the "Nabla Engine". |
3 | 3 | // For conditions of distribution and use, see copyright notice in nabla.h |
4 | 4 |
|
| 5 | + |
5 | 6 | #include "common.hpp" |
6 | 7 |
|
7 | | -// TODO: Arek, we should have a `nbl::examples` class inheriting from `application_templates::MonoAssetManagerAndBuiltinResourceApplication` which |
8 | | -// during `onAppInitialized` also mounts correct `common/include/nbl/examples` and `common/src/nbl/examples` as folder or builtin |
9 | | -class GeometryCreatorApp final : public MonoWindowApplication, public application_templates::MonoAssetManagerAndBuiltinResourceApplication |
| 8 | + |
| 9 | +class GeometryCreatorApp final : public MonoWindowApplication, public BuiltinResourcesApplication |
10 | 10 | { |
11 | 11 | using device_base_t = MonoWindowApplication; |
12 | | - using asset_base_t = application_templates::MonoAssetManagerAndBuiltinResourceApplication; |
| 12 | + using asset_base_t = BuiltinResourcesApplication; |
13 | 13 |
|
14 | 14 | public: |
15 | 15 | GeometryCreatorApp(const path& _localInputCWD, const path& _localOutputCWD, const path& _sharedInputCWD, const path& _sharedOutputCWD) |
@@ -58,10 +58,6 @@ class GeometryCreatorApp final : public MonoWindowApplication, public applicatio |
58 | 58 | .addtionalBufferOwnershipFamilies = addtionalBufferOwnershipFamilies |
59 | 59 | },patch |
60 | 60 | ); |
61 | | - |
62 | | - // TODO: this is plain wrong Arek |
63 | | - m_system->mount(make_smart_refctd_ptr<system::CMountDirectoryArchive>(localInputCWD/"../common/include/nbl/examples",smart_refctd_ptr(m_logger),m_system.get()),"nbl/examples"); |
64 | | - m_system->mount(make_smart_refctd_ptr<system::CMountDirectoryArchive>(localInputCWD/"../common/src/nbl/examples",smart_refctd_ptr(m_logger),m_system.get()),"nbl/examples"); |
65 | 61 |
|
66 | 62 | auto scRes = static_cast<CDefaultSwapchainFramebuffers*>(m_surface->getSwapchainResources()); |
67 | 63 | m_renderer = CSimpleDebugRenderer::create(m_assetMgr.get(),scRes->getRenderpass(),0,m_scene.get()); |
|
0 commit comments