Code cleanup

This commit is contained in:
Sascha Willems 2020-04-20 21:39:30 +02:00
parent 458c149c71
commit 4b9f10d644

View file

@ -294,23 +294,6 @@ namespace vks
exitFatal(message, (int32_t)resultCode); exitFatal(message, (int32_t)resultCode);
} }
std::string readTextFile(const char *fileName)
{
std::string fileContent;
std::ifstream fileStream(fileName, std::ios::in);
if (!fileStream.is_open()) {
printf("File %s not found\n", fileName);
return "";
}
std::string line = "";
while (!fileStream.eof()) {
getline(fileStream, line);
fileContent.append(line + "\n");
}
fileStream.close();
return fileContent;
}
#if defined(__ANDROID__) #if defined(__ANDROID__)
// Android shaders are stored as assets in the apk // Android shaders are stored as assets in the apk
// So they need to be loaded via the asset manager // So they need to be loaded via the asset manager