error: 'class irr::scene::ISceneManager' has no member named 'addSphereSceneNode'
Here is my code:
Code: Select all
int main()
{
ICameraSceneNode* camera = smgr->addCameraSceneNodeMaya();
device->setEventReceiver(&reciever);
device->getCursorControl()->setVisible(true);
ISceneNode* ball = smgr->addSphereSceneNode(10, 8);
ILightSceneNode* light = smgr->addLightSceneNode(0, vector3df(0, 50, 0), video::SColorf(1.f, .5f, .5f, 1.f));
while(device->run() && driver)
{
if (device->isWindowActive())
{
driver->beginScene(true, true, SColor(100,200,200,200));
smgr->drawAll();
env -> drawAll();
driver->endScene();
}
}
device->drop();
return 0;
}
Thanks,