Skip to content

Instantly share code, notes, and snippets.

@Syzygy2048
Created January 6, 2018 19:45
Show Gist options
  • Save Syzygy2048/58a2dd9628ae8ba4c8fba67d5af62f0b to your computer and use it in GitHub Desktop.
Save Syzygy2048/58a2dd9628ae8ba4c8fba67d5af62f0b to your computer and use it in GitHub Desktop.
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