diff options
author | Andreas Grois <andi@grois.info> | 2018-03-10 00:14:46 +0100 |
---|---|---|
committer | Andreas Grois <andi@grois.info> | 2018-03-10 00:14:46 +0100 |
commit | 48d275a01baaff68a0c055dd77664b5d0f22d70d (patch) | |
tree | 93ebda133ea0ede266151b18772da6ca995607dd /BuddhaTest/include/Helpers.h | |
parent | d9d395f85ec1ab1c8959118300d6e8be56d090e6 (diff) |
Dump result to image.png in current folder.
Diffstat (limited to 'BuddhaTest/include/Helpers.h')
-rw-r--r-- | BuddhaTest/include/Helpers.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/BuddhaTest/include/Helpers.h b/BuddhaTest/include/Helpers.h index 05ad151..c24e2c7 100644 --- a/BuddhaTest/include/Helpers.h +++ b/BuddhaTest/include/Helpers.h @@ -1,9 +1,12 @@ #pragma once
#include <glad/glad.h>
#include <GLFW/glfw3.h>
+#include <vector>
namespace Helpers
{
GLuint LoadShaders(const char * vertex_file_path, const char * fragment_file_path);
GLuint LoadComputeShader(const char * compute_file_path);
-}
\ No newline at end of file +
+ void WriteOutputPNG(const std::vector<uint32_t>& data, unsigned int width, unsigned int height);
+}
|