light beam strength based on number of active lights, \r recognition in the parser, proper (lack) of depth test for the UI

This commit is contained in:
tmj-fstate
2017-02-13 19:28:04 +01:00
parent 6683738077
commit 83284e4bcc
2 changed files with 42 additions and 17 deletions

View File

@@ -77,7 +77,7 @@ class cParser //: public std::stringstream
{
return !mStream->fail();
};
bool getTokens(int Count = 1, bool ToLower = true, const char *Break = "\n\t ;");
bool getTokens(int Count = 1, bool ToLower = true, const char *Break = "\n\r\t ;");
// returns percentage of file processed so far
int getProgress() const;
// add custom definition of text which should be ignored when retrieving tokens
@@ -85,9 +85,9 @@ class cParser //: public std::stringstream
private:
// methods:
std::string readToken(bool ToLower = true, const char *Break = "\n\t ;");
std::string readToken(bool ToLower = true, const char *Break = "\n\r\t ;");
std::string readQuotes( char const Quote = '\"' );
std::string readComment( std::string const &Break = "\n\t ;" );
std::string readComment( std::string const &Break = "\n\r\t ;" );
// std::string trtest;
bool findQuotes( std::string &String );
bool trimComments( std::string &String );