Files
test2/source
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
..
2.5
2009-01-09 15:04:52 +00:00
2009-01-04 18:16:34 +00:00
2008-12-23 16:07:24 +00:00
2009-01-04 18:16:34 +00:00
2009-01-04 18:16:34 +00:00
2008-10-22 11:28:10 +00:00