规范模型输入以及测试shader
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "ui_main.h"
|
||||
|
||||
#include <SDL3/SDL.h>
|
||||
#include <SDL3/SDL_opengl.h>
|
||||
|
||||
#include <imgui/imgui.h>
|
||||
@@ -74,7 +75,10 @@ void OpenFileDialogFileCallback(void* userdata, const char* const* filelist, int
|
||||
g_scene.clear();
|
||||
|
||||
const char* szFileName = *filelist;
|
||||
davinci_utils::load_scene_from_gltf(szFileName, g_scene);
|
||||
if (!davinci_utils::load_scene_from_gltf(szFileName, g_scene))
|
||||
{
|
||||
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "Error", "Open glf scene file error", main_window);
|
||||
}
|
||||
}
|
||||
|
||||
void drawMainUI()
|
||||
|
||||
Reference in New Issue
Block a user