crosshair:
Code: Select all
bill = smgr->addBillboardSceneNode(camera);
bill->setPosition(vector3df(0,0,2));
bill->setMaterialType(video::EMT_TRANSPARENT_ALPHA_CHANNEL );
bill->setMaterialFlag(video::EMF_LIGHTING, false);
bill->setSize(core::dimension2d<f32>(0.21f, 0.21f));
ITexture * texture = driver->getTexture((dir + "cross.bmp").c_str());
driver->makeColorKeyTexture(texture, SColor(255,0,0,0));
bill->setMaterialTexture(0, texture);
Code: Select all
node= smgr->addBillboardSceneNode(0,core::dimension2d<f32>(25,25), start);
node->setMaterialFlag(video::EMF_LIGHTING, false);
node->setMaterialTexture(0, device->getVideoDriver()->getTexture((dir + "fireball.bmp").c_str()));
node->setMaterialType(video::EMT_TRANSPARENT_ADD_COLOR);