2023-08-16 00:20:26 +10:00
|
|
|
/* SPDX-FileCopyrightText: 2008 Blender Authors
|
2023-05-31 16:19:06 +02:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
2009-01-20 11:09:26 +00:00
|
|
|
|
2019-02-18 08:08:12 +11:00
|
|
|
/** \file
|
|
|
|
|
* \ingroup edrend
|
2011-02-27 20:29:51 +00:00
|
|
|
*/
|
|
|
|
|
|
2012-02-17 18:59:41 +00:00
|
|
|
#pragma once
|
2009-01-20 11:09:26 +00:00
|
|
|
|
2013-12-17 23:42:38 +06:00
|
|
|
struct ScrArea;
|
2019-01-28 21:08:24 +11:00
|
|
|
struct bContext;
|
|
|
|
|
struct wmOperatorType;
|
2009-01-20 11:09:26 +00:00
|
|
|
|
2023-07-31 11:50:54 +10:00
|
|
|
/* `render_shading.cc` */
|
2021-12-09 00:55:11 +11:00
|
|
|
|
2023-08-03 01:11:28 +02:00
|
|
|
void OBJECT_OT_material_slot_add(wmOperatorType *ot);
|
|
|
|
|
void OBJECT_OT_material_slot_remove(wmOperatorType *ot);
|
|
|
|
|
void OBJECT_OT_material_slot_assign(wmOperatorType *ot);
|
|
|
|
|
void OBJECT_OT_material_slot_select(wmOperatorType *ot);
|
|
|
|
|
void OBJECT_OT_material_slot_deselect(wmOperatorType *ot);
|
|
|
|
|
void OBJECT_OT_material_slot_copy(wmOperatorType *ot);
|
|
|
|
|
void OBJECT_OT_material_slot_move(wmOperatorType *ot);
|
|
|
|
|
void OBJECT_OT_material_slot_remove_unused(wmOperatorType *ot);
|
|
|
|
|
|
|
|
|
|
void MATERIAL_OT_new(wmOperatorType *ot);
|
|
|
|
|
void TEXTURE_OT_new(wmOperatorType *ot);
|
|
|
|
|
void WORLD_OT_new(wmOperatorType *ot);
|
|
|
|
|
|
|
|
|
|
void MATERIAL_OT_copy(wmOperatorType *ot);
|
|
|
|
|
void MATERIAL_OT_paste(wmOperatorType *ot);
|
|
|
|
|
|
|
|
|
|
void SCENE_OT_view_layer_add(wmOperatorType *ot);
|
|
|
|
|
void SCENE_OT_view_layer_remove(wmOperatorType *ot);
|
|
|
|
|
void SCENE_OT_view_layer_add_aov(wmOperatorType *ot);
|
|
|
|
|
void SCENE_OT_view_layer_remove_aov(wmOperatorType *ot);
|
|
|
|
|
void SCENE_OT_view_layer_add_lightgroup(wmOperatorType *ot);
|
|
|
|
|
void SCENE_OT_view_layer_remove_lightgroup(wmOperatorType *ot);
|
|
|
|
|
void SCENE_OT_view_layer_add_used_lightgroups(wmOperatorType *ot);
|
|
|
|
|
void SCENE_OT_view_layer_remove_unused_lightgroups(wmOperatorType *ot);
|
|
|
|
|
|
|
|
|
|
void SCENE_OT_light_cache_bake(wmOperatorType *ot);
|
|
|
|
|
void SCENE_OT_light_cache_free(wmOperatorType *ot);
|
|
|
|
|
|
|
|
|
|
void OBJECT_OT_lightprobe_cache_bake(wmOperatorType *ot);
|
|
|
|
|
void OBJECT_OT_lightprobe_cache_free(wmOperatorType *ot);
|
|
|
|
|
|
|
|
|
|
void SCENE_OT_render_view_add(wmOperatorType *ot);
|
|
|
|
|
void SCENE_OT_render_view_remove(wmOperatorType *ot);
|
2015-04-06 10:40:12 -03:00
|
|
|
|
2012-12-20 07:57:26 +00:00
|
|
|
#ifdef WITH_FREESTYLE
|
2023-08-03 01:11:28 +02:00
|
|
|
void SCENE_OT_freestyle_module_add(wmOperatorType *ot);
|
|
|
|
|
void SCENE_OT_freestyle_module_remove(wmOperatorType *ot);
|
|
|
|
|
void SCENE_OT_freestyle_module_move(wmOperatorType *ot);
|
|
|
|
|
void SCENE_OT_freestyle_lineset_add(wmOperatorType *ot);
|
|
|
|
|
void SCENE_OT_freestyle_lineset_copy(wmOperatorType *ot);
|
|
|
|
|
void SCENE_OT_freestyle_lineset_paste(wmOperatorType *ot);
|
|
|
|
|
void SCENE_OT_freestyle_lineset_remove(wmOperatorType *ot);
|
|
|
|
|
void SCENE_OT_freestyle_lineset_move(wmOperatorType *ot);
|
|
|
|
|
void SCENE_OT_freestyle_linestyle_new(wmOperatorType *ot);
|
|
|
|
|
void SCENE_OT_freestyle_color_modifier_add(wmOperatorType *ot);
|
|
|
|
|
void SCENE_OT_freestyle_alpha_modifier_add(wmOperatorType *ot);
|
|
|
|
|
void SCENE_OT_freestyle_thickness_modifier_add(wmOperatorType *ot);
|
|
|
|
|
void SCENE_OT_freestyle_geometry_modifier_add(wmOperatorType *ot);
|
|
|
|
|
void SCENE_OT_freestyle_modifier_remove(wmOperatorType *ot);
|
|
|
|
|
void SCENE_OT_freestyle_modifier_move(wmOperatorType *ot);
|
|
|
|
|
void SCENE_OT_freestyle_modifier_copy(wmOperatorType *ot);
|
|
|
|
|
void SCENE_OT_freestyle_stroke_material_create(wmOperatorType *ot);
|
2012-12-20 07:57:26 +00:00
|
|
|
#endif
|
Sorry, three commits in one, became difficult to untangle..
Editors Modules
* render/ module added in editors, moved the preview render code there and
also shading related operators.
* physics/ module made more consistent with other modules. renaming files,
making a single physics_ops.c for operators and keymaps. Also move all
particle related operators here now.
* space_buttons/ now should have only operators relevant to the buttons
specificially.
Updates & Notifiers
* Material/Texture/World/Lamp can now be passed to DAG_id_flush_update,
which will go back to a callback in editors. Eventually these should
be in the depsgraph itself, but for now this gives a unified call for
doing updates.
* GLSL materials are now refreshed on changes. There's still various
cases missing,
* Preview icons now hook into this system, solving various update cases
that were missed before.
* Also fixes issue in my last commit, where some preview would not render,
problem is avoided in the new system.
Icon Rendering
* On systems with support for non-power of two textures, an OpenGL texture
is now used instead of glDrawPixels. This avoids problems with icons get
clipped on region borders. On my Linux desktop, this gives an 1.1x speedup,
and on my Mac laptop a 2.3x speedup overall in redrawing the full window,
with the default setup. The glDrawPixels implementation on Mac seems to
have a lot of overhread.
* Preview icons are now drawn using proper premul alpha, and never faded so
you can see them clearly.
* Also tried to fix issue with texture node preview rendering, globals can't
be used with threads reliably.
2009-09-29 19:12:12 +00:00
|
|
|
|
2023-08-03 01:11:28 +02:00
|
|
|
void TEXTURE_OT_slot_copy(wmOperatorType *ot);
|
|
|
|
|
void TEXTURE_OT_slot_paste(wmOperatorType *ot);
|
|
|
|
|
void TEXTURE_OT_slot_move(wmOperatorType *ot);
|
2009-10-12 16:00:39 +00:00
|
|
|
|
2023-07-31 11:50:54 +10:00
|
|
|
/* `render_internal.cc` */
|
2021-12-09 00:55:11 +11:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Contextual render, using current scene, view3d?
|
|
|
|
|
*/
|
2023-08-03 01:11:28 +02:00
|
|
|
void RENDER_OT_render(wmOperatorType *ot);
|
|
|
|
|
void RENDER_OT_shutter_curve_preset(wmOperatorType *ot);
|
2010-03-08 16:36:53 +00:00
|
|
|
|
2023-07-31 11:50:54 +10:00
|
|
|
/* `render_view.cc` */
|
2021-12-09 00:55:11 +11:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* New window uses x,y to set position.
|
|
|
|
|
*/
|
2023-08-03 01:11:28 +02:00
|
|
|
ScrArea *render_view_open(bContext *C, int mx, int my, ReportList *reports);
|
2011-05-19 11:34:11 +00:00
|
|
|
|
2023-08-03 01:11:28 +02:00
|
|
|
void RENDER_OT_view_show(wmOperatorType *ot);
|
|
|
|
|
void RENDER_OT_view_cancel(wmOperatorType *ot);
|
2009-10-12 16:00:39 +00:00
|
|
|
|
2023-07-31 11:50:54 +10:00
|
|
|
/* `render_opengl.cc` */
|
2022-04-04 13:17:03 +10:00
|
|
|
|
2023-08-03 01:11:28 +02:00
|
|
|
void RENDER_OT_opengl(wmOperatorType *ot);
|