- Timestamp:
- 07/10/08 11:02:46 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Environment.h
r2826 r2828 6 6 #include <iostream> 7 7 #include <fstream> 8 #include <map> 8 9 9 10 #include "common.h" … … 23 24 */ 24 25 bool Read(const std::string &filename); 25 /** Initialises the environment file with default values. 26 27 bool GetFloatParam(std::string &str, float &val) const; 28 bool GetIntParam(std::string &str, int &val) const; 29 bool GetVectorParam(std::string &str, Vector3 &val) const; 30 bool GetBoolParam(std::string &str, bool &val) const; 31 32 protected: 33 34 /** Parse this string, return tokens separated by given delimiters 26 35 */ 27 void Init();36 void Tokenize(const std::string& str, std::vector<std::string> &tokens, const std::string &delim = " ") const; 28 37 29 30 ////////// 31 //-- members 32 33 int mAssumedVisibleFrames; 34 int mMaxBatchSize; 35 36 int mTrianglesPerVirtualLeaf; 37 38 /// these values get scaled with the frame rate 39 float mKeyForwardMotion; 40 float mKeyRotation; 41 42 int mWinWidth; 43 int mWinHeight; 44 45 Vector3 mPosition; 46 Vector3 mDirection; 47 48 bool mUseFullScreen; 38 std::map<std::string, std::string> mParams; 49 39 }; 50 40
Note: See TracChangeset
for help on using the changeset viewer.