aboutsummaryrefslogtreecommitdiff
path: root/tests/meshLoaders.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/meshLoaders.cpp')
-rw-r--r--tests/meshLoaders.cpp37
1 files changed, 0 insertions, 37 deletions
diff --git a/tests/meshLoaders.cpp b/tests/meshLoaders.cpp
deleted file mode 100644
index 2a828c3..0000000
--- a/tests/meshLoaders.cpp
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (C) 2008-2012 Colin MacDonald
-// No rights reserved: this software is in the public domain.
-
-#include "testUtils.h"
-
-using namespace irr;
-
-// Tests mesh loading features and the mesh cache.
-/** This won't test render results. Currently, not all mesh loaders are tested. */
-bool meshLoaders(void)
-{
- IrrlichtDevice *device = createDevice(video::EDT_NULL, core::dimension2d<u32>(160, 120), 32);
- assert_log(device);
- if (!device)
- return false;
-
- scene::ISceneManager * smgr = device->getSceneManager();
- scene::IAnimatedMesh* mesh = smgr->getMesh("../media/ninja.b3d");
- assert_log(mesh);
-
- bool result = (mesh != 0);
-
- if (mesh)
- {
- if (mesh != smgr->getMesh("../media/ninja.b3d"))
- {
- logTestString("Loading from same file results in different meshes!");
- result=false;
- }
- }
-
- device->closeDevice();
- device->run();
- device->drop();
-
- return result;
-}