All pastes #287460 Raw Edit

Unnamed

public cpp v1 · immutable
#287460 ·published 2006-12-21 14:15 UTC
rendered paste body
//ceguimeshviewer::MeshViewerApp.cpp	if (mOgreRoot->showConfigDialog()) 	{	#ifdef USE_WXWINDOW		LogManager::getSingleton().logMessage("--- init wx ---");		Ogre::NameValuePairList params;		Ogre::String handle;		wxFrame* mFrameWindow = new wxFrame((wxFrame *) NULL, wxID_ANY, 											"OGRE Mesh Viewer", wxPoint(100, 100), wxSize(640, 400));		#ifdef __WXMSW__			handle = Ogre::StringConverter::toString((size_t)((HWND)mFrameWindow->GetHWND()));			//wxWindowMSW::Get		#elif defined(__WXGTK__)			//TODO			//http://www.ogre3d.org/phpBB2/viewtopic.php?p=190748		#else			#error Not supported on this platform.		#endif		params["externalWindowHandle"] = handle;		// Get wx control window size		int width; int height;		mFrameWindow->GetSize(&width, &height);		// Create the render window		LogManager::getSingleton().logMessage(			"windowHandle: " + handle +			" width: " + StringConverter::toString(width) +			" height: " + StringConverter::toString(height) 			);		mWindow = mOgreRoot->createRenderWindow(			"OGRE Mesh Viewer", 			width, height, false, &params);	#else		mWindow = mOgreRoot->initialise(true, "OGRE Mesh Viewer");	#endif	}