Created
January 6, 2018 19:45
-
-
Save Syzygy2048/58a2dd9628ae8ba4c8fba67d5af62f0b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
std::string shaderCode = ""; | |
std::ifstream codeStream(shaderPath, std::ios::in); | |
if (codeStream.is_open()) | |
{ | |
std::string line = ""; | |
while (getline(codeStream, line)) | |
shaderCode += "\n" + line; | |
codeStream.close(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment