summaryrefslogtreecommitdiff
path: root/bmp.h
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2013-08-01 23:01:53 +0200
committerKevin Chabowski <kevin@kch42.de>2013-08-01 23:01:53 +0200
commit96919bf34222c0c3f37e1085342b81c63da386c8 (patch)
treea4e37d4a267dea3a8f2dee077533bc3fd6d8d222 /bmp.h
parent8e128e5afd495c46ab54eaff2c602e420eb59c0d (diff)
downloadnebula2-96919bf34222c0c3f37e1085342b81c63da386c8.tar.gz
nebula2-96919bf34222c0c3f37e1085342b81c63da386c8.tar.bz2
nebula2-96919bf34222c0c3f37e1085342b81c63da386c8.zip
Moved BMP code to own file.
Diffstat (limited to 'bmp.h')
-rw-r--r--bmp.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/bmp.h b/bmp.h
new file mode 100644
index 0000000..e9b2821
--- /dev/null
+++ b/bmp.h
@@ -0,0 +1,12 @@
+#ifndef _nebula2_bmp_h_
+#define _nebula2_bmp_h_
+
+#include <stdio.h>
+#include <stdint.h>
+
+#include "color.h"
+
+extern int bmp_write_header(FILE* fh, int32_t width, int32_t height);
+extern int bmp_write_pixel(FILE* fh, color_t col);
+
+#endif \ No newline at end of file