Try to clean up asset folders for sample apps. (#128)
* Try to clean up asset folders for sample apps. This removes the build step where we copy a subset of assets, and makes it so that FilamentApp hands out a "root path" for assets. For now this is determined based on the location of the executable. This allows developers to launch samples from any CWD. Closes #11 * Restore asset copy to build.
This commit is contained in:
@@ -155,7 +155,8 @@ void FilamentApp::run(const Config& config,SetupCallback setupCallback,
|
||||
setupCallback(mEngine, window->mMainView->getView(), mScene);
|
||||
|
||||
if (imguiCallback) {
|
||||
mImGuiHelper = std::make_unique<ImGuiHelper>(mEngine, window->mUiView->getView());
|
||||
mImGuiHelper = std::make_unique<ImGuiHelper>(mEngine, window->mUiView->getView(),
|
||||
getRootPath() + "assets/fonts/Roboto-Medium.ttf");
|
||||
ImGuiIO& io = ImGui::GetIO();
|
||||
#ifdef WIN32
|
||||
SDL_SysWMinfo wmInfo;
|
||||
|
||||
Reference in New Issue
Block a user