Code: Select all
device->getCursorControl()->setVisible(false);
Code: Select all
//Load image for cursor
video::ITexture* cursorimage = driver->getTexture("../../media/irrlichtlogoaligned.jpg");
driver->makeColorKeyTexture(cursorimage, core::position2d<s32>(0,0));
....
//do rest of loading
.....
//attach cursorimage to mouse cursor position
core::position2d<s32> m = device->getCursorControl()->getPosition();
driver->draw2DImage(img, core::position2d<s32>(m.X,m.Y),rect<s32>(m.X-100,m.Y-100,m.X+100,m.Y+100));
driver->endScene();
See the following images, sorry about the size..
and me moving the cursor to new location
Hopefully it makes sense