diff options
author | Andreas Grois <andi@grois.info> | 2018-03-10 15:59:48 +0100 |
---|---|---|
committer | Andreas Grois <andi@grois.info> | 2018-03-10 15:59:48 +0100 |
commit | d1cc4a53f5492d95c260a7871cc030c9b1b0a6e9 (patch) | |
tree | b0cb3cfa01d004b5c8ad5c26ef2af1c5930d9b8d /BuddhaTest/include/Helpers.h | |
parent | 704ecb6bbabe4a73c45bb6ae2433754bb8260bde (diff) |
Add color scaling option (as 8 bit per channel is not really much)
Diffstat (limited to 'BuddhaTest/include/Helpers.h')
-rw-r--r-- | BuddhaTest/include/Helpers.h | 2 |
1 files changed, 1 insertions, 1 deletions
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<uint32_t>& data, unsigned int width, unsigned int bufferHeight, double gamma);
+ void WriteOutputPNG(const std::vector<uint32_t>& 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
|