1
0

Add test file for glTF mesh loading

This commit is contained in:
JosiahWI
2022-10-16 21:48:29 -05:00
parent 4860523223
commit 21ce3d9657
8 changed files with 18117 additions and 0 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();
}