clray

view src/rt.h @ 56:e3b4457dc4d2

added glFinish after swap-buffers to make the program absolutely correct in regards to mediating usage of the shared GL/CL texture image
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 06 Sep 2010 05:40:47 +0100
parents 980bc07be868
children 6a30f27fa1e6
line source
1 #ifndef RT_H_
2 #define RT_H_
4 #include "scene.h"
6 enum {
7 ROPT_ITER,
8 ROPT_SHAD,
9 ROPT_REFL,
11 NUM_RENDER_OPTIONS
12 };
14 bool init_renderer(int xsz, int ysz, Scene *scn, unsigned int tex);
15 void destroy_renderer();
16 bool render();
17 void set_xform(float *matrix, float *invtrans);
19 void set_render_option(int opt, bool val);
20 void set_render_option(int opt, int val);
21 void set_render_option(int opt, float val);
23 bool get_render_option_bool(int opt);
24 int get_render_option_int(int opt);
25 float get_render_option_float(int opt);
27 void dbg_render_gl(Scene *scn, bool show_tree = false, bool show_obj = true);
29 #endif /* RT_H_ */