IDevice * CDriver::CreateDevice(uint uWidth, uint uHeight, bool bFullScreen /* = false */, RendererType renderType /* = RT_OPENGL */) { IDevice *device = CDeviceManager::Instance()->CreateDevice(uWidth, uHeight, bFullScreen); IDeviceDriver *deviceDriver = new driver::CMXRenderDriver(renderType); device->SetupDriver(deviceDriver); return device; }
IDevice * CreateDevice(uint uPosX, uint uPosY, uint uWidth, uint uHeight, bool bFullScreen /*= false*/) { IDevice *device = NULL; #ifdef WIN32 device = new CWin32Device(uPosX, uPosY, uWidth, uHeight, bFullScreen); #endif render::IRenderDriver *renderDriver = new render::COpenGLDriver(); device->SetupDriver(renderDriver); return device; }