started implementing intersection functions and the main renderer data
[cyberay] / src / image.h
diff --git a/src/image.h b/src/image.h
new file mode 100644 (file)
index 0000000..47f6b61
--- /dev/null
@@ -0,0 +1,12 @@
+#ifndef IMAGE_H_
+#define IMAGE_H_
+
+struct image {
+       int width, height;
+       float *pixels;
+};
+
+int load_image(struct image *img, const char *fname);
+void destroy_image(struct image *img);
+
+#endif /* IMAGE_H_ */