clray

annotate 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
rev   line source
nuclear@3 1 #ifndef RT_H_
nuclear@3 2 #define RT_H_
nuclear@3 3
nuclear@22 4 #include "scene.h"
nuclear@13 5
nuclear@47 6 enum {
nuclear@47 7 ROPT_ITER,
nuclear@47 8 ROPT_SHAD,
nuclear@47 9 ROPT_REFL,
nuclear@47 10
nuclear@47 11 NUM_RENDER_OPTIONS
nuclear@47 12 };
nuclear@47 13
nuclear@39 14 bool init_renderer(int xsz, int ysz, Scene *scn, unsigned int tex);
nuclear@3 15 void destroy_renderer();
nuclear@3 16 bool render();
nuclear@12 17 void set_xform(float *matrix, float *invtrans);
nuclear@12 18
nuclear@47 19 void set_render_option(int opt, bool val);
nuclear@47 20 void set_render_option(int opt, int val);
nuclear@47 21 void set_render_option(int opt, float val);
nuclear@47 22
nuclear@47 23 bool get_render_option_bool(int opt);
nuclear@47 24 int get_render_option_int(int opt);
nuclear@47 25 float get_render_option_float(int opt);
nuclear@47 26
nuclear@27 27 void dbg_render_gl(Scene *scn, bool show_tree = false, bool show_obj = true);
nuclear@3 28
nuclear@3 29 #endif /* RT_H_ */