From d1cc4a53f5492d95c260a7871cc030c9b1b0a6e9 Mon Sep 17 00:00:00 2001 From: Andreas Grois Date: Sat, 10 Mar 2018 15:59:48 +0100 Subject: Add color scaling option (as 8 bit per channel is not really much) --- BuddhaTest/include/Helpers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'BuddhaTest/include') diff --git a/BuddhaTest/include/Helpers.h b/BuddhaTest/include/Helpers.h index e4b7ffd..a25aa31 100644 --- a/BuddhaTest/include/Helpers.h +++ b/BuddhaTest/include/Helpers.h @@ -9,7 +9,7 @@ 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); - void WriteOutputPNG(const std::vector& data, unsigned int width, unsigned int bufferHeight, double gamma); + void WriteOutputPNG(const std::vector& data, unsigned int width, unsigned int bufferHeight, double gamma, double colorScale); /** Wraps around a C file descriptor. Libpng could be taught to use C++ streams, but I'm too lazy and rather wrap this ugly thing up, so it gets cleaned... */ class ScopedCFileDescriptor -- cgit v1.2.3