From 5f798002c9ca6b9532862ea14fdad27a4c136a12 Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Wed, 17 Jan 2007 03:57:01 +0000 Subject: 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. --- source/blender/include/BDR_sculptmode.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/blender/include/BDR_sculptmode.h') diff --git a/source/blender/include/BDR_sculptmode.h b/source/blender/include/BDR_sculptmode.h index da4174a65d7..cf58d711801 100644 --- a/source/blender/include/BDR_sculptmode.h +++ b/source/blender/include/BDR_sculptmode.h @@ -30,6 +30,9 @@ #ifndef BDR_SCULPTMODE_H #define BDR_SCULPTMODE_H +/* For bglMats */ +#include "BIF_glutil.h" + #include "transform.h" struct uiBlock; @@ -65,10 +68,7 @@ typedef struct PropsetData { } PropsetData; typedef struct SculptSession { - /* Cache of the OpenGL matrices */ - double modelviewmat[16]; - double projectionmat[16]; - int viewport[4]; + bglMats mats; /* An array of lists; array is sized as large as the number of verts in the mesh, -- cgit v1.2.3