File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
09_GeometryCreator/include
common/include/nbl/examples/common Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 11#ifndef _NBL_THIS_EXAMPLE_COMMON_H_INCLUDED_
22#define _NBL_THIS_EXAMPLE_COMMON_H_INCLUDED_
33
4- // TODO: @AnastaZIuk do we even make that explicit?
5- #include " nbl/examples/PCH .hpp"
4+
5+ #include " nbl/examples/examples .hpp"
66
77using namespace nbl ;
88using namespace core ;
@@ -14,4 +14,5 @@ using namespace video;
1414using namespace scene ;
1515using namespace nbl ::examples;
1616
17+
1718#endif // __NBL_THIS_EXAMPLE_COMMON_H_INCLUDED__
Original file line number Diff line number Diff line change 1212// TODO: the include/header `nbl/examples` archive
1313// TODO: the source `nbl/examples` archive
1414// TODO: the build `nbl/examples` archive
15- // TODO: make the `this_example` optional, only if the example has builtins
16- #include " nbl/this_example/builtin/CArchive.h"
15+ #if __has_include("nbl/this_example/builtin/CArchive.h")
16+ #include " nbl/this_example/builtin/CArchive.h"
17+ #endif
1718#endif
1819
1920
@@ -55,7 +56,8 @@ class BuiltinResourcesApplication : public virtual application_templates::MonoAs
5556 m_system->mount (std::move (examplesHeaderArch)," nbl/examples" );
5657 m_system->mount (std::move (examplesSourceArch)," nbl/examples" );
5758// m_system->mount(std::move(examplesBuildArch),"nbl/examples");
58- m_system->mount (std::move (thisExampleArch)," app_resources" );
59+ if (thisExampleArch)
60+ m_system->mount (std::move (thisExampleArch)," app_resources" );
5961
6062 return true ;
6163 }
You can’t perform that action at this time.
0 commit comments