aboutsummaryrefslogtreecommitdiff
path: root/BuddhaTest/include/Helpers.h
diff options
context:
space:
mode:
authorAndreas Grois <andi@grois.info>2018-03-10 20:34:35 +0100
committerAndreas Grois <andi@grois.info>2018-03-10 20:34:35 +0100
commit2759a3f45b5cd095bb79eff77b35978c8f8069c6 (patch)
tree4d0ded492e5de077fdad86f52729c1f9da556d86 /BuddhaTest/include/Helpers.h
parent5127d05dfdc877b0fc06e6ec228cfef09b98539a (diff)
Prepare install script, and make shader loading work from PREFIX/share/...
Diffstat (limited to 'BuddhaTest/include/Helpers.h')
-rw-r--r--BuddhaTest/include/Helpers.h10
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;