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

« back to all changes in this revision

Viewing changes to source/blender/makesdna/DNA_scene_types.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:
4
4
 * Renderrecipe and scene decription. The fact that there is a
5
5
 * hierarchy here is a bit strange, and not desirable.
6
6
 *
7
 
 * $Id: DNA_scene_types.h,v 1.25 2004/04/23 21:02:58 ton Exp $ 
 
7
 * $Id: DNA_scene_types.h,v 1.43 2005/05/27 17:52:52 eeshlo Exp $ 
8
8
 *
9
9
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
10
10
 *
47
47
#include "DNA_ID.h"
48
48
#include "DNA_scriptlink_types.h"
49
49
 
50
 
struct FreeCamera;
51
50
struct Radio;
52
51
struct Object;
53
52
struct World;
115
114
        short depth, attrib, rt1, rt2;                          /* standalone player */
116
115
 
117
116
        short stereomode;                                       /* standalone player stereo settings */
118
 
        short pad[3];
 
117
        
 
118
        short dimensionspreset;         /* for the dimensions presets menu */
 
119
        
 
120
        short pad[2];
 
121
 
119
122
 
120
123
        short size, maximsize;  /* size in %, max in Kb */
121
124
        /* from buttons: */
179
182
         * 14: motion blur
180
183
         * 15: use unified renderer for this pic
181
184
         * 16: enable raytracing
 
185
         * 17: gauss sampling for subpixels
 
186
         * 18: keep float buffer after render
182
187
         */
183
188
        int mode;
184
189
 
209
214
         * The gamma for the normal rendering. Used when doing
210
215
         * oversampling, to correctly blend subpixels to pixels.  */
211
216
        float gamma, gauss;
212
 
        /** post-production settings. Don't really belong here */
213
 
        float postmul, postgamma, postadd, postigamma;
 
217
        /** post-production settings. */
 
218
        float postmul, postgamma, postadd, postigamma, posthue, postsat;
 
219
        
 
220
        /* Dither noise intensity */
 
221
        float dither_intensity;
 
222
        
 
223
        /* Zblur settings */
 
224
        float zmin, focus, zgamma, zsigma, zblur;
214
225
 
215
 
        /* yafray: global panel params */
216
 
        short GIquality, GIcache, GImethod, GIgradient,GIphotons,GIdirect;
217
 
    short YF_AA, YFshortpad; 
 
226
        /* yafray: global panel params. TODO: move elsewhere */
 
227
        short GIquality, GIcache, GImethod, GIphotons, GIdirect;
 
228
        short YF_AA, YFexportxml, YF_nobump, YF_clamprgb, yfpad1;
218
229
        int GIdepth, GIcausdepth, GIpixelspersample;
219
 
        int GIphotoncount,GImixphotons;
 
230
        int GIphotoncount, GImixphotons;
220
231
        float GIphotonradius;
221
 
    int YF_numprocs,YF_raydepth, YF_AApasses, YF_AAsamples, YFintpad; 
222
 
        float GIshadowquality, GIrefinement, GIpower;
223
 
        float YF_gamma, YF_exposure,YF_raybias, YF_AAthreshold;
 
232
        int YF_numprocs, YF_raydepth, YF_AApasses, YF_AAsamples;
 
233
        float GIshadowquality, GIrefinement, GIpower, GIindirpower;
 
234
        float YF_gamma, YF_exposure, YF_raybias, YF_AApixelsize, YF_AAthreshold;
224
235
 
225
236
        char backbuf[160], pic[160], ftype[160];
226
237
        
236
247
#define SCE_GAMEFRAMING_EXTEND 1
237
248
#define SCE_GAMEFRAMING_SCALE  2
238
249
 
 
250
typedef struct TimeMarker {
 
251
        struct TimeMarker *next, *prev;
 
252
        int frame;
 
253
        char name[64];
 
254
        unsigned int flag;
 
255
} TimeMarker;
 
256
 
