Blender Git Commit Log
Git Commits -> Revision 2fe5005
Revision 2fe5005 by Ton Roosendaal (master) January 9, 2009, 15:04 (GMT) |
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. |
Commit Details:
Full Hash: 2fe5005bbb6b81831eba33f3d6a93c4719b912a0
SVN Revision: 18431
Parent Commit: c7fa55e
Lines Changed: +109, -32
8 Modified Paths:
/source/blender/blenkernel/BKE_screen.h (+3, -0) (Diff)
/source/blender/blenkernel/intern/screen.c (+5, -0) (Diff)
/source/blender/editors/include/ED_space_api.h (+12, -0) (Diff)
/source/blender/editors/space_api/spacetypes.c (+54, -1) (Diff)
/source/blender/editors/space_view3d/space_view3d.c (+0, -9) (Diff)
/source/blender/editors/space_view3d/view3d_draw.c (+8, -10) (Diff)
/source/blender/editors/space_view3d/view3d_edit.c (+14, -0) (Diff)
/source/blender/editors/space_view3d/view3d_intern.h (+13, -12) (Diff)
/source/blender/blenkernel/intern/screen.c (+5, -0) (Diff)
/source/blender/editors/include/ED_space_api.h (+12, -0) (Diff)
/source/blender/editors/space_api/spacetypes.c (+54, -1) (Diff)
/source/blender/editors/space_view3d/space_view3d.c (+0, -9) (Diff)
/source/blender/editors/space_view3d/view3d_draw.c (+8, -10) (Diff)
/source/blender/editors/space_view3d/view3d_edit.c (+14, -0) (Diff)
/source/blender/editors/space_view3d/view3d_intern.h (+13, -12) (Diff)