projects
/
cyberay
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
foo
[cyberay]
/
src
/
rt.h
diff --git
a/src/rt.h
b/src/rt.h
index
7f09375
..
b06fd64
100644
(file)
--- a/
src/rt.h
+++ b/
src/rt.h
@@
-12,4
+12,15
@@
struct material {
struct image *tex_color;
};
+struct framebuffer {
+ int width, height;
+ cgm_vec3 *pixels;
+};
+
+extern struct framebuffer fb;
+
+int fbsize(int width, int height);
+
+void render(void);
+
#endif /* RT_H_ */