Ignore:
Timestamp:
12/04/08 02:36:19 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/WalkThroughRecorder.h

    r3173 r3210  
    33 
    44#include "common.h" 
    5  
     5#include <fstream> 
    66 
    77namespace CHCDemoEngine 
    88{ 
    99 
    10 /** Records / replays given walkthrough 
     10class Camera; 
     11 
     12 
     13/** Records given walkthrough 
    1114*/ 
    1215class WalkThroughRecorder 
    1316{ 
    1417public: 
    15         WalkThroughRecorder(); 
     18        /** Writes walkthrough frames to file. 
     19        */ 
     20        WalkThroughRecorder(const std::string &filename); 
     21        /** Writes current camera data. 
     22        */ 
     23        void WriteFrame(Camera *cam); 
     24        /** Reads next frame 
     25        */ 
     26        void ReadNextFrame(Camera *cam); 
     27 
     28protected: 
     29 
     30        std::ofstream mFile; 
    1631}; 
     32 
     33/** Replays a given walkthrough 
     34*/ 
     35class WalkThroughPlayer 
     36{ 
     37public: 
     38        /** Writes walkthrough frames to file. 
     39        */ 
     40        WalkThroughPlayer(const std::string &filename); 
     41        /** Reads next frame 
     42        */ 
     43        void ReadNextFrame(Camera *cam); 
     44 
     45protected: 
     46 
     47        std::ifstream mFile; 
     48}; 
     49 
    1750 
    1851} 
Note: See TracChangeset for help on using the changeset viewer.