diff options
author | Ton Roosendaal <ton@blender.org> | 2003-10-15 16:26:26 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2003-10-15 16:26:26 +0400 |
commit | 6480956c5854cb8bcd21c76b57f3d9287fe0d430 (patch) | |
tree | 3c7a5f7ec316b800f6ea70d0f848445f4d948639 /source/blender/src/mywindow.c | |
parent | 0c1bad34c76443bcf254fdc8d1f807af097f0902 (diff) |
- expanded internal windowmanager that it allows button panels in any
window (type)
- each SpaceData struct (not the window!) can get 'block handlers'
assigned, basically event codes that invoke drawing button panels.
- this is saved in files, and Panels behave in any window like it does now
in buttonswindow
- it also means that a 'space window' should leave with a matrix set for
buttons level
- try it in view3d header menu, 'view'->'backdrop'. this opens the old
viewbuttons
- it all works non blocking! instant updates of viewbuttons visible in
3d window now.
Not done yet:
- checking and fixing frontbuffer drawing (select a wireframe draws over)
- temporally vertices cannot be selected, is my next project
- closing or hiding Panels...
- styling stuff... i committed for others to review as well.
Have fun. this is certainly a huge improvement over the old viewbuttons!
Diffstat (limited to 'source/blender/src/mywindow.c')
-rw-r--r-- | source/blender/src/mywindow.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/src/mywindow.c b/source/blender/src/mywindow.c index 78f3443fa7b..cfee5d27b45 100644 --- a/source/blender/src/mywindow.c +++ b/source/blender/src/mywindow.c @@ -249,6 +249,14 @@ void bwin_multmatrix(int winid, float mat[][4]) glGetFloatv(GL_MODELVIEW_MATRIX, (float *)win->viewmat); } +void bwin_scalematrix(int winid, float x, float y, float z) +{ + bWindow *win= bwin_from_winid(winid); + + glScalef(x, y, z); + glGetFloatv(GL_MODELVIEW_MATRIX, (float *)win->viewmat); +} + void bwin_clear_viewmat(int swin) { bWindow *win; |