mirror of
https://github.com/minetest/irrlicht.git
synced 2025-07-02 00:00:26 +02:00
Add test file for glTF mesh loading
This commit is contained in:
committed by
Josiah VanderZee
parent
bde174d1a0
commit
92862a3a2d
18
source/Irrlicht/tests/testCGLTFMeshFileLoader.cpp
Normal file
18
source/Irrlicht/tests/testCGLTFMeshFileLoader.cpp
Normal 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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user