From 2759a3f45b5cd095bb79eff77b35978c8f8069c6 Mon Sep 17 00:00:00 2001 From: Andreas Grois Date: Sat, 10 Mar 2018 20:34:35 +0100 Subject: Prepare install script, and make shader loading work from PREFIX/share/... --- BuddhaTest/include/Helpers.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'BuddhaTest/include') 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& 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; -- cgit v1.2.3