239
257
typedef struct Scene {
240
258
        ID id;
241
259
        struct Object *camera;
249
267
        struct Group *group;
250
268
        
251
269
        float cursor[3];
 
270
        float twcent[3];                        /* center for transform widget */
 
271
        float twmin[3], twmax[3];       /* boundbox of selection for transform widget */
252
272
        unsigned int lay;
253
 
 
254
 
        /* some realtime vars */
255
 
        struct FreeCamera *fcam;  /* old, can be removed (ton) */
 
273
        
 
274
        /* editmode stuff */
 
275
        short selectmode, pad;
 
276
        short proportional, prop_mode;
 
277
        float editbutsize;                      /* size of normals */
256
278
        
257
279
        void *ed;
258
280
        struct Radio *radio;
266
288
        struct AudioData audio; 
267
289
        
268
290
        ScriptLink scriptlink;
 
291
        
 
292
        ListBase markers;
 
293
        
 
294
        /* none of the dependancy graph  vars is mean to be saved */
 
295
        struct  DagForest *theDag;
 
296
        short dagisvalid, dagflags;
 
297
        int pad1;
269
298
} Scene;
270
299
 
271
300
 
296
325
#define R_UNIFIED       0x8000
297
326
#define R_RAYTRACE      0x10000
298
327
#define R_GAUSS         0x20000
 
328
#define R_FBUF                  0x40000
 
329
#define R_THREADS               0x80000
 
330
#define R_ZBLUR                 0x100000
 
331
 
299
332
 
300
333
/* yafray: renderer flag (not only exclusive to yafray) */
301
334
#define R_INTERN        0
304
337
/* scemode */
305
338
#define R_DOSEQ                 0x0001
306
339
#define R_BG_RENDER             0x0002
 
340
#define R_PASSEPARTOUT  0x0004
307
341
 
308
342
#define R_EXTENSION             0x0010
309
343
#define R_OGL                   0x0020
334
368
#define R_QUICKTIME     19
335
369
#define R_BMP           20
336
370
 
337
 
 
338
371
/* **************** RENDER ********************* */
339
372
/* mode flag is same as for renderdata */
340
373
/* flag */
344
377
#define R_LAMPHALO              8
345
378
#define R_RENDERING             16
346
379
#define R_ANIMRENDER    32
 
380
#define R_REDRAW_PRV    64
347
381
 
348
 
/* vlakren->flag (vlak = face in dutch) */
 
382
/* vlakren->flag (vlak = face in dutch) char!!! */
349
383
#define R_SMOOTH                1
350
384
#define R_VISIBLE               2
351
385
#define R_NOPUNOFLIP    8
352
 
#define R_CMAPCODE              16
 
386
#define R_FULL_OSA              16
353
387
#define R_FACE_SPLIT    32
354
388
#define R_DIVIDE_24             64 /* Tells render to divide face other way. */
355
389
 
360
394
#define RAD_PHASE_PATCHES       1
361
395
#define RAD_PHASE_FACES         2
362
396
 
363
 
/* base->flag and ob->flag */
364
 
#define BA_WASSEL                       2
365
 
#define BA_PARSEL                       4
366
 
#define BA_WHERE_UPDATE         8
367
 
#define BA_DISP_UPDATE          16
368
 
#define BA_DO_IPO                       32
369
 
#define BA_FROMSET                      128
370
 
#define OB_DO_IMAT                      256
371
 
#define OB_FROMDUPLI            512
372
 
#define OB_DONE                         1024
373
 
#define OB_RADIO                        2048
374
 
#define OB_FROMGROUP            4096
 
397
/* base->flag is in DNA_object_types.h */
375
398
 
376
399
/* sce->flag */
377
400
#define SCE_ADDSCENAME          1
378
401
 
379
 
/* return flag next_object function */
 
402
/* sce->selectmode */
 
403
#define SCE_SELECT_VERTEX       1
 
404
#define SCE_SELECT_EDGE         2
 
405
#define SCE_SELECT_FACE         4
 
406
 
 
407
/* sce->prop_mode (proportional falloff) */
 
408
#define PROP_SMOOTH            0
 
409
#define PROP_SPHERE            1
 
410
#define PROP_ROOT              2
 
411
#define PROP_SHARP             3
 
412
#define PROP_LIN               4
 
413
#define PROP_CONST             5
 
414
 
 
415
        /* return flag next_object function */
380
416
#define F_START                 0
381
417
#define F_SCENE                 1
382
418
#define F_SET                   2
387
423
#define AUDIO_SYNC              2
388
424
#define AUDIO_SCRUB             4
389
425
 
 
426
 
390
427
#ifdef __cplusplus
391
428
}
392
429
#endif