distray
diff src/rend.h @ 0:cf494adee646
distance field raytracer
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 25 Dec 2015 05:41:10 +0200 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/rend.h Fri Dec 25 05:41:10 2015 +0200 1.3 @@ -0,0 +1,15 @@ 1.4 +#ifndef REND_H_ 1.5 +#define REND_H_ 1.6 + 1.7 +#include <vmath/vmath.h> 1.8 + 1.9 +void set_framebuffer(int width, int height, float *pixels); 1.10 +void set_distance_function(float (*dfunc)(float, float, float)); 1.11 +void set_camera_matrix(const Matrix4x4 &xform); 1.12 + 1.13 +void start_render(); 1.14 +void wait_render(); 1.15 + 1.16 +void render(); 1.17 + 1.18 +#endif // REND_H_