Add test file for glTF mesh loading

This commit is contained in:
JosiahWI
2022-10-16 21:48:29 -05:00
committed by Josiah VanderZee
parent bde174d1a0
commit 92862a3a2d
8 changed files with 18118 additions and 1 deletions

View File

@ -0,0 +1,18 @@
#include "inMemoryFile.h"
#define CATCH_CONFIG_MAIN
#include <catch.hpp>
#include <irrlicht.h>
TEST_CASE("load empty gltf file") {
irr::IrrlichtDevice* device { irr::createDevice(irr::video::EDT_NULL) };
irr::scene::ISceneManager* smgr { device->getSceneManager() };
irr::io::InMemoryFile filebuf{"test.gltf", ""};
auto* mesh { smgr->getMesh(&filebuf) };
REQUIRE(mesh == nullptr);
device->drop();
}