Multi-View and Stereo 3D
[blender.git] / source / blender / editors / render / render_ops.c
1 /*
2  * ***** BEGIN GPL LICENSE BLOCK *****
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version 2
7  * of the License, or (at your option) any later version. 
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software Foundation,
16  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17  *
18  * The Original Code is Copyright (C) 2009 Blender Foundation.
19  * All rights reserved.
20  *
21  * Contributor(s): Blender Foundation
22  *
23  * ***** END GPL LICENSE BLOCK *****
24  */
25
26 /** \file blender/editors/render/render_ops.c
27  *  \ingroup edrend
28  */
29
30 #include <stdlib.h>
31
32 #include "BLI_utildefines.h"
33
34 #include "ED_render.h"
35
36 #include "WM_api.h"
37
38 #include "render_intern.h" // own include
39
40 /***************************** render ***********************************/
41
42 void ED_operatortypes_render(void)
43 {
44         WM_operatortype_append(OBJECT_OT_material_slot_add);
45         WM_operatortype_append(OBJECT_OT_material_slot_remove);
46         WM_operatortype_append(OBJECT_OT_material_slot_assign);
47         WM_operatortype_append(OBJECT_OT_material_slot_select);
48         WM_operatortype_append(OBJECT_OT_material_slot_deselect);
49         WM_operatortype_append(OBJECT_OT_material_slot_copy);
50
51         WM_operatortype_append(MATERIAL_OT_new);
52         WM_operatortype_append(TEXTURE_OT_new);
53         WM_operatortype_append(WORLD_OT_new);
54         
55         WM_operatortype_append(MATERIAL_OT_copy);
56         WM_operatortype_append(MATERIAL_OT_paste);
57
58         WM_operatortype_append(SCENE_OT_render_layer_add);
59         WM_operatortype_append(SCENE_OT_render_layer_remove);
60
61         WM_operatortype_append(SCENE_OT_render_view_add);
62         WM_operatortype_append(SCENE_OT_render_view_remove);
63
64 #ifdef WITH_FREESTYLE
65         WM_operatortype_append(SCENE_OT_freestyle_module_add);
66         WM_operatortype_append(SCENE_OT_freestyle_module_remove);
67         WM_operatortype_append(SCENE_OT_freestyle_module_move);
68         WM_operatortype_append(SCENE_OT_freestyle_lineset_add);
69         WM_operatortype_append(SCENE_OT_freestyle_lineset_copy);
70         WM_operatortype_append(SCENE_OT_freestyle_lineset_paste);
71         WM_operatortype_append(SCENE_OT_freestyle_lineset_remove);
72         WM_operatortype_append(SCENE_OT_freestyle_lineset_move);
73         WM_operatortype_append(SCENE_OT_freestyle_linestyle_new);
74         WM_operatortype_append(SCENE_OT_freestyle_color_modifier_add);
75         WM_operatortype_append(SCENE_OT_freestyle_alpha_modifier_add);
76         WM_operatortype_append(SCENE_OT_freestyle_thickness_modifier_add);
77         WM_operatortype_append(SCENE_OT_freestyle_geometry_modifier_add);
78         WM_operatortype_append(SCENE_OT_freestyle_modifier_remove);
79         WM_operatortype_append(SCENE_OT_freestyle_modifier_move);
80         WM_operatortype_append(SCENE_OT_freestyle_modifier_copy);
81         WM_operatortype_append(SCENE_OT_freestyle_stroke_material_create);
82 #endif
83
84         WM_operatortype_append(TEXTURE_OT_slot_copy);
85         WM_operatortype_append(TEXTURE_OT_slot_paste);
86         WM_operatortype_append(TEXTURE_OT_slot_move);
87         WM_operatortype_append(TEXTURE_OT_envmap_save);
88         WM_operatortype_append(TEXTURE_OT_envmap_clear);
89         WM_operatortype_append(TEXTURE_OT_envmap_clear_all);
90
91         /* render_internal.c */
92         WM_operatortype_append(RENDER_OT_view_show);
93         WM_operatortype_append(RENDER_OT_render);
94         WM_operatortype_append(RENDER_OT_view_cancel);
95
96         /* render_opengl.c */
97         WM_operatortype_append(RENDER_OT_opengl);
98 }
99