Cycles: working towards texture workflow design
[blender.git] / source / blender / makesdna / DNA_view3d_types.h
index 69eeda6c1780ce0e1023d19d323af79537c9f923..fe2f0c634b5e6c088230daf5d40d0280dac9522d 100644 (file)
@@ -97,10 +97,13 @@ typedef struct RegionView3D {
        float zfac;                                     /* initgrabz() result */
        float camdx, camdy;                     /* camera view offsets, 1.0 = viewplane moves entire width/height */
        float pixsize;                          /* runtime only */
-       float ofs[3];                           /* view center & orbit pivot, negative of worldspace location */
-       short camzoom;
+       float ofs[3];                           /* view center & orbit pivot, negative of worldspace location,
+                                                                * also matches -viewinv[3][0:3] in ortho mode.*/
+       short camzoom;                          /* viewport zoom on the camera frame, see BKE_screen_view3d_zoom_to_fac */
        short twdrawflag;
-       int pad;
+       char is_persp;                          /* check if persp/ortho view, since 'persp' cant be used for this since
+                                                                * it can have cameras assigned as well. (only set in setwinmatrixview3d) */
+       char pad[3];
        
        short rflag, viewlock;
        short persp;
@@ -240,7 +243,7 @@ typedef struct View3D {
 
 /* View3d->flag2 (short) */
 #define V3D_RENDER_OVERRIDE            4
-#define V3D_SOLID_TEX                  8
+#define V3D_SOLID_TEX                  8       /* deprecated */
 #define V3D_DISPGP                             16
 #define V3D_LOCK_CAMERA                        32