refactor GLSLExtension.cpp & add 'param' shader preprocessor directive & add PostEffect class (WIP)
This commit is contained in:
@@ -8,7 +8,9 @@ class BasicParser {
|
||||
using StringT = std::basic_string<CharT>;
|
||||
using StringViewT = std::basic_string_view<CharT>;
|
||||
|
||||
void skipWhitespaceBasic(bool newline = true);
|
||||
void skipWhitespaceHashComment(bool newline = true);
|
||||
void skipWhitespaceCLikeComment(bool newline = true);
|
||||
protected:
|
||||
std::string_view filename;
|
||||
StringViewT source;
|
||||
@@ -16,6 +18,7 @@ protected:
|
||||
uint line = 1;
|
||||
uint linestart = 0;
|
||||
bool hashComment = false;
|
||||
bool clikeComment = false;
|
||||
|
||||
void skipWhitespace(bool newline = true);
|
||||
void skip(size_t n);
|
||||
@@ -35,7 +38,7 @@ protected:
|
||||
StringT parseString(CharT chr, bool closeRequired = true);
|
||||
|
||||
parsing_error error(const std::string& message);
|
||||
public:
|
||||
|
||||
StringViewT readUntil(CharT c);
|
||||
StringViewT readUntil(StringViewT s, bool nothrow);
|
||||
StringViewT readUntilWhitespace();
|
||||
|
||||
Reference in New Issue
Block a user