aboutsummaryrefslogtreecommitdiff
path: root/BuddhaTest/include/Helpers.h
diff options
context:
space:
mode:
authorAndreas Grois <andi@grois.info>2018-03-10 00:14:46 +0100
committerAndreas Grois <andi@grois.info>2018-03-10 00:14:46 +0100
commit48d275a01baaff68a0c055dd77664b5d0f22d70d (patch)
tree93ebda133ea0ede266151b18772da6ca995607dd /BuddhaTest/include/Helpers.h
parentd9d395f85ec1ab1c8959118300d6e8be56d090e6 (diff)
Dump result to image.png in current folder.
Diffstat (limited to 'BuddhaTest/include/Helpers.h')
-rw-r--r--BuddhaTest/include/Helpers.h5
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);
+}