From b09684567e6029211cbbe06e93209989bb5fc804 Mon Sep 17 00:00:00 2001 From: Thomas Dinges Date: Fri, 14 Feb 2014 01:15:07 +0100 Subject: Cycles Standalone: The camera can now be moved and rotated with LMB/RMB mouse key. ToDo: Add controls for forward/backward movement. --- intern/cycles/util/util_view.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'intern/cycles/util/util_view.h') diff --git a/intern/cycles/util/util_view.h b/intern/cycles/util/util_view.h index a0d0d492790..65d890eb6af 100644 --- a/intern/cycles/util/util_view.h +++ b/intern/cycles/util/util_view.h @@ -27,11 +27,12 @@ typedef void (*ViewExitFunc)(void); typedef void (*ViewResizeFunc)(int width, int height); typedef void (*ViewDisplayFunc)(void); typedef void (*ViewKeyboardFunc)(unsigned char key); +typedef void (*ViewMotionFunc)(int x, int y, int button); void view_main_loop(const char *title, int width, int height, ViewInitFunc initf, ViewExitFunc exitf, ViewResizeFunc resize, ViewDisplayFunc display, - ViewKeyboardFunc keyboard); + ViewKeyboardFunc keyboard, ViewMotionFunc motion); void view_display_info(const char *info); void view_display_help(); -- cgit v1.2.3