diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-01-21 00:55:48 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-01-21 00:55:48 +0300 |
commit | 8d4a9081cc65ab262448287c2875f534bc76f6aa (patch) | |
tree | 41c2ca9ab0f581d4364075ae817a2d219c182bfe /source/blender/makesdna | |
parent | 5ddc9ed1dafbbf263fda1bc9e535f48237a44583 (diff) |
2.5: WIP commit for WM compositing.
* Drawing code from wm_event_system.c split into separate wm_draw.c file.
Now there's 3 different draw methods implemented, not sure what survives
or will be added but is useful for debugging.
* Draw All: redraws everything each time, for reference.
* Draw Overlap All: what the code did before this commit, only draw
regions marked for redraw, and anything that overlaps them.
* Triple Buffer: copies/retores all area regions into a texture, and
blits that before drawing. Menus, brushes, gestures, etc are redrawn
always on top of that.
Currently "Draw Overlap All" is set hardcoded to be used still. Triple
Buffer code is not complete, it doesn't handle window resize yet. Cards
that don't support non power of two textures can need quite large
textures as well, this could be split into multiple smaller ones.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_windowmanager_types.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_windowmanager_types.h b/source/blender/makesdna/DNA_windowmanager_types.h index 5b1ffdd35f2..a575155b977 100644 --- a/source/blender/makesdna/DNA_windowmanager_types.h +++ b/source/blender/makesdna/DNA_windowmanager_types.h @@ -96,6 +96,10 @@ typedef struct wmWindow { struct wmEvent *eventstate; /* storage for event system */ struct wmSubWindow *curswin; /* internal for wm_subwindow.c only */ + + unsigned int drawtex; /* internal for wm_draw.c only */ + int drawtexw, drawtexh; /* internal for wm_draw.c only */ + int drawmethod; /* internal for wm_draw.c only */ ListBase timers; |