2 * blenlib/BKE_scene.h (mar-2001 nzc)
6 * ***** BEGIN GPL LICENSE BLOCK *****
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software Foundation,
20 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
23 * All rights reserved.
25 * The Original Code is: all of this file.
27 * Contributor(s): none yet.
29 * ***** END GPL LICENSE BLOCK *****
39 struct QuicktimeCodecData;
43 /* sequence related defines */
44 #define WHILE_SEQ(base) { \
45 int totseq_, seq_; Sequence **seqar; \
46 build_seqar( base, &seqar, &totseq_); \
47 for(seq_ = 0; seq_ < totseq_; seq_++) { \
52 if(seqar) MEM_freeN(seqar); \
55 /* note; doesn't work when scene is empty */
56 #define SETLOOPER(s, b) sce= s, b= (Base*)sce->base.first; b; b= (Base*)(b->next?b->next:sce->set?(sce=sce->set)->base.first:NULL)
59 void free_avicodecdata(struct AviCodecData *acd);
60 void free_qtcodecdata(struct QuicktimeCodecData *acd);
62 void free_scene(struct Scene *me);
63 struct Scene *add_scene(char *name);
64 struct Base *object_in_scene(struct Object *ob, struct Scene *sce);
66 void set_scene_bg(struct Scene *sce);
67 void set_scene_name(char *name);
69 int next_object(int val, struct Base **base, struct Object **ob);
70 struct Object *scene_find_camera(struct Scene *sc);
72 struct Base *scene_add_base(struct Scene *sce, struct Object *ob);
73 void scene_deselect_all(struct Scene *sce);
74 void scene_select_base(struct Scene *sce, struct Base *selbase);
76 /* checks for cycle, returns 1 if it's all OK */
77 int scene_check_setscene(struct Scene *sce);
79 void scene_update_for_newframe(struct Scene *sce, unsigned int lay);
81 void scene_add_render_layer(struct Scene *sce);
84 int get_render_subsurf_level(struct RenderData *r, int level);
85 int get_render_child_particle_number(struct RenderData *r, int num);
86 int get_render_shadow_samples(struct RenderData *r, int samples);
87 float get_render_aosss_error(struct RenderData *r, float error);