Code: Select all
IrrlichtDevice *device = createDevice(driverType,
core::dimension2d<u32>(640, 480), 16, false, false, false);
if (device == 0)
return 1;
video::IVideoDriver *driver = device->getVideoDriver();
scene::ISceneManager* smgr = device->getSceneManager();
const scene::IGeometryCreator *geo=smgr->getGeometryCreator();
scene::IMesh *mC=geo->createCylinderMesh(100.0,500.0,0,video::SColor(0,255,255,50),true,0.000);
mC->setMaterialFlag(video::EMF_LIGHTING,false);
scene::ICameraSceneNode* camera=smgr->addCameraSceneNode(0,core::vector3df(0,0,5),core::vector3df(0,0,0),-1,true);