I tested "driver-> draw2DImage" but neither works.
Code: Select all
video::ITexture* images = driver->getTexture("../../media/2ddemo.bmp");
scene::ISceneNode* image2d = smgr->addBillboardSceneNode(0,irr::core::dimension2d<f32>(50,50));
image2d->setMaterialTexture(0, driver->getTexture("../../media/particlewhite.bmp"));
image2d->setMaterialFlag(video::EMF_LIGHTING, false);
image2d->setMaterialType(video::EMT_TRANSPARENT_ADD_COLOR);
while(device->run() && driver)
{
driver->beginScene(true, true, video::SColor(255,120,102,136));
/* driver->draw2DImage(images, core::position2d<s32>(780,60), core::rect<s32>(10,10,300,200),0,
video::SColor(255,(time) % 255,255,255), true); */
image2d->setRotation(image2d->getRotation()+vector3df(0,0.1,-0.05));
smgr->drawAll();
driver->end();
}