I'm new to C++ and I'm trying to learn using irrlicht.
I want to get MastEventReciever class working but no luck.
Code: Select all
while(device->run())
{
/*
Anything can be drawn between a beginScene() and an endScene()
call. The beginScene clears the screen with a color and also the
depth buffer if wanted. Then we let the Scene Manager and the
GUI Environment draw their content. With the endScene() call
everything is presented on the screen.
*/
eventM.endEventProcess();
driver->beginScene(true, true, SColor(255,255,255,255));
if (eventM.rightMousePressed())
{
cout << "it works!!";
/*guienv->addButton(rect<int>(55,60,200,80),0,101,L"Crap");
vector3df v = node->getPosition();
v.X = v.X+1;
node->setPosition(v);*/
}
smgr->drawAll();
guienv->drawAll();
driver->endScene();
eventM.startEventProcess();
}