blender/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
..
blender 2.5 2009-01-09 15:04:52 +00:00
creator 2.5 / Cleanup 2009-01-04 18:16:34 +00:00
darwin Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
gameengine Yeah, and then the game engine too! 2009-01-05 15:48:24 +00:00
icons Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
kernel 2.5 / SCons 2008-12-23 16:07:24 +00:00
CMakeLists.txt Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
Makefile 2.5: make and cmake fixes for recent changes. 2009-01-08 13:54:39 +00:00
nan_compile.mk 2.50: svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r17434:HEAD 2008-12-14 17:32:24 +00:00
nan_definitions.mk 2.5 / Cleanup 2009-01-04 18:16:34 +00:00
nan_link.mk 2.5 / Cleanup 2009-01-04 18:16:34 +00:00
nan_subdirs.mk Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
nan_warn.mk Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SConscript * Minor cleanup of SCons files 2008-10-22 11:28:10 +00:00