I'm new to Irrlicht and have some questions...
The first is: Why when I make so:
Code: Select all
EventReceiver* ev_rec = new EventReceiver;
IrrlichtDevice* device = createDevice(video::EDT_DIRECT3D9,
dimension2d<s32>(640, 480), false, false, false, ev_rec);
Code: Select all
warning C4800: 'EventReceiver *' : forcing value to bool 'true' or 'false' (performance warning)
And when I do so :
device->setEventReceiver(ev_rec);
, then all is ok.
And my second problem is when I load a simple cube (e.q.) and make an event when I click on it. It's all ok, clicking works fine, but I've observed, that there are some points on the screen, when I click on one of them, my event reacts to it...but it shouldn't...
I use Blender 2.42 and DirectXExporter 1.41 to convert to the .X file. Does any-one had a problem like this, or I just make something wrong?