#ifdef _MSC_VER
#pragma comment(lib, "Irrlicht.lib")
#endif
#include <irrlicht.h>
int main(int argc, char **argv)
{
irr::IrrlichtDevice *device = irr::createDevice(irr::video::E_DRIVER_TYPE::EDT_DIRECT3D9, irr::core::dimension2du(640,480), 32,false,false,false,0);
if(!device)
return EXIT_FAILURE;
irr::video::IVideoDriver *driver = device->getVideoDriver();
while(device->run())
{
driver->beginScene(true, true, irr::video::SColor(255,100,100,140));
driver->endScene();
}
device->drop();
return EXIT_SUCCESS;
}
|