source: GTP/trunk/App/Demos/Vis/FriendlyCulling/src/StatsWriter.cpp @ 3221

Revision 3221, 395 bytes checked in by mattausch, 16 years ago (diff)

added some statistics stuff, but ssao slower than before (probably because made ssao width and intensity variable and not hardcoded anymore) from >180 frames to < 130 frames!!!

Line 
1#include "StatsWriter.h"
2#include "Camera.h"
3#include "Vector3.h"
4#include <sstream>
5
6using namespace std;
7
8
9namespace CHCDemoEngine
10{
11
12
13StatsWriter::StatsWriter(const std::string &filename):
14mFile(filename.c_str())
15{
16}
17
18
19StatsWriter::~StatsWriter()
20{
21        mFile.close();
22}
23
24
25void StatsWriter::WriteFrameStats(const FrameStats &stats)
26{
27        mFile << stats << endl;
28}
29
30
31
32}
Note: See TracBrowser for help on using the repository browser.