Ton Roosendaal
2fe5005bbb
2.5
...
New: Custom region draw callbacks.
For Martin: an example is now in space_view3d/view3d_edit.c
On middlemouse rotate view, it draws a small square in center.
It works likes this:
#include "ED_space_api.h"
handle= ED_region_draw_cb_activate(region->type, drawfunc, type)
and to stop it:
ED_region_draw_cb_exit(region->type, handle)
drawfunc is of type (const bContext *C, ARegion *ar)
currently it gets called only as type REGION_DRAW_POST, later we
can add more (PRE, POST_XRAY, POST_2D, etc).
For correct usage, these calls should return leaving view transform
unaltered.
2009-01-09 15:04:52 +00:00
..
2009-01-09 15:04:52 +00:00
2009-01-04 14:14:06 +00:00
2008-04-16 22:40:48 +00:00
2009-01-05 15:19:31 +00:00
2008-12-30 13:16:14 +00:00
2008-12-31 17:11:42 +00:00
2008-07-18 23:35:34 +00:00
2008-04-16 22:40:48 +00:00
2008-04-16 22:40:48 +00:00
2008-04-16 22:40:48 +00:00
2009-01-07 17:25:17 +00:00
2009-01-07 04:38:30 +00:00
2008-09-27 21:52:20 +00:00
2008-09-16 15:41:13 +00:00
2006-11-20 04:28:02 +00:00
2009-01-04 14:14:06 +00:00
2009-01-04 14:14:06 +00:00
2008-09-19 14:15:36 +00:00
2009-01-04 14:14:06 +00:00
2009-01-02 23:58:03 +00:00
2009-01-04 14:14:06 +00:00
2009-01-07 14:46:50 +00:00
2008-08-30 14:32:16 +00:00
2008-04-16 22:40:48 +00:00
2009-01-07 14:46:50 +00:00
2009-01-04 14:14:06 +00:00
2009-01-04 14:14:06 +00:00
2008-08-30 14:32:16 +00:00
2009-01-04 14:14:06 +00:00
2009-01-04 14:14:06 +00:00
2009-01-04 14:14:06 +00:00
2009-01-04 18:16:34 +00:00
2009-01-04 14:14:06 +00:00
2007-09-02 17:25:03 +00:00
2008-12-31 13:16:37 +00:00
2009-01-04 18:16:34 +00:00
2009-01-04 14:14:06 +00:00
2009-01-04 14:14:06 +00:00
2009-01-07 16:05:55 +00:00
2008-04-16 22:40:48 +00:00
2008-11-12 21:16:53 +00:00
2009-01-04 14:14:06 +00:00
2009-01-04 14:14:06 +00:00
2008-09-19 14:15:36 +00:00
2009-01-07 14:46:50 +00:00
2009-01-06 18:59:03 +00:00
2008-04-16 22:40:48 +00:00
2009-01-04 14:14:06 +00:00
2009-01-05 15:19:31 +00:00
2008-04-16 22:40:48 +00:00
2009-01-04 14:14:06 +00:00
2008-04-18 19:10:03 +00:00
2009-01-04 14:14:06 +00:00
2008-09-21 10:12:33 +00:00
2009-01-02 07:54:38 +00:00
2008-04-16 22:40:48 +00:00
2009-01-04 14:14:06 +00:00
2009-01-09 15:04:52 +00:00
2008-04-16 22:40:48 +00:00
2009-01-06 18:59:03 +00:00
2008-12-15 05:21:44 +00:00
2009-01-04 14:14:06 +00:00
2008-07-04 19:56:31 +00:00
2009-01-04 14:14:06 +00:00
2008-04-16 22:40:48 +00:00
2009-01-06 18:59:03 +00:00
2008-09-19 14:15:36 +00:00
2009-01-04 14:14:06 +00:00
2009-01-04 14:14:06 +00:00
2008-10-29 16:49:51 +00:00
2008-04-16 22:40:48 +00:00
2009-01-04 18:26:43 +00:00
2009-01-04 14:14:06 +00:00
2009-01-04 19:10:57 +00:00
2009-01-08 13:54:39 +00:00
2008-04-16 22:40:48 +00:00
2008-04-16 22:40:48 +00:00
2009-01-07 17:25:17 +00:00