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