diff options
author | hecks <42101236+hecktest@users.noreply.github.com> | 2021-07-23 16:23:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-23 16:23:44 +0200 |
commit | 4ab3de3bab13c18bc0eed6bac565be3b80ebac10 (patch) | |
tree | 54274982be545669f28b2849f5f94aa1c37f39af /tests/skinnedMesh.cpp | |
parent | dc2246dae75dda77d5a9be7f810930b5dd9b1ed8 (diff) | |
download | irrlicht-4ab3de3bab13c18bc0eed6bac565be3b80ebac10.tar.xz |
Delete lots of unused features (#48)
Diffstat (limited to 'tests/skinnedMesh.cpp')
-rw-r--r-- | tests/skinnedMesh.cpp | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/tests/skinnedMesh.cpp b/tests/skinnedMesh.cpp deleted file mode 100644 index 68bb618..0000000 --- a/tests/skinnedMesh.cpp +++ /dev/null @@ -1,75 +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 skinned meshes.
-bool skinnedMesh(void)
-{
- // Use EDT_BURNINGSVIDEO since it is not dependent on (e.g.) OpenGL driver versions.
- IrrlichtDevice *device = createDevice(video::EDT_BURNINGSVIDEO, core::dimension2d<u32>(160, 120), 32);
- if (!device)
- return false;
-
- scene::ISceneManager * smgr = device->getSceneManager();
-
- logTestString("Testing setMesh()\n");
-
- scene::ISkinnedMesh* mesh = (scene::ISkinnedMesh*)smgr->getMesh("../media/ninja.b3d");
- if (!mesh)
- {
- logTestString("Could not load ninja.\n");
- return false;
- }
-
- scene::IAnimatedMeshSceneNode* node = smgr->addAnimatedMeshSceneNode(mesh);
- if (!node)
- {
- logTestString("Could not add ninja node.\n");
- return false;
- }
-
- // test if certain joint is found
- bool result = (node->getJointNode("Joint1") != 0);
- if (!result)
- logTestString("Could not find joint in ninja.\n");
-
- mesh = (scene::ISkinnedMesh*)smgr->getMesh("../media/dwarf.x");
- if (!mesh)
- {
- logTestString("Could not load dwarf.\n");
- return false;
- }
- node->setMesh(mesh);
-
- // make sure old joint is non-existant anymore
- logTestString("Ignore error message in log, this is intended.\n");
- result &= (node->getJointNode("Joint1")==0);
- if (!result)
- logTestString("Found non-existing joint in dwarf.\n");
-
- // and check that a new joint can be found
- // we use a late one, in order to see also inconsistencies in the joint cache
- result &= (node->getJointNode("hit") != 0);
- if (!result)
- logTestString("Could not find joint in dwarf.\n");
-
- node = smgr->addAnimatedMeshSceneNode(mesh);
- if (!node)
- {
- logTestString("Could not add dwarf node.\n");
- return false;
- }
- // check that a joint can really be found
- result &= (node->getJointNode("hit") != 0);
- if (!result)
- logTestString("Could not find joint in dwarf.\n");
-
- device->closeDevice();
- device->run();
- device->drop();
-
- return result;
-}
|