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 1
1
#ifndef _NBL_THIS_EXAMPLE_COMMON_H_INCLUDED_
2
2
#define _NBL_THIS_EXAMPLE_COMMON_H_INCLUDED_
3
3
4
- // TODO: @AnastaZIuk do we even make that explicit?
5
- #include " nbl/examples/PCH .hpp"
4
+
5
+ #include " nbl/examples/examples .hpp"
6
6
7
7
using namespace nbl ;
8
8
using namespace core ;
@@ -14,4 +14,5 @@ using namespace video;
14
14
using namespace scene ;
15
15
using namespace nbl ::examples;
16
16
17
+
17
18
#endif // __NBL_THIS_EXAMPLE_COMMON_H_INCLUDED__
Original file line number Diff line number Diff line change 12
12
// TODO: the include/header `nbl/examples` archive
13
13
// TODO: the source `nbl/examples` archive
14
14
// 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
17
18
#endif
18
19
19
20
@@ -55,7 +56,8 @@ class BuiltinResourcesApplication : public virtual application_templates::MonoAs
55
56
m_system->mount (std::move (examplesHeaderArch)," nbl/examples" );
56
57
m_system->mount (std::move (examplesSourceArch)," nbl/examples" );
57
58
// 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" );
59
61
60
62
return true ;
61
63
}
You can’t perform that action at this time.
0 commit comments