void MainGui::loadMenu() { layout = CEGUI::WindowManager::getSingleton().loadWindowLayout(layoutFileName); name = layout->getName(); wMgrPtr->getWindow("root")->addChildWindow(layout); mapaMenus[name]=this; historia->loadMenu(); mapaMenus[historia->getName()]=historia; opciones->loadMenu(); mapaMenus[opciones->getName()]=opciones; creditos->loadMenu(); mapaMenus[creditos->getName()]=creditos; RegisterForSpecificEvents(); createAnimations(); RegisterForEvents(); }
void Menu::loadMenu() { layout = CEGUI::WindowManager::getSingleton().loadWindowLayout(layoutFileName); name = layout->getName(); wMgrPtr->getWindow("root")->addChildWindow(layout); layout->hide(); createAnimations(); RegisterForEvents(); }
// ******* // * QYCBCRLabView // ******* YCbCrLabView::YCbCrLabView(QWidget *parent) : QWidget(parent), m_pGraphicsView(NULL), m_pGraphicsViewOverlay(NULL), m_pGraphicsScene(NULL), m_pGraphicsSceneOverlay(NULL) { createObjects(); createActions(); initObjects(); createAnimations(); }
/* Main method: */ int main(int argc, char **argv) { handleCommandLineArguments(argc, argv); // OSG init OSG::osgInit(argc,argv); // GLUT init int winid = setupGLUT(&argc, argv); initGlobals(); { OSG::GLUTWindowUnrecPtr gwin= OSG::GLUTWindow::create(); gwin->setGlutId(winid); gwin->init(); OSG::NodeUnrecPtr scene = createScene(gwin); createAnimations(); OSG::commitChanges(); // Create the SimpleSceneManager helper G.mgr = OSG::SimpleSceneManager::create(); G.mgr->setUseTraversalAction(true); // Tell the manager what to manage: G.mgr->setWindow(gwin ); G.mgr->setRoot (scene); // Create a background: OSG::GradientBackgroundUnrecPtr bg = OSG::GradientBackground::create(); bg->addLine(OSG::Color3f(0.9f, 0.9f, 1.0f), 0); bg->addLine(OSG::Color3f(0.0f, 0.3f, 0.9f), 1); G.mgr->setBackground(bg); // Set the eye position: OSG::Pnt3f from(18,18,18); OSG::Pnt3f at (0,0,0); OSG::Vec3f up (0,1,0); setEyePositionHelper(from, at, up); } // GLUT main loop glutMainLoop(); return 0; }
//----------------------------------------------------------------------------- const AxisAlignedBox& XsiSkeletonExporter::exportSkeleton(const String& skeletonFileName, DeformerMap& deformers, float framesPerSecond, AnimationList& animList) { LogOgreAndXSI(L"** Begin OGRE Skeleton Export **"); copyDeformerMap(deformers); SkeletonPtr skeleton = SkeletonManager::getSingleton().create("export", ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME); // construct the hierarchy buildBoneHierarchy(skeleton.get(), deformers, animList); // progress report ProgressManager::getSingleton().progress(); establishInitialTransforms(deformers); // create animations mAABB.setNull(); createAnimations(skeleton.get(), deformers, framesPerSecond, animList, mAABB); // progress report ProgressManager::getSingleton().progress(); // Optimise skeleton->optimiseAllAnimations(); SkeletonSerializer ser; ser.exportSkeleton(skeleton.get(), skeletonFileName); // progress report ProgressManager::getSingleton().progress(); LogOgreAndXSI(L"** OGRE Skeleton Export Complete **"); cleanup(); return mAABB; }