~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to source/blender/blenkernel/BKE_global.h

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2005-11-06 12:40:03 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051106124003-3pgs7tcg5rox96xg
Tags: 2.37a-1.1
* Non-maintainer upload.
* Split out parts of 01_SConstruct_debian.dpatch again: root_build_dir
  really needs to get adjusted before the clean target runs - closes: #333958,
  see #288882 for reference

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 * any data in Blender. This block is not serialized, but built anew
6
6
 * for every fresh Blender run.
7
7
 *
8
 
 * $Id: BKE_global.h,v 1.11 2004/03/28 08:46:33 zuster Exp $ 
 
8
 * $Id: BKE_global.h,v 1.25 2005/06/11 16:30:36 jesterking Exp $ 
9
9
 *
10
10
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
11
11
 *
63
63
struct BMF_Font;
64
64
struct EditMesh;
65
65
 
66
 
#define UNDO_MAX        64
67
 
#define UNDO_EDIT_MAX   64
68
 
 
69
 
typedef struct UndoBufferEdit {
70
 
 
71
 
        void *datablock;
72
 
        char name[64];
73
 
 
74
 
} UndoBufferEdit;
75
 
 
76
66
 
77
67
typedef struct Global {
78
68
 
97
87
    /* strings: lastsaved */
98
88
    char ima[160], sce[160], lib[160];
99
89
    
100
 
    /* totalen */
 
90
    /* totals */
101
91
    short totobj, totlamp, totobjsel, totcurve, totmesh, totmat;
102
 
    int totvert, totface, totvertsel, totfacesel;
 
92
    int totvert, totedge, totface, totvertsel, totedgesel, totfacesel;
103
93
    
104
94
    short machine, afbreek, moving, colact, zbuf;
105
95
    short qual, background, imagewin, animspeed;
 
96
        short winpos, displaymode;      /* used to be in Render */
 
97
        
106
98
        /**
107
99
         * The current version of Blender.
108
100
         */
153
145
    short special1, special2;
154
146
 
155
147
    int flags;
156
 
 
157
 
    /* editmode undo - written by intrr, ported by Det. Thorn  */
158
 
    struct UndoBufferEdit undo_edit[UNDO_EDIT_MAX+1];/* need one more for undoing first undo */
159
 
    int undo_edit_level;                        /* index of last undo buffer created */
160
 
    int undo_edit_highest;                      /* index of highest undo buffer in use */
161
 
    void *undo_last_data;                       /* pointer to last datablock edited */
162
 
    void (*undo_clear)(void);           /* pointer to function to free the undo data */
163
 
 
164
148
        
165
149
} Global;
166
150
 
180
164
#define G_VERTEXPAINT   1024
181
165
#define G_ALLEDGES              2048
182
166
#define G_DEBUG                 4096
183
 
#define G_SCENESCRIPT   8192
184
 
#define G_PROPORTIONAL  16384
185
 
#define G_WEIGHTPAINT   32768   /* __NLA */
 
167
#define G_DOSCRIPTLINKS (1 << 13)
 
168
/* #define G_PROPORTIONAL       16384   removed! so can be used later for other stuff */
 
169
#define G_WEIGHTPAINT   32768   
186
170
#define G_TEXTUREPAINT  65536
187
 
#define G_NOFROZEN      (1 << 17) // frozen modules inactive
 
171
/* #define G_NOFROZEN   (1 << 17) also removed */
188
172
#define G_DRAWEDGES     (1 << 18)
 
173
#define G_DRAWCREASES   (1 << 19)
 
174
#define G_DRAWSEAMS     (1 << 20)
 
175
#define G_HIDDENEDGES   (1 << 21)
 
176
 
 
177
/* Measurement info Drawing */
 
178
#define G_DRAW_EDGELEN   (1 << 22) 
 
179
#define G_DRAW_FACEAREA (1 << 23)
 
180
#define G_DRAW_EDGEANG  (1 << 24)
 
181
 
 
182
#define G_RECORDKEYS  (1 << 25)
189
183
 
190
184
/* G.fileflags */
191
185
 
199
193
#define G_FILE_LOCK_BIT                 7
200
194
#define G_FILE_SIGN_BIT                 8
201
195
#define G_FILE_PUBLISH_BIT                              9
 
196
#define G_FILE_NO_UI_BIT                                10
 
197
 
202
198
 
203
199
#define G_AUTOPACK               (1 << G_AUTOPACK_BIT)
204
200
#define G_FILE_COMPRESS          (1 << G_FILE_COMPRESS_BIT)
210
206
#define G_FILE_LOCK              (1 << G_FILE_LOCK_BIT)
211
207
#define G_FILE_SIGN              (1 << G_FILE_SIGN_BIT)
212
208
#define G_FILE_PUBLISH                   (1 << G_FILE_PUBLISH_BIT)
 
209
#define G_FILE_NO_UI                     (1 << G_FILE_NO_UI_BIT)
213
210
 
214
211
/* G.windowstate */
215
212
#define G_WINDOWSTATE_USERDEF           0
227
224
#define G_FLAGS_AUTOPLAY                (1 << G_FLAGS_AUTOPLAY_BIT)
228
225
 
229
226
/* G.qual */
230
 
#define R_SHIFTKEY      1
231
 
#define L_SHIFTKEY      2
232
 
#define LR_SHIFTKEY 3
233
 
#define R_ALTKEY        4
234
 
#define L_ALTKEY        8
235
 
#define LR_ALTKEY       12
236
 
#define R_CTRLKEY       16
237
 
#define L_CTRLKEY       32
238
 
#define LR_CTRLKEY  48
 
227
#define R_SHIFTKEY              1
 
228
#define L_SHIFTKEY              2
 
229
#define LR_SHIFTKEY     3
 
230
#define R_ALTKEY                4
 
231
#define L_ALTKEY                8
 
232
#define LR_ALTKEY               12
 
233
#define R_CTRLKEY               16
 
234
#define L_CTRLKEY               32
 
235
#define LR_CTRLKEY      48
 
236
#define LR_COMMANDKEY   64
239
237
 
240
238
/* G.order: indicates what endianness the platform where the file was
241
239
 * written had. */
242
240
#define L_ENDIAN        1
243
241
#define B_ENDIAN        0
244
242
 
 
243
/* G.moving, signals drawing in (3d) window to denote transform */
 
244
#define G_TRANSFORM_OBJ         1
 
245
#define G_TRANSFORM_EDIT        2
 
246
#define G_TRANSFORM_MANIP       4
 
247
 
245
248
/* G.special1 */
246
249
 
247
250
/* Memory is allocated where? blender.c */