projects
/
retroray
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rubber band in platform-specific code
[retroray]
/
src
/
app.h
diff --git
a/src/app.h
b/src/app.h
index
acd6a71
..
b2a3b82
100644
(file)
--- a/
src/app.h
+++ b/
src/app.h
@@
-21,7
+21,6
@@
along with this program. If not, see <https://www.gnu.org/licenses/>.
#include "sizeint.h"
#include "logger.h"
#include "scene.h"
#include "sizeint.h"
#include "logger.h"
#include "scene.h"
-#include "font.h"
enum {
KEY_BACKSP = 8,
enum {
KEY_BACKSP = 8,
@@
-86,7
+85,7
@@
extern struct app_screen scr_model, scr_rend;
struct font;
extern struct font *uifont;
struct font;
extern struct font *uifont;
-extern uint32_t *framebuf;
+extern uint32_t *framebuf, *rendbuf;
extern struct scene *scn;
extern struct scene *scn;
@@
-107,11
+106,15
@@
void app_chscr(struct app_screen *scr);
/* defined in main.c */
long app_getmsec(void);
/* 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_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_ */
#endif /* APP_H_ */