Changeset 3210 for GTP/trunk/App/Demos/Vis
- Timestamp:
- 12/04/08 02:36:19 (16 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/FriendlyCulling/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/WalkThroughRecorder.cpp
r3173 r3210 1 1 #include "WalkThroughRecorder.h" 2 #include "Camera.h" 3 4 5 using namespace std; 2 6 3 7 … … 5 9 { 6 10 7 WalkThroughRecorder::WalkThroughRecorder( )11 WalkThroughRecorder::WalkThroughRecorder(const std::string &filename) 8 12 {} 9 13 10 14 15 void WalkThroughRecorder::WriteFrame(Camera *cam) 16 { 17 mFile << cam->GetDirection() << "" << cam->GetPosition() << endl; 11 18 } 19 20 21 WalkThroughPlayer::WalkThroughPlayer(const std::string &filename) 22 {} 23 24 25 void WalkThroughPlayer::ReadNextFrame(Camera *cam) 26 { 27 } 28 29 30 } -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/WalkThroughRecorder.h
r3173 r3210 3 3 4 4 #include "common.h" 5 5 #include <fstream> 6 6 7 7 namespace CHCDemoEngine 8 8 { 9 9 10 /** Records / replays given walkthrough 10 class Camera; 11 12 13 /** Records given walkthrough 11 14 */ 12 15 class WalkThroughRecorder 13 16 { 14 17 public: 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 28 protected: 29 30 std::ofstream mFile; 16 31 }; 32 33 /** Replays a given walkthrough 34 */ 35 class WalkThroughPlayer 36 { 37 public: 38 /** Writes walkthrough frames to file. 39 */ 40 WalkThroughPlayer(const std::string &filename); 41 /** Reads next frame 42 */ 43 void ReadNextFrame(Camera *cam); 44 45 protected: 46 47 std::ifstream mFile; 48 }; 49 17 50 18 51 } -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/deferred.cg
r3207 r3210 278 278 pixelValid = pixelNotValid; 279 279 } 280 else 281 if ( 280 else if ( 282 281 // check if changed from dynamic to not dynamic object 283 282 (oldDynamic && !newDynamic) || (!oldDynamic && newDynamic) ||
Note: See TracChangeset
for help on using the changeset viewer.