Ignore:
Timestamp:
07/10/08 11:02:46 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r2826 r2828  
    66#include <iostream> 
    77#include <fstream> 
     8#include <map> 
    89 
    910#include "common.h" 
     
    2324        */ 
    2425        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 
     32protected: 
     33 
     34        /** Parse this string, return tokens separated by given delimiters 
    2635        */ 
    27         void Init(); 
     36        void Tokenize(const std::string& str, std::vector<std::string> &tokens, const std::string &delim = " ") const; 
    2837 
    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; 
    4939}; 
    5040 
Note: See TracChangeset for help on using the changeset viewer.