erebus
diff liberebus/src/erebus.h @ 2:474a0244f57d
fixed specialization mistake
fixed line endings
added makefiles
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 28 Apr 2014 06:31:10 +0300 |
parents | 4abdce1361b9 |
children | e2d9bf168a41 |
line diff
1.1 --- a/liberebus/src/erebus.h Mon Apr 28 05:58:22 2014 +0300 1.2 +++ b/liberebus/src/erebus.h Mon Apr 28 06:31:10 2014 +0300 1.3 @@ -1,46 +1,46 @@ 1.4 -#ifndef LIBEREBUS_H_ 1.5 -#define LIBEREBUS_H_ 1.6 - 1.7 -struct erebus; 1.8 - 1.9 -enum erb_option { 1.10 - ERB_OPT_WIDTH, 1.11 - ERB_OPT_HEIGHT, 1.12 - ERB_OPT_MAX_ITER, 1.13 - ERB_OPT_NUM_THREADS, 1.14 - ERB_OPT_GAMMA, 1.15 - 1.16 - ERB_NUM_OPTIONS 1.17 -}; 1.18 - 1.19 -#ifdef __cplusplus 1.20 -extern "C" { 1.21 -#endif 1.22 - 1.23 -struct erebus *erb_init(void); 1.24 -void erb_destroy(struct erebus *ctx); 1.25 - 1.26 -void erb_setopti(struct erebus *ctx, enum erb_option opt, int val); 1.27 -void erb_setoptf(struct erebus *ctx, enum erb_option opt, float val); 1.28 -void erb_setoptfv(struct erebus *ctx, enum erb_option opt, float *vec); 1.29 - 1.30 -int erb_getopti(struct erebus *ctx, enum erb_option opt); 1.31 -float erb_getoptf(struct erebus *ctx, enum erb_option opt); 1.32 -float *erb_getoptfv(struct erebus *ctx, enum erb_option opt); 1.33 - 1.34 -float *erb_get_framebuffer(struct erebus *ctx); 1.35 - 1.36 -void erb_begin_frame(struct erebus *ctx, long ms); 1.37 -int erb_render(struct erebus *ctx, long timeout); 1.38 -int erb_render_rect(struct erebus *ctx, int x, int y, int width, int height, long timeout); 1.39 - 1.40 -int erb_get_progress(struct erebus *ctx); 1.41 - 1.42 -int erb_load_scene(struct erebus *ctx, const char *fname); 1.43 - 1.44 -#ifdef __cplusplus 1.45 -} 1.46 -#endif 1.47 - 1.48 - 1.49 -#endif /* LIBEREBUS_H_ */ 1.50 \ No newline at end of file 1.51 +#ifndef LIBEREBUS_H_ 1.52 +#define LIBEREBUS_H_ 1.53 + 1.54 +struct erebus; 1.55 + 1.56 +enum erb_option { 1.57 + ERB_OPT_WIDTH, 1.58 + ERB_OPT_HEIGHT, 1.59 + ERB_OPT_MAX_ITER, 1.60 + ERB_OPT_NUM_THREADS, 1.61 + ERB_OPT_GAMMA, 1.62 + 1.63 + ERB_NUM_OPTIONS 1.64 +}; 1.65 + 1.66 +#ifdef __cplusplus 1.67 +extern "C" { 1.68 +#endif 1.69 + 1.70 +struct erebus *erb_init(void); 1.71 +void erb_destroy(struct erebus *ctx); 1.72 + 1.73 +void erb_setopti(struct erebus *ctx, enum erb_option opt, int val); 1.74 +void erb_setoptf(struct erebus *ctx, enum erb_option opt, float val); 1.75 +void erb_setoptfv(struct erebus *ctx, enum erb_option opt, float *vec); 1.76 + 1.77 +int erb_getopti(struct erebus *ctx, enum erb_option opt); 1.78 +float erb_getoptf(struct erebus *ctx, enum erb_option opt); 1.79 +float *erb_getoptfv(struct erebus *ctx, enum erb_option opt); 1.80 + 1.81 +float *erb_get_framebuffer(struct erebus *ctx); 1.82 + 1.83 +void erb_begin_frame(struct erebus *ctx, long ms); 1.84 +int erb_render(struct erebus *ctx, long timeout); 1.85 +int erb_render_rect(struct erebus *ctx, int x, int y, int width, int height, long timeout); 1.86 + 1.87 +int erb_get_progress(struct erebus *ctx); 1.88 + 1.89 +int erb_load_scene(struct erebus *ctx, const char *fname); 1.90 + 1.91 +#ifdef __cplusplus 1.92 +} 1.93 +#endif 1.94 + 1.95 + 1.96 +#endif /* LIBEREBUS_H_ */