Blender Git Commit Log

Git Commits -> Revision cb96aa4

Revision cb96aa4 by Ton Roosendaal (master)
June 1, 2009, 16:22 (GMT)
2.5

Added support for cached text drawing in View2D. Cache is needed to
prevent the viewmatrix being set/restored on each text drawing.

Adding a string:
void UI_view2d_text_cache_add(View2D *v2d, float x, float y, char *str)

Drawing:
void UI_view2d_text_cache_draw(ARegion *ar)

Nothing else needed; just make sure cache-draw is always called at end
of a view2d drawing function, to clear cache memory.

On todo for next: a version with a rectf boundary to clip text within.


Commit Details:

Full Hash: cb96aa47dbcefa8be8db63dc8fc2607b16b2d5d1
SVN Revision: 20558
Parent Commit: dbbe06b
Lines Changed: +71, -42

3 Modified Paths:

/source/blender/editors/include/UI_view2d.h (+4, -0) (Diff)
/source/blender/editors/interface/view2d.c (+52, -0) (Diff)
/source/blender/editors/space_sequencer/sequencer_draw.c (+15, -42) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021