Merged changes in the trunk up to revision 27752.
[blender.git] / source / blender / editors / render / render_ops.c
1 /**
2  * $Id$
3  *
4  * ***** BEGIN GPL LICENSE BLOCK *****
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2
9  * of the License, or (at your option) any later version. 
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software Foundation,
18  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19  *
20  * The Original Code is Copyright (C) 2009 Blender Foundation.
21  * All rights reserved.
22  *
23  * Contributor(s): Blender Foundation
24  *
25  * ***** END GPL LICENSE BLOCK *****
26  */
27
28 #include <stdlib.h>
29
30
31 #include "WM_api.h"
32
33 #include "render_intern.h" // own include
34
35 #if (defined(WITH_QUICKTIME) && !defined(USE_QTKIT))
36 #include "quicktime_export.h"
37 #endif
38
39 /***************************** render ***********************************/
40
41 void ED_operatortypes_render(void)
42 {
43         WM_operatortype_append(OBJECT_OT_material_slot_add);
44         WM_operatortype_append(OBJECT_OT_material_slot_remove);
45         WM_operatortype_append(OBJECT_OT_material_slot_assign);
46         WM_operatortype_append(OBJECT_OT_material_slot_select);
47         WM_operatortype_append(OBJECT_OT_material_slot_deselect);
48         WM_operatortype_append(OBJECT_OT_material_slot_copy);
49
50         WM_operatortype_append(MATERIAL_OT_new);
51         WM_operatortype_append(TEXTURE_OT_new);
52         WM_operatortype_append(WORLD_OT_new);
53         
54         WM_operatortype_append(MATERIAL_OT_copy);
55         WM_operatortype_append(MATERIAL_OT_paste);
56         
57         WM_operatortype_append(MATERIAL_OT_mtex_copy);
58         WM_operatortype_append(MATERIAL_OT_mtex_paste);
59
60         WM_operatortype_append(SCENE_OT_render_layer_add);
61         WM_operatortype_append(SCENE_OT_render_layer_remove);
62
63         WM_operatortype_append(SCENE_OT_freestyle_module_add);
64         WM_operatortype_append(SCENE_OT_freestyle_module_remove);
65         WM_operatortype_append(SCENE_OT_freestyle_module_move_up);
66         WM_operatortype_append(SCENE_OT_freestyle_module_move_down);
67
68 #if (defined(WITH_QUICKTIME) && !defined(USE_QTKIT))
69         WM_operatortype_append(SCENE_OT_render_data_set_quicktime_codec);
70 #endif
71         
72         WM_operatortype_append(TEXTURE_OT_slot_move);
73         WM_operatortype_append(TEXTURE_OT_envmap_save);
74         WM_operatortype_append(TEXTURE_OT_envmap_clear);
75         WM_operatortype_append(TEXTURE_OT_envmap_clear_all);
76
77         /* render_internal.c */
78         WM_operatortype_append(RENDER_OT_view_show);
79         WM_operatortype_append(RENDER_OT_render);
80         WM_operatortype_append(RENDER_OT_view_cancel);
81
82         /* render_opengl.c */
83         WM_operatortype_append(RENDER_OT_opengl);
84 }
85