distray

view 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 source
1 #ifndef REND_H_
2 #define REND_H_
4 #include <vmath/vmath.h>
6 void set_framebuffer(int width, int height, float *pixels);
7 void set_distance_function(float (*dfunc)(float, float, float));
8 void set_camera_matrix(const Matrix4x4 &xform);
10 void start_render();
11 void wait_render();
13 void render();
15 #endif // REND_H_