addTestSceneNode() function is not recognised

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Weng
Posts: 97
Joined: Tue Oct 03, 2006 4:23 pm
Location: Singapore

addTestSceneNode() function is not recognised

Post by Weng »

Hi, :D

I am using Irrlicht sdk 1.1 and am following tutorial 4 from the website.
In the tutorial, pointers to the node and scene manager are created.
The relavent code statements are given below:

Code: Select all

scene::ISceneNode* node = 0;
IrrlichtDevice* device = 0; 
device = createDevice(video::EDT_OPENGL, core::dimension2d<s32>(640, 480), 16, false, false, false, &receiver);

scene::ISceneManager* smgr = device->getSceneManager();

node = smgr->addTestSceneNode();
When compiling the code, VC++ 2005 points out an error on the last line in the code snippet and says that
addTestSceneNode : is not a member of irr::scene::ISceneManager

I've added the relavant header files and namespaces.
#include <irrlicht.h>
#include <stdio.h>
#include <wchar.h>
using namespace irr;
#pragma comment(lib, "Irrlicht.lib")

How can the error be solved?
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

It's addCubeSceneNode now :D
Image Image Image
Weng
Posts: 97
Joined: Tue Oct 03, 2006 4:23 pm
Location: Singapore

Post by Weng »

i've changed and now it can compile.....thanks! :D
Other
Posts: 85
Joined: Fri Dec 03, 2004 5:41 pm
Contact:

Post by Other »

thanx :) I was right now upgrading my enigne with irr1.2
My Irrlicht&ODE-Project: http://www.lofing.de/myworld/
ultramedia
Posts: 175
Joined: Wed Dec 20, 2006 12:04 pm

Post by ultramedia »

Whos the right person to ask about getting that tutorial updated?
ravenger
Posts: 3
Joined: Thu Nov 09, 2006 12:58 pm
Location: Netherlands

Post by ravenger »

ultramedia wrote:Whos the right person to ask about getting that tutorial updated?
you know that up-to-date code on all tutorials is packaged with the SDK right? ;)
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Still, would be sensible to keep the online tutorials up to date as well!
Image Image Image
Post Reply