primary rays without jitter
[cyberay] / src / rt.h
index 7f09375..de3853a 100644 (file)
--- a/src/rt.h
+++ b/src/rt.h
@@ -3,6 +3,7 @@
 
 #include <cgmath/cgmath.h>
 #include "image.h"
+#include "tpool.h"
 
 struct material {
        cgm_vec3 color;
@@ -12,4 +13,17 @@ struct material {
        struct image *tex_color;
 };
 
+struct framebuffer {
+       int width, height;
+       cgm_vec3 *pixels;
+};
+
+extern struct framebuffer fb;
+extern struct thread_pool *tpool;
+extern float view_xform[16];
+
+int fbsize(int width, int height);
+
+void render(void);
+
 #endif /* RT_H_ */