diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2007-01-17 06:57:01 +0300 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2007-01-17 06:57:01 +0300 |
commit | 5f798002c9ca6b9532862ea14fdad27a4c136a12 (patch) | |
tree | d10af1e80b96d2102c5614d3f3fe1050d78e29a1 /source/blender/include/BIF_glutil.h | |
parent | a3c9ae8a8819d08f47234f0c065fbdb5fd385c59 (diff) |
Added a new function+struct to glutil that takes care of reading in the OpenGL data needed for gluProject/gluUnProject. This allows retopo and sculptmode to share some of the same code, and is probably useful elsewhere as well.
Diffstat (limited to 'source/blender/include/BIF_glutil.h')
-rw-r--r-- | source/blender/include/BIF_glutil.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/include/BIF_glutil.h b/source/blender/include/BIF_glutil.h index 36bd6d0c8d7..be255666727 100644 --- a/source/blender/include/BIF_glutil.h +++ b/source/blender/include/BIF_glutil.h @@ -213,5 +213,13 @@ void set_inverted_drawing(int enable); /* own working polygon offset */ void bglPolygonOffset(float dist); +/* For caching opengl matrices (gluProject/gluUnProject) */ +typedef struct bglMats { + double modelview[16]; + double projection[16]; + int viewport[4]; +} bglMats; +void bgl_get_mats(bglMats *mats); + #endif /* BIF_GLUTIL_H */ |