X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Frt.h;h=de3853a9e9855514d5e72dab0f1d265c7701d56d;hb=a886acd491daf3faa62d45bf5503eb2c5313f335;hp=7f0937532362c6271b85aa7ecd20a114b5bb578c;hpb=d2f1a6ab443b86a42e9fd28a19ebdbcf729a5d51;p=cyberay diff --git a/src/rt.h b/src/rt.h index 7f09375..de3853a 100644 --- a/src/rt.h +++ b/src/rt.h @@ -3,6 +3,7 @@ #include #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_ */