mirror of
https://github.com/johndoe6345789/SDL3CPlusPlus.git
synced 2026-04-24 21:55:09 +00:00
26 lines
874 B
C++
26 lines
874 B
C++
#include "mesh_service.hpp"
|
|
#include <utility>
|
|
|
|
#include "../../script/mesh_loader.hpp"
|
|
|
|
namespace sdl3cpp::services::impl {
|
|
|
|
MeshService::MeshService(std::shared_ptr<IScriptEngineService> engineService)
|
|
: engineService_(std::move(engineService)) {
|
|
}
|
|
|
|
bool MeshService::LoadFromFile(const std::string& requestedPath,
|
|
script::MeshPayload& outPayload,
|
|
std::string& outError) {
|
|
return script::MeshLoader::LoadFromFile(engineService_->GetScriptDirectory(),
|
|
requestedPath,
|
|
outPayload,
|
|
outError);
|
|
}
|
|
|
|
void MeshService::PushMeshToLua(lua_State* L, const script::MeshPayload& payload) {
|
|
script::MeshLoader::PushMeshToLua(L, payload);
|
|
}
|
|
|
|
} // namespace sdl3cpp::services::impl
|