TheCherno / Sparky

Cross-Platform High Performance 2D/3D game engine for people like me who like to write code.
Apache License 2.0
1.1k stars 221 forks source link

Raw string literals should be used #44

Closed LPeter1997 closed 8 years ago

LPeter1997 commented 9 years ago

In C++11 we have raw string literals, I think it would be better to use them in shader factory. You don't need to put quotes and the newline character at every line. Example: const char * mystr = R"ESCAPE_SEQUENCE( This string has every newline and spacing in it. )ESCAPE_SEQUENCE";

Note, that an escape sequence is not required, this is also just fine: R"( ... )";

TheCherno commented 8 years ago

Obsolete (fixed).