1
// Copyright (C) 2008-2011 Colin MacDonald
2
// No rights reserved: this software is in the public domain.
8
// Tests mesh loading features and the mesh cache.
9
/** This won't test render results. Currently, not all mesh loaders are tested. */
10
bool meshLoaders(void)
12
IrrlichtDevice *device = createDevice(video::EDT_NULL, core::dimension2d<u32>(160, 120), 32);
17
scene::ISceneManager * smgr = device->getSceneManager();
18
scene::IAnimatedMesh* mesh = smgr->getMesh("../media/ninja.b3d");
21
bool result = (mesh != 0);
25
if (mesh != smgr->getMesh("../media/ninja.b3d"))
27
logTestString("Loading from same file results in different meshes!");
32
device->closeDevice();