wjbwsb
10-05-2010 02:37:01
Hi:
I'm new to use QuickGUI. When I run the program, I got a problem.
I add the code below to the example of Ogre:
And copy qgui.core.zip to the \media\packs
add Zip=../../media/packs/qgui.core.zip to resources.cfg
when I run the program , I got an exception:
Did I miss anything?
I'm new to use QuickGUI. When I run the program, I got a problem.
I add the code below to the example of Ogre:
void createScene(void)
{
mSceneMgr->setAmbientLight(ColourValue(0.25, 0.25, 0.25));
// add the ninja
Entity *ent = mSceneMgr->createEntity("Ninja", "ninja.mesh");
SceneNode *node = mSceneMgr->getRootSceneNode()->createChildSceneNode("NinjaNode");
node->attachObject(ent);
// create the light
Light *light = mSceneMgr->createLight("Light1");
light->setType(Light::LT_POINT);
light->setPosition(Vector3(250, 150, 250));
light->setDiffuseColour(ColourValue::White);
light->setSpecularColour(ColourValue::White);
// Create the scene node
node = mSceneMgr->getRootSceneNode()->createChildSceneNode("CamNode1", Vector3(-400, 200, 400));
node->yaw(Degree(-45));
node->attachObject(mCamera);
// create the second camera node/pitch node
node = mSceneMgr->getRootSceneNode()->createChildSceneNode("CamNode2", Vector3(0, 200, 400));
//QuickGUI
QuickGUI::registerScriptReader();
new QuickGUI::Root();
QuickGUI::SkinTypeManager::getSingleton().loadTypes();
QuickGUI::GUIManagerDesc d;
d.sceneManager = mSceneMgr ;
d.viewport = mCamera->getViewport();
d.queueID = Ogre::RENDER_QUEUE_OVERLAY;
QuickGUI::GUIManager* mGUIManager = QuickGUI::Root::getSingletonPtr()->createGUIManager(d);
QuickGUI::SheetDesc* sd = QuickGUI::DescManager::getSingleton().getDefaultSheetDesc();
sd->resetToDefault();
sd->widget_dimensions.size = QuickGUI::Size(800,600);
QuickGUI::Sheet* mySheet = QuickGUI::SheetManager::getSingleton().createSheet(sd);
mGUIManager->setActiveSheet(mySheet);
}
And copy qgui.core.zip to the \media\packs
add Zip=../../media/packs/qgui.core.zip to resources.cfg
when I run the program , I got an exception:
SkinType does not exit for class "MouseCursor" and type "default"! in SkinTypeManager::getSkinType
Did I miss anything?