diff options
author | Andreas Grois <andi@grois.info> | 2018-03-10 15:43:36 +0100 |
---|---|---|
committer | Andreas Grois <andi@grois.info> | 2018-03-10 15:43:36 +0100 |
commit | 704ecb6bbabe4a73c45bb6ae2433754bb8260bde (patch) | |
tree | eb0f4a46c4cca4ff3a77ad387a8b1e28e4f4a4ff /BuddhaTest/include/Helpers.h | |
parent | a0afe4bf8c011222b85c481ae209b09f75189858 (diff) |
Gamma correction for output
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 a4bf15d..e4b7ffd 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);
+ void WriteOutputPNG(const std::vector<uint32_t>& data, unsigned int width, unsigned int bufferHeight, double gamma);
/** 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
|