예제 #1
0
	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;
	}
예제 #2
0
파일: mx.cpp 프로젝트: SeventhMage/MagicX
	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;
	}