diff options
author | Ton Roosendaal <ton@blender.org> | 2003-10-16 13:39:19 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2003-10-16 13:39:19 +0400 |
commit | 5d1438ad96c9d819f815f97ed5bed7de5d48e8d9 (patch) | |
tree | 1f1c237cb0624dd1ba5f6159ddde01d9c259a571 /source/blender/include/BSE_view.h | |
parent | c7618783fbfd7636adbd8df14ddc0feb563fa58e (diff) |
- fixed editing vertices again!
I had to clean up very old calls to switch matrices for 3d windows.
To make it more clear, I've introduced defines for the infamous persp()
function:
persp(PERSP_WIN); sets matrices at pixel level window
persp(PERSP_VIEW); restores matrices back to 3d drawing
persp(PERSP_STORE); only called once, to store correct matrices
I will now check on frontbuffer drawing of vertices... it's very doubtful
if it's used still correctly, was only meant for visual speed in the
early nineties you know. :)
Diffstat (limited to 'source/blender/include/BSE_view.h')
-rw-r--r-- | source/blender/include/BSE_view.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/include/BSE_view.h b/source/blender/include/BSE_view.h index f46de2ba3ff..49a41e26ab1 100644 --- a/source/blender/include/BSE_view.h +++ b/source/blender/include/BSE_view.h @@ -39,9 +39,13 @@ struct BoundBox; struct View3D; struct ScrArea; -void persp3d(struct View3D *v3d, int a); +#define PERSP_WIN 0 +#define PERSP_VIEW 1 +#define PERSP_STORE 2 + void persp_general(int a); void persp(int a); + void initgrabz(float x, float y, float z); void window_to_3d(float *vec, short mx, short my); void project_short(float *vec, short *adr); |