projects
/
cyberay
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
+++ b/
src/image.h
@@ -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_ */