~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to source/blender/makesdna/DNA_curve_types.h

  • Committer: Reinhard Tartler
  • Date: 2014-05-31 01:50:05 UTC
  • mfrom: (14.2.27 sid)
  • Revision ID: siretart@tauware.de-20140531015005-ml6druahuj82nsav
mergeĀ fromĀ debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
131
131
        short type;
132
132
        short mat_nr;           /* index into material list */
133
133
        short hide, flag;
134
 
        short pntsu, pntsv;             /* number of points in the U or V directions */
 
134
        int pntsu, pntsv;               /* number of points in the U or V directions */
 
135
        short pad[2];
135
136
        short resolu, resolv;   /* tessellation resolution in the U or V directions */
136
137
        short orderu, orderv;
137
138
        short flagu, flagv;
178
179
        struct BoundBox *bb;
179
180
        
180
181
        ListBase nurb;          /* actual data, called splines in rna */
181
 
        ListBase disp;          /* undeformed display list, used mostly for texture space calculation */
182
182
        
183
183
        EditNurb *editnurb;     /* edited data, not in file, use pointer so we can check for it */
184
184
        
209
209
 
210
210
        /* edit, index in nurb list */
211
211
        int actnu;
212
 
        /* edit, last selected point */
213
 
        void *lastsel;
214
 
        
 
212
        /* edit, index in active nurb (BPoint or BezTriple) */
 
213
        int actvert;
 
214
 
 
215
        char pad[4];
 
216
 
215
217
        /* font part */
216
 
        /* WARNING: cu->len is...
217
 
         * - strlen(cu->str) object-mode (bytes).
218
 
         * - BLI_strlen_utf8(cu->str) in edit-mode.
219
 
         * This should be cleaned up and some point, see 'write_curves' - campbell */
220
 
        short len, lines, pos, spacemode;
 
218
        short lines;
 
219
        char spacemode, pad1;
221
220
        float spacing, linedist, shear, fsize, wordspace, ulpos, ulheight;
222
221
        float xof, yof;
223
222
        float linewidth;
224
223
 
 
224
        /* copy of EditFont vars (wchar_t aligned),
 
225
         * warning! don't use in editmode (storage only) */
 
226
        int pos;
 
227
        int selstart, selend;
 
228
 
 
229
        /* text data */
 
230
        int len_wchar;  /* number of characters (strinfo) */
 
231
        int len;        /* number of bytes (str - utf8) */
225
232
        char *str;
226
 
        struct SelBox *selboxes;
227
233
        struct EditFont *editfont;
228
 
        
229
 
        char family[24];
 
234
 
 
235
        char family[64];
230
236
        struct VFont *vfont;
231
237
        struct VFont *vfontb;
232
238
        struct VFont *vfonti;
233
239
        struct VFont *vfontbi;
234
 
 
235
 
        int sepchar;
236
240
        
237
 
        float ctime;                    /* current evaltime - for use by Objects parented to curves */
 
241
        struct TextBox *tb;
238
242
        int totbox, actbox;
239
 
        struct TextBox *tb;
240
 
        
241
 
        int selstart, selend;
242
243
        
243
244
        struct CharInfo *strinfo;
244
245
        struct CharInfo curinfo;
245
 
 
 
246
        /* font part end */
 
247
 
 
248
 
 
249
        float ctime;                    /* current evaltime - for use by Objects parented to curves */
246
250
        float bevfac1, bevfac2;
 
251
 
 
252
        char pad2[4];
247
253
} Curve;
248
254
 
249
255
/* **************** CURVE ********************* */
264
270
#define CU_UV_ORCO              32
265
271
#define CU_DEFORM_BOUNDS_OFF 64 
266
272
#define CU_STRETCH              128
267
 
#define CU_OFFS_PATHDIST        256
 
273
/* #define CU_OFFS_PATHDIST     256 */ /* DEPRECATED */
268
274
#define CU_FAST                 512 /* Font: no filling inside editmode */
269
275
/* #define CU_RETOPO               1024 */ /* DEPRECATED */
270
276
#define CU_DS_EXPAND    2048
320
326
#define CU_NURB_ENDPOINT        2
321
327
#define CU_NURB_BEZIER          4
322
328
 
 
329
#define CU_ACT_NONE             -1
 
330
 
323
331
/* *************** BEZTRIPLE **************** */
324
332
 
325
333
/* h1 h2 (beztriple) */
364
372
/* mixed with KEY_LINEAR but define here since only curve supports */
365
373
#define KEY_CU_EASE                     3
366
374
 
 
375
/* indicates point has been seen during surface duplication */
 
376
#define SURF_SEEN                       4
367
377
 
368
378
#endif
369
379