Code: Select all
IrrlichtDevice *device0 = 0;
dimension2d<int> DesktopResolution;
dimension2d<int> getDesktopRes()
{
device0 = createDevice(EDT_NULL,dimension2d<s32>(100,100),false,false);
IVideoModeList *list = device0->getVideoModeList();
DesktopResolution = (list->getDesktopResolution());
device0->drop();
return DesktopResolution;
}
hope this helps
-BEN