Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Bishop <nicholasbishop@gmail.com>2007-01-17 06:57:01 +0300
committerNicholas Bishop <nicholasbishop@gmail.com>2007-01-17 06:57:01 +0300
commit5f798002c9ca6b9532862ea14fdad27a4c136a12 (patch)
treed10af1e80b96d2102c5614d3f3fe1050d78e29a1 /source/blender/include/BIF_glutil.h
parenta3c9ae8a8819d08f47234f0c065fbdb5fd385c59 (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.h8
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 */