Ignore:
Timestamp:
08/25/06 17:44:02 (18 years ago)
Author:
szydlowski
Message:

saving and loading entities to file

Location:
GTP/trunk/App/Demos/Vis/KdTreeDemo/OGRE/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/KdTreeDemo/OGRE/include/TestKdTree.h

    r1274 r1285  
    4646        } 
    4747 
     48        // save entities to ascii file 
     49        bool saveSceneASCII(const String& filename, SceneNode *entityroot); 
    4850protected: 
    4951        KdTreeAppListener *mFrameListener; 
     
    8486        bool loadScene(const String& filename); 
    8587        bool loadSceneIV(const String &filename, SceneNode *root, const int index); 
     88        // loadding world geometry from cfg file - for terrain 
     89        bool loadSceneCfg(const String &filename, SceneNode *root, const int index); 
     90        // load entities from ascii file 
     91        bool loadSceneASCII(const String &filename, SceneNode *root, const int index); 
     92 
     93        typedef std::list<SceneNode *> NodeList; 
     94        void addNodesToList(SceneNode* node, NodeList& list); 
    8695 
    8796        void createMaterials(void); 
  • GTP/trunk/App/Demos/Vis/KdTreeDemo/OGRE/include/TestKdTreeAppListener.h

    r1274 r1285  
    6666typedef std::list<FrameInfo> FrameList; 
    6767 
     68class KdTreeApp; 
     69 
    6870class KdTreeAppListener: public FrameListener, public KeyListener 
    6971{ 
     
    120122                mDemoMode(false), 
    121123                mEnhancedVisibility(false), 
    122                 mDemoInterval(1.0f) 
     124                mDemoInterval(1.0f), 
     125                myApp(0) 
    123126                { 
    124127 
     
    126129 
    127130                String mSceneFiles; 
     131                String mSceneOutfileName; 
    128132                String mDemoInfileName; 
    129133                String mDemoOutfileName; 
     
    142146                bool mEnhancedVisibility; 
    143147                Real mDemoInterval; 
     148                KdTreeApp *myApp; 
    144149        }; 
    145150 
Note: See TracChangeset for help on using the changeset viewer.