Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Mar 14th, 2018 55 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. /*------------------------------------------------------------------------------
  2. *  DotScene.h
  3. *
  4. *  This file provides some methods for the parsing of a .scene file, with
  5. *  support for userData.
  6. *------------------------------------------------------------------------------*/
  7.  
  8. #ifndef DOT_SCENE_H
  9. #define DOT_SCENE_H
  10.  
  11. #include <Ogre.h>
  12. #include <vector>
  13. #include "tinyxml.h"
  14.  
  15. class nodeProperty
  16. {
  17. public:
  18.     Ogre::String nodeName;
  19.     Ogre::String propertyNm;
  20.     Ogre::String valueName;
  21.     Ogre::String typeName;
  22.  
  23.     nodeProperty(Ogre::String node,Ogre::String propertyName,Ogre::String value,Ogre::String type)
  24.     {
  25.         nodeName = node;
  26.         propertyNm = propertyName;
  27.         valueName = value;
  28.         typeName = type;
  29.     }
  30. };
  31.  
  32. class CDotScene
  33. {
  34. public:
  35.     CDotScene() : mSceneMgr(0) {}
  36.     virtual ~CDotScene() {}
  37.  
  38.     void parseDotScene( const Ogre::String &SceneName, const Ogre::String& groupName, Ogre::SceneManager *yourSceneMgr, Ogre::SceneNode *pAttachNode = NULL, Ogre::String sPrependNode = "");
  39.     Ogre::String getProperty(Ogre::String ndNm, Ogre::String prop);
  40.  
  41.     std::vector<nodeProperty> nodeProperties;
  42.  
  43. protected:
  44.     void processNode(TiXmlElement *XMLNode, Ogre::SceneNode *pAttach);
  45.     Ogre::SceneManager *mSceneMgr;
  46.     Ogre::String m_sPrependNode;
  47. };
  48.  
  49. #endif
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top