I'm having a bit of a hard time with the eventreceiver.
Yes I do get it's concept but I'm trying to use it in a way.
I have a class named CGame that has all the things I need. I like to put it all in ojects since I'm trying to make a preety much expandable project.
So I'm trying to use it in 2 ways:
Code: Select all
CEventReceiver Receiver;
CGame::CGame()
{
this->device = createDevice(video::EDT_OPENGL,dimension2d<s32>(1024,768),32,false,true,true,&Receiver);
this->driver = device->getVideoDriver();
this->smgr = device->getSceneManager();
this->guienv = device->getGUIEnvironment();
}
Code: Select all
CGame::CGame()
{
CEventReceiver Receiver;
this->device = createDevice(video::EDT_OPENGL,dimension2d<s32>(1024,768),32,false,true,true,&Receiver);
this->driver = device->getVideoDriver();
this->smgr = device->getSceneManager();
this->guienv = device->getGUIEnvironment();
}
How can I solve this?