Code: Select all
scene::IBillboardTextSceneNode* bb = mgr->addBillboardTextSceneNode(mgr->getGUIEnvironment()->getBuiltInFont(),
L"Test",0,core::dimension2d<f32>(64,64),core::vector3df(0.0,0.0,0.0),-1,video::SColor(255,255,255,255),video::SColor(255,255,255,255));
bb->setMaterialType(video::EMT_TRANSPARENT_ADD_COLOR);
bb->setMaterialFlag(video::EMF_LIGHTING, false);
bb->setMaterialTexture(1,texture); //texture is an already loaded tex