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 /examples/AutomatedTest/main.cpp | |
parent | dc2246dae75dda77d5a9be7f810930b5dd9b1ed8 (diff) | |
download | irrlicht-4ab3de3bab13c18bc0eed6bac565be3b80ebac10.tar.xz |
Delete lots of unused features (#48)
Diffstat (limited to 'examples/AutomatedTest/main.cpp')
-rw-r--r-- | examples/AutomatedTest/main.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/AutomatedTest/main.cpp b/examples/AutomatedTest/main.cpp index b155696..386e14c 100644 --- a/examples/AutomatedTest/main.cpp +++ b/examples/AutomatedTest/main.cpp @@ -45,18 +45,19 @@ int main(int argc, char *argv[]) const io::path mediaPath = getExampleMediaPath();
- scene::IAnimatedMesh* mesh = smgr->getMesh(mediaPath + "sydney.md2");
+ scene::IAnimatedMesh* mesh = smgr->getMesh(mediaPath + "coolguy_opt.x");
if (!mesh)
return 1;
scene::IAnimatedMeshSceneNode* node = smgr->addAnimatedMeshSceneNode(mesh);
if (node)
{
node->setMaterialFlag(video::EMF_LIGHTING, false);
- node->setMD2Animation(scene::EMAT_STAND);
- node->setMaterialTexture(0, driver->getTexture(mediaPath + "sydney.bmp"));
+ node->setFrameLoop(0, 29);
+ node->setAnimationSpeed(30);
+ node->setMaterialTexture(0, driver->getTexture(mediaPath + "cooltexture.png"));
}
- smgr->addCameraSceneNode(0, core::vector3df(0,30,-40), core::vector3df(0,5,0));
+ smgr->addCameraSceneNode(0, core::vector3df(0,4,5), core::vector3df(0,2,0));
s32 n = 0;
SEvent event;
|