diff options
Diffstat (limited to 'BuddhaTest/include')
-rw-r--r-- | BuddhaTest/include/Helpers.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/BuddhaTest/include/Helpers.h b/BuddhaTest/include/Helpers.h index 61bd7a0..76a9a57 100644 --- a/BuddhaTest/include/Helpers.h +++ b/BuddhaTest/include/Helpers.h @@ -7,8 +7,10 @@ namespace Helpers
{
- GLuint LoadShaders(const char * vertex_file_path, const char * fragment_file_path);
- GLuint LoadComputeShader(const char * compute_file_path, unsigned int localSizeX, unsigned int localSizeY, unsigned int localSizeZ);
+ GLuint LoadShaders(const std::string &vertex_file_path, const std::string &fragment_file_path);
+ GLuint LoadComputeShader(const std::string &compute_file_path, unsigned int localSizeX, unsigned int localSizeY, unsigned int localSizeZ);
+
+ bool DoesFileExist(const std::string& path);
void WriteOutputPNG(const std::string& path, const std::vector<uint32_t>& data, unsigned int width, unsigned int bufferHeight, double gamma, double colorScale);
@@ -26,8 +28,8 @@ namespace Helpers struct RenderSettings
{
- unsigned int imageWidth = 1920;
- unsigned int imageHeight = 1080;
+ unsigned int imageWidth = 1024;
+ unsigned int imageHeight = 576;
unsigned int windowWidth = 1024;
unsigned int windowHeight = 576;
|