erebus

annotate liberebus/src/erebus.h @ 5:9621beb22694

huh?
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 24 May 2014 02:20:44 +0300
parents 4abdce1361b9
children e2d9bf168a41
rev   line source
nuclear@2 1 #ifndef LIBEREBUS_H_
nuclear@2 2 #define LIBEREBUS_H_
nuclear@2 3
nuclear@2 4 struct erebus;
nuclear@2 5
nuclear@2 6 enum erb_option {
nuclear@2 7 ERB_OPT_WIDTH,
nuclear@2 8 ERB_OPT_HEIGHT,
nuclear@2 9 ERB_OPT_MAX_ITER,
nuclear@2 10 ERB_OPT_NUM_THREADS,
nuclear@2 11 ERB_OPT_GAMMA,
nuclear@2 12
nuclear@2 13 ERB_NUM_OPTIONS
nuclear@2 14 };
nuclear@2 15
nuclear@2 16 #ifdef __cplusplus
nuclear@2 17 extern "C" {
nuclear@2 18 #endif
nuclear@2 19
nuclear@2 20 struct erebus *erb_init(void);
nuclear@2 21 void erb_destroy(struct erebus *ctx);
nuclear@2 22
nuclear@2 23 void erb_setopti(struct erebus *ctx, enum erb_option opt, int val);
nuclear@2 24 void erb_setoptf(struct erebus *ctx, enum erb_option opt, float val);
nuclear@2 25 void erb_setoptfv(struct erebus *ctx, enum erb_option opt, float *vec);
nuclear@2 26
nuclear@2 27 int erb_getopti(struct erebus *ctx, enum erb_option opt);
nuclear@2 28 float erb_getoptf(struct erebus *ctx, enum erb_option opt);
nuclear@2 29 float *erb_getoptfv(struct erebus *ctx, enum erb_option opt);
nuclear@2 30
nuclear@2 31 float *erb_get_framebuffer(struct erebus *ctx);
nuclear@2 32
nuclear@2 33 void erb_begin_frame(struct erebus *ctx, long ms);
nuclear@2 34 int erb_render(struct erebus *ctx, long timeout);
nuclear@2 35 int erb_render_rect(struct erebus *ctx, int x, int y, int width, int height, long timeout);
nuclear@2 36
nuclear@2 37 int erb_get_progress(struct erebus *ctx);
nuclear@2 38
nuclear@2 39 int erb_load_scene(struct erebus *ctx, const char *fname);
nuclear@2 40
nuclear@2 41 #ifdef __cplusplus
nuclear@2 42 }
nuclear@2 43 #endif
nuclear@2 44
nuclear@2 45
nuclear@2 46 #endif /* LIBEREBUS_H_ */