projects
/
cyberay
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
primary rays without jitter
[cyberay]
/
src
/
rt.h
diff --git
a/src/rt.h
b/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 <cgmath/cgmath.h>
#include "image.h"
+#include "tpool.h"
struct material {
cgm_vec3 color;
struct material {
cgm_vec3 color;
@@
-12,4
+13,17
@@
struct material {
struct image *tex_color;
};
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_ */
#endif /* RT_H_ */