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

saving and loading entities to file

File:
1 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); 
Note: See TracChangeset for help on using the changeset viewer.