Skip to content

Instantly share code, notes, and snippets.

@chchwy
Created February 6, 2017 12:41
Show Gist options
  • Save chchwy/57fb29b2466679741235ce1dd4a2208a to your computer and use it in GitHub Desktop.
Save chchwy/57fb29b2466679741235ce1dd4a2208a to your computer and use it in GitHub Desktop.
Ogre::Item *item = sceneManager->createItem("Sphere1000.mesh",
Ogre::ResourceGroupManager::AUTODETECT_RESOURCE_GROUP_NAME,
Ogre::SCENE_DYNAMIC );
Ogre::SceneNode* rootNode = sceneManager->getRootSceneNode( Ogre::SCENE_DYNAMIC )->createChildSceneNode( Ogre::SCENE_DYNAMIC );
rootNode->attachObject( item );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment