X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fapp.h;h=4cc9b3a11bb257898b9e369e34b6f418cb713254;hb=HEAD;hp=acd6a71e1a37cb9629bd2342b9826069c17619a4;hpb=7ef52b31864696747396945b2ca8892d8796f96c;p=retroray diff --git a/src/app.h b/src/app.h index acd6a71..4cc9b3a 100644 --- a/src/app.h +++ b/src/app.h @@ -21,7 +21,8 @@ along with this program. If not, see . #include "sizeint.h" #include "logger.h" #include "scene.h" -#include "font.h" + +#define CFGFILE "retroray.cfg" enum { KEY_BACKSP = 8, @@ -86,7 +87,7 @@ extern struct app_screen scr_model, scr_rend; struct font; extern struct font *uifont; -extern uint32_t *framebuf; +extern uint32_t *framebuf, *rendbuf; extern struct scene *scn; @@ -106,12 +107,15 @@ void app_sball_button(int bn, int st); void app_chscr(struct app_screen *scr); /* defined in main.c */ -long app_getmsec(void); -void app_redisplay(void); +void app_redisplay(int x, int y, int w, int h); void app_swap_buffers(void); void app_quit(void); void app_resize(int x, int y); void app_fullscreen(int fs); void app_vsync(int vsync); +void app_rband(int x, int y, int w, int h); + +/* defined in scr_mod.c for convenience */ +void primray(cgm_ray *ray, int x, int y); #endif /* APP_H_ */