Files
dl_old/dl/render/dl_model_object.cpp
T
2025-10-04 18:52:33 +08:00

24 lines
474 B
C++

#include "dl_model_loader.h" // Android dl_concept.h 宏名字冲突需要前置
#include "render/dl_model_object.h"
#ifndef DL_DISABLE_RENDER
#include "io/dl_log.h"
namespace dl
{
std::vector<ModelObject*> ModelObject::Create(std::string_view path_name, std::string_view res_name)
{
std::vector<ModelObject*> ret = g_modelLoader->Load(path_name, res_name);
if (ret.empty())
{
log_err("模型加载失败:{}", path_name);
return {};
}
return ret;
}
}
#endif