lots of code for mesh management rendering and window input

This commit is contained in:
Ben Kyd
2022-10-25 17:59:22 +01:00
parent 0bdbd96c67
commit ec69a90b29
13 changed files with 359 additions and 32 deletions

View File

@@ -45,11 +45,16 @@ ObjLoader::ObjLoader()
}
ObjLoader::~ObjLoader()
{
}
void ObjLoader::load(std::filesystem::path file)
{
if (!std::filesystem::exists(file))
{
spdlog::error("OBJ File does not exist at ", file);
spdlog::error("OBJ File does not exist at ", file.string());
return;
}
@@ -57,7 +62,7 @@ void ObjLoader::load(std::filesystem::path file)
inf.open(file.c_str(), std::ios_base::in);
if (!inf.is_open())
{
spdlog::error("Failed to open OBJ file ", file);
spdlog::error("Failed to open OBJ file ", file.string());
return;
}