Blender  V2.93
Macros | Functions | Variables
drawnode.c File Reference

lower level node drawing for nodes (boarders, headers etc), also node layout. More...

#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLI_system.h"
#include "BLI_threads.h"
#include "DNA_node_types.h"
#include "DNA_object_types.h"
#include "DNA_screen_types.h"
#include "DNA_space_types.h"
#include "DNA_text_types.h"
#include "DNA_userdef_types.h"
#include "BKE_context.h"
#include "BKE_curve.h"
#include "BKE_image.h"
#include "BKE_main.h"
#include "BKE_node.h"
#include "BKE_tracking.h"
#include "BLF_api.h"
#include "BLT_translation.h"
#include "BIF_glutil.h"
#include "GPU_batch.h"
#include "GPU_batch_presets.h"
#include "GPU_framebuffer.h"
#include "GPU_immediate.h"
#include "GPU_matrix.h"
#include "GPU_platform.h"
#include "GPU_state.h"
#include "DRW_engine.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "ED_node.h"
#include "ED_space_api.h"
#include "WM_api.h"
#include "WM_types.h"
#include "UI_resources.h"
#include "UI_view2d.h"
#include "IMB_colormanagement.h"
#include "IMB_imbuf_types.h"
#include "NOD_composite.h"
#include "NOD_geometry.h"
#include "NOD_shader.h"
#include "NOD_texture.h"
#include "node_intern.h"

Go to the source code of this file.

Macros

#define DEFAULT_FLAGS   UI_ITEM_R_SPLIT_EMPTY_NAME
 
#define SAMPLE_FLT_ISNONE   FLT_MAX
 
#define NODE_REROUTE_SIZE   8.0f
 
#define NODELINK_GROUP_SIZE   256
 
#define LINK_RESOL   24
 
#define LINK_WIDTH   (2.5f * UI_DPI_FAC)
 
#define ARROW_SIZE   (7 * UI_DPI_FAC)
 

Functions

static void node_socket_button_label (bContext *UNUSED(C), uiLayout *layout, PointerRNA *UNUSED(ptr), PointerRNA *UNUSED(node_ptr), const char *text)
 
static void node_buts_value (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_buts_rgb (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_buts_mix_rgb (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_buts_time (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_buts_colorramp (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_buts_curvevec (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
void ED_node_sample_set (const float col[4])
 
static void node_buts_curvecol (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_buts_normal (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_buts_texture (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_shader_buts_clamp (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_shader_buts_map_range (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_buts_math (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static int node_resize_area_default (bNode *node, int x, int y)
 
static void node_draw_buttons_group (uiLayout *layout, bContext *C, PointerRNA *ptr)
 
static void node_draw_frame_prepare (const bContext *UNUSED(C), bNodeTree *ntree, bNode *node)
 
static void node_draw_frame_label (bNodeTree *ntree, bNode *node, const float aspect)
 
static void node_draw_frame (const bContext *C, ARegion *region, SpaceNode *snode, bNodeTree *ntree, bNode *node, bNodeInstanceKey UNUSED(key))
 
static int node_resize_area_frame (bNode *node, int x, int y)
 
static void node_buts_frame_ex (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_draw_reroute_prepare (const bContext *UNUSED(C), bNodeTree *UNUSED(ntree), bNode *node)
 
static void node_draw_reroute (const bContext *C, ARegion *region, SpaceNode *UNUSED(snode), bNodeTree *ntree, bNode *node, bNodeInstanceKey UNUSED(key))
 
static int node_tweak_area_reroute (bNode *node, int x, int y)
 
static void node_common_set_butfunc (bNodeType *ntype)
 
static void node_buts_image_user (uiLayout *layout, bContext *C, PointerRNA *ptr, PointerRNA *imaptr, PointerRNA *iuserptr, const bool show_layer_selection, const bool show_color_management)
 
static void node_shader_buts_mapping (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_shader_buts_vector_rotate (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_shader_buts_vect_math (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_shader_buts_vect_transform (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_shader_buts_attribute (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_shader_buts_wireframe (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_shader_buts_tex_image (uiLayout *layout, bContext *C, PointerRNA *ptr)
 
static void node_shader_buts_tex_image_ex (uiLayout *layout, bContext *C, PointerRNA *ptr)
 
static void node_shader_buts_tex_environment (uiLayout *layout, bContext *C, PointerRNA *ptr)
 
static void node_shader_buts_tex_environment_ex (uiLayout *layout, bContext *C, PointerRNA *ptr)
 
static void node_shader_buts_tex_sky (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_shader_buts_tex_gradient (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_shader_buts_tex_magic (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_shader_buts_tex_brick (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_shader_buts_tex_wave (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_shader_buts_tex_musgrave (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_shader_buts_tex_voronoi (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_shader_buts_tex_noise (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_shader_buts_tex_pointdensity (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_shader_buts_tex_coord (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_shader_buts_bump (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_shader_buts_uvmap (uiLayout *layout, bContext *C, PointerRNA *ptr)
 
static void node_shader_buts_vertex_color (uiLayout *layout, bContext *C, PointerRNA *ptr)
 
static void node_shader_buts_uvalongstroke (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_shader_buts_normal_map (uiLayout *layout, bContext *C, PointerRNA *ptr)
 
static void node_shader_buts_displacement (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_shader_buts_tangent (uiLayout *layout, bContext *C, PointerRNA *ptr)
 
static void node_shader_buts_glossy (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_shader_buts_principled (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_shader_buts_anisotropic (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_shader_buts_subsurface (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_shader_buts_toon (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_shader_buts_hair (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_shader_buts_principled_hair (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_shader_buts_ies (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_shader_buts_script (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_shader_buts_script_ex (uiLayout *layout, bContext *C, PointerRNA *ptr)
 
static void node_buts_output_shader (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_buts_output_linestyle (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_shader_buts_bevel (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_shader_buts_ambient_occlusion (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_shader_buts_white_noise (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_shader_buts_output_aov (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_shader_set_butfunc (bNodeType *ntype)
 
static void node_buts_image_views (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr, PointerRNA *imaptr)
 
static void node_composit_buts_image (uiLayout *layout, bContext *C, PointerRNA *ptr)
 
static void node_composit_buts_image_ex (uiLayout *layout, bContext *C, PointerRNA *ptr)
 
static void node_composit_buts_viewlayers (uiLayout *layout, bContext *C, PointerRNA *ptr)
 
static void node_composit_buts_blur (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_dblur (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_bilateralblur (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_defocus (uiLayout *layout, bContext *C, PointerRNA *ptr)
 
static void node_composit_buts_antialiasing (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_glare (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_tonemap (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_lensdist (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_vecblur (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_filter (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_flip (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_crop (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_splitviewer (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_double_edge_mask (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_map_range (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_map_value (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_alphaover (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_zcombine (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_dilateerode (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_inpaint (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_despeckle (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_diff_matte (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_distance_matte (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_color_spill (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_chroma_matte (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_color_matte (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_channel_matte (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_luma_matte (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_map_uv (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_id_mask (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_file_output (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_file_output_ex (uiLayout *layout, bContext *C, PointerRNA *ptr)
 
static void node_composit_buts_scale (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_rotate (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_invert (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_premulkey (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_view_levels (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_colorbalance (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_colorbalance_ex (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_huecorrect (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_ycc (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_movieclip (uiLayout *layout, bContext *C, PointerRNA *ptr)
 
static void node_composit_buts_movieclip_ex (uiLayout *layout, bContext *C, PointerRNA *ptr)
 
static void node_composit_buts_stabilize2d (uiLayout *layout, bContext *C, PointerRNA *ptr)
 
static void node_composit_buts_translate (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_transform (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_moviedistortion (uiLayout *layout, bContext *C, PointerRNA *ptr)
 
static void node_composit_buts_colorcorrection (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_colorcorrection_ex (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_set_alpha (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_switch (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_switch_view_ex (uiLayout *layout, bContext *UNUSED(C), PointerRNA *UNUSED(ptr))
 
static void node_composit_buts_boxmask (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_bokehimage (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_bokehblur (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_backdrop_viewer (SpaceNode *snode, ImBuf *backdrop, bNode *node, int x, int y)
 
static void node_composit_backdrop_boxmask (SpaceNode *snode, ImBuf *backdrop, bNode *node, int x, int y)
 
static void node_composit_backdrop_ellipsemask (SpaceNode *snode, ImBuf *backdrop, bNode *node, int x, int y)
 
static void node_composit_buts_ellipsemask (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_composite (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_viewer (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_viewer_ex (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_mask (uiLayout *layout, bContext *C, PointerRNA *ptr)
 
static void node_composit_buts_keyingscreen (uiLayout *layout, bContext *C, PointerRNA *ptr)
 
static void node_composit_buts_keying (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_trackpos (uiLayout *layout, bContext *C, PointerRNA *ptr)
 
static void node_composit_buts_planetrackdeform (uiLayout *layout, bContext *C, PointerRNA *ptr)
 
static void node_composit_buts_cornerpin (uiLayout *UNUSED(layout), bContext *UNUSED(C), PointerRNA *UNUSED(ptr))
 
static void node_composit_buts_sunbeams (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_cryptomatte_legacy (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_cryptomatte_legacy_ex (uiLayout *layout, bContext *UNUSED(C), PointerRNA *UNUSED(ptr))
 
static void node_composit_buts_cryptomatte (uiLayout *layout, bContext *C, PointerRNA *ptr)
 
static void node_composit_buts_brightcontrast (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_buts_denoise (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_composit_set_butfunc (bNodeType *ntype)
 
static void node_texture_buts_bricks (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_texture_buts_proc (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_texture_buts_image (uiLayout *layout, bContext *C, PointerRNA *ptr)
 
static void node_texture_buts_image_ex (uiLayout *layout, bContext *C, PointerRNA *ptr)
 
static void node_texture_buts_output (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void node_texture_set_butfunc (bNodeType *ntype)
 
static void node_property_update_default (Main *bmain, Scene *UNUSED(scene), PointerRNA *ptr)
 
static void node_socket_template_properties_update (bNodeType *ntype, bNodeSocketTemplate *stemp)
 
static void node_template_properties_update (bNodeType *ntype)
 
static void node_socket_undefined_draw (bContext *UNUSED(C), uiLayout *layout, PointerRNA *UNUSED(ptr), PointerRNA *UNUSED(node_ptr), const char *UNUSED(text))
 
static void node_socket_undefined_draw_color (bContext *UNUSED(C), PointerRNA *UNUSED(ptr), PointerRNA *UNUSED(node_ptr), float *r_color)
 
static void node_socket_undefined_interface_draw (bContext *UNUSED(C), uiLayout *layout, PointerRNA *UNUSED(ptr))
 
static void node_socket_undefined_interface_draw_color (bContext *UNUSED(C), PointerRNA *UNUSED(ptr), float *r_color)
 
void ED_node_init_butfuncs (void)
 
void ED_init_custom_node_type (bNodeType *ntype)
 
void ED_init_custom_node_socket_type (bNodeSocketType *stype)
 
static void std_node_socket_draw_color (bContext *UNUSED(C), PointerRNA *ptr, PointerRNA *UNUSED(node_ptr), float *r_color)
 
static void std_node_socket_interface_draw_color (bContext *UNUSED(C), PointerRNA *ptr, float *r_color)
 
static void node_file_output_socket_draw (bContext *C, uiLayout *layout, PointerRNA *ptr, PointerRNA *node_ptr)
 
static void std_node_socket_draw (bContext *C, uiLayout *layout, PointerRNA *ptr, PointerRNA *node_ptr, const char *text)
 
static void std_node_socket_interface_draw (bContext *UNUSED(C), uiLayout *layout, PointerRNA *ptr)
 
void ED_init_standard_node_socket_type (bNodeSocketType *stype)
 
static void node_socket_virtual_draw_color (bContext *UNUSED(C), PointerRNA *UNUSED(ptr), PointerRNA *UNUSED(node_ptr), float *r_color)
 
void ED_init_node_socket_type_virtual (bNodeSocketType *stype)
 
void draw_nodespace_back_pix (const bContext *C, ARegion *region, SpaceNode *snode, bNodeInstanceKey parent_key)
 
bool node_link_bezier_handles (const View2D *v2d, const SpaceNode *snode, const bNodeLink *link, float vec[4][2])
 
bool node_link_bezier_points (const View2D *v2d, const SpaceNode *snode, const bNodeLink *link, float coord_array[][2], const int resol)
 
static void nodelink_batch_reset (void)
 
static void set_nodelink_vertex (GPUVertBuf *vbo, uint uv_id, uint pos_id, uint exp_id, uint v, const uchar uv[2], const float pos[2], const float exp[2])
 
static void nodelink_batch_init (void)
 
static char nodelink_get_color_id (int th_col)
 
static void nodelink_batch_draw (const SpaceNode *snode)
 
void nodelink_batch_start (SpaceNode *UNUSED(snode))
 
void nodelink_batch_end (SpaceNode *snode)
 
static void nodelink_batch_add_link (const SpaceNode *snode, const float p0[2], const float p1[2], const float p2[2], const float p3[2], int th_col1, int th_col2, int th_col3, bool drawarrow, bool drawmuted)
 
void node_draw_link_bezier (const View2D *v2d, const SpaceNode *snode, const bNodeLink *link, int th_col1, int th_col2, int th_col3)
 
void node_draw_link (View2D *v2d, SpaceNode *snode, bNodeLink *link)
 
void ED_node_draw_snap (View2D *v2d, const float cent[2], float size, NodeBorder border, uint pos)
 

Variables

static float _sample_col [4] = {SAMPLE_FLT_ISNONE}
 
static const float virtual_node_socket_color [4] = {0.2, 0.2, 0.2, 1.0}
 
static const float std_node_socket_colors [][4]
 
static float arrow_verts [3][2] = {{-1.0f, 1.0f}, {0.0f, 0.0f}, {-1.0f, -1.0f}}
 
static float arrow_expand_axis [3][2] = {{0.7071f, 0.7071f}, {M_SQRT2, 0.0f}, {0.7071f, -0.7071f}}
 
static float mute_verts [3][2] = {{0.7071f, 1.0f}, {0.7071f, 0.0f}, {0.7071f, -1.0f}}
 
static float mute_expand_axis [3][2] = {{1.0f, 0.0f}, {1.0f, 0.0f}, {1.0f, -0.0f}}
 
struct {
   GPUBatch *   batch
 
   GPUBatch *   batch_single
 
   GPUVertBuf *   inst_vbo
 
   uint   p0_id
 
   uint   p1_id
 
   uint   p2_id
 
   uint   p3_id
 
   uint   colid_id
 
   uint   muted_id
 
   GPUVertBufRaw   p0_step
 
   GPUVertBufRaw   p1_step
 
   GPUVertBufRaw   p2_step
 
   GPUVertBufRaw   p3_step
 
   GPUVertBufRaw   colid_step
 
   GPUVertBufRaw   muted_step
 
   uint   count
 
   bool   enabled
 
g_batch_link = {0}
 

Detailed Description

lower level node drawing for nodes (boarders, headers etc), also node layout.

Definition in file drawnode.c.

Macro Definition Documentation

◆ ARROW_SIZE

#define ARROW_SIZE   (7 * UI_DPI_FAC)

Definition at line 3769 of file drawnode.c.

◆ DEFAULT_FLAGS

#define DEFAULT_FLAGS   UI_ITEM_R_SPLIT_EMPTY_NAME

Definition at line 81 of file drawnode.c.

◆ LINK_RESOL

#define LINK_RESOL   24

Definition at line 3767 of file drawnode.c.

◆ LINK_WIDTH

#define LINK_WIDTH   (2.5f * UI_DPI_FAC)

Definition at line 3768 of file drawnode.c.

◆ NODE_REROUTE_SIZE

#define NODE_REROUTE_SIZE   8.0f

Definition at line 501 of file drawnode.c.

◆ NODELINK_GROUP_SIZE

#define NODELINK_GROUP_SIZE   256

Definition at line 3766 of file drawnode.c.

◆ SAMPLE_FLT_ISNONE

#define SAMPLE_FLT_ISNONE   FLT_MAX

Definition at line 167 of file drawnode.c.

Function Documentation

◆ draw_nodespace_back_pix()

void draw_nodespace_back_pix ( const bContext C,
ARegion region,
SpaceNode snode,
bNodeInstanceKey  parent_key 
)

◆ ED_init_custom_node_socket_type()

void ED_init_custom_node_socket_type ( bNodeSocketType stype)

Definition at line 3318 of file drawnode.c.

References bNodeSocketType::draw, and node_socket_button_label().

◆ ED_init_custom_node_type()

void ED_init_custom_node_type ( bNodeType ntype)

◆ ED_init_node_socket_type_virtual()

void ED_init_node_socket_type_virtual ( bNodeSocketType stype)

◆ ED_init_standard_node_socket_type()

void ED_init_standard_node_socket_type ( bNodeSocketType stype)

◆ ED_node_draw_snap()

void ED_node_draw_snap ( View2D v2d,
const float  cent[2],
float  size,
NodeBorder  border,
uint  pos 
)

◆ ED_node_init_butfuncs()

void ED_node_init_butfuncs ( void  )

◆ ED_node_sample_set()

void ED_node_sample_set ( const float  col[4])

Definition at line 170 of file drawnode.c.

References _sample_col, col, copy_v4_fl(), copy_v4_v4(), and SAMPLE_FLT_ISNONE.

Referenced by sample_apply(), and sample_exit().

◆ node_buts_colorramp()

static void node_buts_colorramp ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

◆ node_buts_curvecol()

static void node_buts_curvecol ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

◆ node_buts_curvevec()

static void node_buts_curvevec ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 162 of file drawnode.c.

References ptr, and uiTemplateCurveMapping().

Referenced by node_composit_set_butfunc(), and node_shader_set_butfunc().

◆ node_buts_frame_ex()

static void node_buts_frame_ex ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 494 of file drawnode.c.

References DEFAULT_FLAGS, IFACE_, NULL, ptr, and uiItemR().

Referenced by node_common_set_butfunc().

◆ node_buts_image_user()

static void node_buts_image_user ( uiLayout layout,
bContext C,
PointerRNA ptr,
PointerRNA imaptr,
PointerRNA iuserptr,
const bool  show_layer_selection,
const bool  show_color_management 
)
static

◆ node_buts_image_views()

static void node_buts_image_views ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr,
PointerRNA imaptr 
)
static

◆ node_buts_math()

static void node_buts_math ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

◆ node_buts_mix_rgb()

static void node_buts_mix_rgb ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

◆ node_buts_normal()

static void node_buts_normal ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

◆ node_buts_output_linestyle()

static void node_buts_output_linestyle ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 1133 of file drawnode.c.

References col, DEFAULT_FLAGS, NULL, ptr, uiItemR(), uiLayoutColumn(), and uiLayoutRow().

Referenced by node_shader_set_butfunc().

◆ node_buts_output_shader()

static void node_buts_output_shader ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 1128 of file drawnode.c.

References DEFAULT_FLAGS, ptr, and uiItemR().

Referenced by node_shader_set_butfunc().

◆ node_buts_rgb()

static void node_buts_rgb ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

◆ node_buts_texture()

static void node_buts_texture ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

◆ node_buts_time()

static void node_buts_time ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

◆ node_buts_value()

static void node_buts_value ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

◆ node_common_set_butfunc()

static void node_common_set_butfunc ( bNodeType ntype)
static

◆ node_composit_backdrop_boxmask()

static void node_composit_backdrop_boxmask ( SpaceNode snode,
ImBuf backdrop,
bNode node,
int  x,
int  y 
)
static

◆ node_composit_backdrop_ellipsemask()

static void node_composit_backdrop_ellipsemask ( SpaceNode snode,
ImBuf backdrop,
bNode node,
int  x,
int  y 
)
static

◆ node_composit_backdrop_viewer()

static void node_composit_backdrop_viewer ( SpaceNode snode,
ImBuf backdrop,
bNode node,
int  x,
int  y 
)
static

◆ node_composit_buts_alphaover()

static void node_composit_buts_alphaover ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 1708 of file drawnode.c.

References col, DEFAULT_FLAGS, NULL, ptr, uiItemR(), and uiLayoutColumn().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_antialiasing()

static void node_composit_buts_antialiasing ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 1531 of file drawnode.c.

References col, NULL, ptr, uiItemR(), and uiLayoutColumn().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_bilateralblur()

static void node_composit_buts_bilateralblur ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 1489 of file drawnode.c.

References col, DEFAULT_FLAGS, NULL, ptr, uiItemR(), and uiLayoutColumn().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_blur()

static void node_composit_buts_blur ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

◆ node_composit_buts_bokehblur()

static void node_composit_buts_bokehblur ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 2368 of file drawnode.c.

References DEFAULT_FLAGS, NULL, ptr, and uiItemR().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_bokehimage()

static void node_composit_buts_bokehimage ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 2359 of file drawnode.c.

References DEFAULT_FLAGS, NULL, ptr, UI_ITEM_R_SLIDER, and uiItemR().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_boxmask()

static void node_composit_buts_boxmask ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 2343 of file drawnode.c.

References DEFAULT_FLAGS, NULL, ptr, UI_ITEM_R_SLIDER, uiItemR(), and uiLayoutRow().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_brightcontrast()

static void node_composit_buts_brightcontrast ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 2740 of file drawnode.c.

References DEFAULT_FLAGS, NULL, ptr, and uiItemR().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_channel_matte()

static void node_composit_buts_channel_matte ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

◆ node_composit_buts_chroma_matte()

static void node_composit_buts_chroma_matte ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 1805 of file drawnode.c.

References col, DEFAULT_FLAGS, NULL, ptr, UI_ITEM_R_SLIDER, uiItemR(), and uiLayoutColumn().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_color_matte()

static void node_composit_buts_color_matte ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 1819 of file drawnode.c.

References col, DEFAULT_FLAGS, NULL, ptr, UI_ITEM_R_SLIDER, uiItemR(), and uiLayoutColumn().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_color_spill()

static void node_composit_buts_color_spill ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

◆ node_composit_buts_colorbalance()

static void node_composit_buts_colorbalance ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

◆ node_composit_buts_colorbalance_ex()

static void node_composit_buts_colorbalance_ex ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 2104 of file drawnode.c.

References DEFAULT_FLAGS, NULL, ptr, RNA_enum_get(), uiItemR(), and uiTemplateColorPicker().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_colorcorrection()

static void node_composit_buts_colorcorrection ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 2217 of file drawnode.c.

References DEFAULT_FLAGS, IFACE_, NULL, ptr, UI_ITEM_R_SLIDER, uiItemL(), uiItemR(), and uiLayoutRow().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_colorcorrection_ex()

static void node_composit_buts_colorcorrection_ex ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 2273 of file drawnode.c.

References DEFAULT_FLAGS, IFACE_, NULL, ptr, UI_ITEM_R_SLIDER, uiItemL(), uiItemR(), and uiLayoutRow().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_composite()

static void node_composit_buts_composite ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 2509 of file drawnode.c.

References DEFAULT_FLAGS, NULL, ptr, and uiItemR().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_cornerpin()

static void node_composit_buts_cornerpin ( uiLayout UNUSEDlayout,
bContext UNUSEDC,
PointerRNA UNUSEDptr 
)
static

Definition at line 2670 of file drawnode.c.

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_crop()

static void node_composit_buts_crop ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 1633 of file drawnode.c.

References col, DEFAULT_FLAGS, IFACE_, NULL, ptr, RNA_boolean_get(), uiItemR(), and uiLayoutColumn().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_cryptomatte()

static void node_composit_buts_cryptomatte ( uiLayout layout,
bContext C,
PointerRNA ptr 
)
static

◆ node_composit_buts_cryptomatte_legacy()

static void node_composit_buts_cryptomatte_legacy ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

◆ node_composit_buts_cryptomatte_legacy_ex()

static void node_composit_buts_cryptomatte_legacy_ex ( uiLayout layout,
bContext UNUSEDC,
PointerRNA UNUSEDptr 
)
static

Definition at line 2697 of file drawnode.c.

References IFACE_, and uiItemO().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_dblur()

static void node_composit_buts_dblur ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 1465 of file drawnode.c.

References col, DEFAULT_FLAGS, IFACE_, NULL, ptr, uiItemL(), uiItemR(), uiItemS(), and uiLayoutColumn().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_defocus()

static void node_composit_buts_defocus ( uiLayout layout,
bContext C,
PointerRNA ptr 
)
static

◆ node_composit_buts_denoise()

static void node_composit_buts_denoise ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 2747 of file drawnode.c.

References BLI_cpu_support_sse41(), DEFAULT_FLAGS, IFACE_, NULL, ptr, uiItemL(), and uiItemR().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_despeckle()

static void node_composit_buts_despeckle ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 1745 of file drawnode.c.

References col, DEFAULT_FLAGS, NULL, ptr, uiItemR(), and uiLayoutColumn().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_diff_matte()

static void node_composit_buts_diff_matte ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 1754 of file drawnode.c.

References col, DEFAULT_FLAGS, NULL, ptr, UI_ITEM_R_SLIDER, uiItemR(), and uiLayoutColumn().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_dilateerode()

static void node_composit_buts_dilateerode ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

◆ node_composit_buts_distance_matte()

static void node_composit_buts_distance_matte ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

◆ node_composit_buts_double_edge_mask()

static void node_composit_buts_double_edge_mask ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 1665 of file drawnode.c.

References col, DEFAULT_FLAGS, IFACE_, ptr, uiItemL(), uiItemR(), and uiLayoutColumn().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_ellipsemask()

static void node_composit_buts_ellipsemask ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 2495 of file drawnode.c.

References DEFAULT_FLAGS, NULL, ptr, UI_ITEM_R_SLIDER, uiItemR(), and uiLayoutRow().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_file_output()

static void node_composit_buts_file_output ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

◆ node_composit_buts_file_output_ex()

static void node_composit_buts_file_output_ex ( uiLayout layout,
bContext C,
PointerRNA ptr 
)
static

◆ node_composit_buts_filter()

static void node_composit_buts_filter ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 1623 of file drawnode.c.

References DEFAULT_FLAGS, ptr, and uiItemR().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_flip()

static void node_composit_buts_flip ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 1628 of file drawnode.c.

References DEFAULT_FLAGS, ptr, and uiItemR().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_glare()

static void node_composit_buts_glare ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 1543 of file drawnode.c.

References DEFAULT_FLAGS, NULL, ptr, RNA_enum_get(), UI_ITEM_R_SLIDER, and uiItemR().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_huecorrect()

static void node_composit_buts_huecorrect ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

◆ node_composit_buts_id_mask()

static void node_composit_buts_id_mask ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 1871 of file drawnode.c.

References DEFAULT_FLAGS, NULL, ptr, and uiItemR().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_image()

static void node_composit_buts_image ( uiLayout layout,
bContext C,
PointerRNA ptr 
)
static

◆ node_composit_buts_image_ex()

static void node_composit_buts_image_ex ( uiLayout layout,
bContext C,
PointerRNA ptr 
)
static

◆ node_composit_buts_inpaint()

static void node_composit_buts_inpaint ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 1740 of file drawnode.c.

References DEFAULT_FLAGS, NULL, ptr, and uiItemR().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_invert()

static void node_composit_buts_invert ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 2041 of file drawnode.c.

References col, DEFAULT_FLAGS, NULL, ptr, uiItemR(), and uiLayoutColumn().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_keying()

static void node_composit_buts_keying ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 2571 of file drawnode.c.

References DEFAULT_FLAGS, NULL, ptr, and uiItemR().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_keyingscreen()

static void node_composit_buts_keyingscreen ( uiLayout layout,
bContext C,
PointerRNA ptr 
)
static

◆ node_composit_buts_lensdist()

static void node_composit_buts_lensdist ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

◆ node_composit_buts_luma_matte()

static void node_composit_buts_luma_matte ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 1857 of file drawnode.c.

References col, DEFAULT_FLAGS, NULL, ptr, UI_ITEM_R_SLIDER, uiItemR(), and uiLayoutColumn().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_map_range()

static void node_composit_buts_map_range ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 1679 of file drawnode.c.

References col, DEFAULT_FLAGS, NULL, ptr, uiItemR(), and uiLayoutColumn().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_map_uv()

static void node_composit_buts_map_uv ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 1866 of file drawnode.c.

References DEFAULT_FLAGS, NULL, ptr, and uiItemR().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_map_value()

static void node_composit_buts_map_value ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

◆ node_composit_buts_mask()

static void node_composit_buts_mask ( uiLayout layout,
bContext C,
PointerRNA ptr 
)
static

◆ node_composit_buts_movieclip()

static void node_composit_buts_movieclip ( uiLayout layout,
bContext C,
PointerRNA ptr 
)
static

Definition at line 2154 of file drawnode.c.

References C, NULL, ptr, UI_TEMPLATE_ID_FILTER_ALL, and uiTemplateID().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_movieclip_ex()

static void node_composit_buts_movieclip_ex ( uiLayout layout,
bContext C,
PointerRNA ptr 
)
static

◆ node_composit_buts_moviedistortion()

static void node_composit_buts_moviedistortion ( uiLayout layout,
bContext C,
PointerRNA ptr 
)
static

◆ node_composit_buts_planetrackdeform()

static void node_composit_buts_planetrackdeform ( uiLayout layout,
bContext C,
PointerRNA ptr 
)
static

◆ node_composit_buts_premulkey()

static void node_composit_buts_premulkey ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 2050 of file drawnode.c.

References DEFAULT_FLAGS, ptr, and uiItemR().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_rotate()

static void node_composit_buts_rotate ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 2036 of file drawnode.c.

References DEFAULT_FLAGS, ptr, and uiItemR().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_scale()

static void node_composit_buts_scale ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

◆ node_composit_buts_set_alpha()

static void node_composit_buts_set_alpha ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 2319 of file drawnode.c.

References DEFAULT_FLAGS, NULL, ptr, and uiItemR().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_splitviewer()

static void node_composit_buts_splitviewer ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

◆ node_composit_buts_stabilize2d()

static void node_composit_buts_stabilize2d ( uiLayout layout,
bContext C,
PointerRNA ptr 
)
static

◆ node_composit_buts_sunbeams()

static void node_composit_buts_sunbeams ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 2676 of file drawnode.c.

References DEFAULT_FLAGS, NULL, ptr, UI_ITEM_R_EXPAND, UI_ITEM_R_SLIDER, and uiItemR().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_switch()

static void node_composit_buts_switch ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 2324 of file drawnode.c.

References DEFAULT_FLAGS, NULL, ptr, and uiItemR().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_switch_view_ex()

static void node_composit_buts_switch_view_ex ( uiLayout layout,
bContext UNUSEDC,
PointerRNA UNUSEDptr 
)
static

Definition at line 2329 of file drawnode.c.

References NULL, uiItemFullO(), and WM_OP_INVOKE_DEFAULT.

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_tonemap()

static void node_composit_buts_tonemap ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

◆ node_composit_buts_trackpos()

static void node_composit_buts_trackpos ( uiLayout layout,
bContext C,
PointerRNA ptr 
)
static

◆ node_composit_buts_transform()

static void node_composit_buts_transform ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 2198 of file drawnode.c.

References DEFAULT_FLAGS, ptr, and uiItemR().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_translate()

static void node_composit_buts_translate ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 2192 of file drawnode.c.

References DEFAULT_FLAGS, NULL, ptr, and uiItemR().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_vecblur()

static void node_composit_buts_vecblur ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 1607 of file drawnode.c.

References col, DEFAULT_FLAGS, IFACE_, NULL, ptr, uiItemL(), uiItemR(), and uiLayoutColumn().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_view_levels()

static void node_composit_buts_view_levels ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 2055 of file drawnode.c.

References DEFAULT_FLAGS, NULL, ptr, UI_ITEM_R_EXPAND, and uiItemR().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_viewer()

static void node_composit_buts_viewer ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 2514 of file drawnode.c.

References DEFAULT_FLAGS, NULL, ptr, and uiItemR().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_viewer_ex()

static void node_composit_buts_viewer_ex ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 2519 of file drawnode.c.

References col, DEFAULT_FLAGS, NULL, ptr, RNA_enum_get(), uiItemR(), and uiLayoutColumn().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_viewlayers()

static void node_composit_buts_viewlayers ( uiLayout layout,
bContext C,
PointerRNA ptr 
)
static

◆ node_composit_buts_ycc()

static void node_composit_buts_ycc ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 2149 of file drawnode.c.

References DEFAULT_FLAGS, ptr, and uiItemR().

Referenced by node_composit_set_butfunc().

◆ node_composit_buts_zcombine()

static void node_composit_buts_zcombine ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 1717 of file drawnode.c.

References col, DEFAULT_FLAGS, NULL, ptr, uiItemR(), and uiLayoutColumn().

Referenced by node_composit_set_butfunc().

◆ node_composit_set_butfunc()

static void node_composit_set_butfunc ( bNodeType ntype)
static

Definition at line 2764 of file drawnode.c.

References CMP_NODE_ALPHAOVER, CMP_NODE_ANTIALIASING, CMP_NODE_BILATERALBLUR, CMP_NODE_BLUR, CMP_NODE_BOKEHBLUR, CMP_NODE_BOKEHIMAGE, CMP_NODE_BRIGHTCONTRAST, CMP_NODE_CHANNEL_MATTE, CMP_NODE_CHROMA_MATTE, CMP_NODE_COLOR_MATTE, CMP_NODE_COLOR_SPILL, CMP_NODE_COLORBALANCE, CMP_NODE_COLORCORRECTION, CMP_NODE_COMBYCCA, CMP_NODE_COMPOSITE, CMP_NODE_CORNERPIN, CMP_NODE_CROP, CMP_NODE_CRYPTOMATTE, CMP_NODE_CRYPTOMATTE_LEGACY, CMP_NODE_CURVE_RGB, CMP_NODE_CURVE_VEC, CMP_NODE_DBLUR, CMP_NODE_DEFOCUS, CMP_NODE_DENOISE, CMP_NODE_DESPECKLE, CMP_NODE_DIFF_MATTE, CMP_NODE_DILATEERODE, CMP_NODE_DIST_MATTE, CMP_NODE_DOUBLEEDGEMASK, CMP_NODE_FILTER, CMP_NODE_FLIP, CMP_NODE_GLARE, CMP_NODE_HUECORRECT, CMP_NODE_ID_MASK, CMP_NODE_IMAGE, CMP_NODE_INPAINT, CMP_NODE_INVERT, CMP_NODE_KEYING, CMP_NODE_KEYINGSCREEN, CMP_NODE_LENSDIST, CMP_NODE_LUMA_MATTE, CMP_NODE_MAP_RANGE, CMP_NODE_MAP_UV, CMP_NODE_MAP_VALUE, CMP_NODE_MASK, CMP_NODE_MASK_BOX, CMP_NODE_MASK_ELLIPSE, CMP_NODE_MATH, CMP_NODE_MIX_RGB, CMP_NODE_MOVIECLIP, CMP_NODE_MOVIEDISTORTION, CMP_NODE_NORMAL, CMP_NODE_OUTPUT_FILE, CMP_NODE_PLANETRACKDEFORM, CMP_NODE_PREMULKEY, CMP_NODE_R_LAYERS, CMP_NODE_RGB, CMP_NODE_ROTATE, CMP_NODE_SCALE, CMP_NODE_SEPYCCA, CMP_NODE_SETALPHA, CMP_NODE_SPLITVIEWER, CMP_NODE_STABILIZE2D, CMP_NODE_SUNBEAMS, CMP_NODE_SWITCH, CMP_NODE_SWITCH_VIEW, CMP_NODE_TEXTURE, CMP_NODE_TIME, CMP_NODE_TONEMAP, CMP_NODE_TRACKPOS, CMP_NODE_TRANSFORM, CMP_NODE_TRANSLATE, CMP_NODE_VALTORGB, CMP_NODE_VALUE, CMP_NODE_VECBLUR, CMP_NODE_VIEW_LEVELS, CMP_NODE_VIEWER, CMP_NODE_ZCOMBINE, bNodeType::draw_backdrop, bNodeType::draw_buttons, bNodeType::draw_buttons_ex, node_buts_colorramp(), node_buts_curvecol(), node_buts_curvevec(), node_buts_math(), node_buts_mix_rgb(), node_buts_normal(), node_buts_rgb(), node_buts_texture(), node_buts_time(), node_buts_value(), node_composit_backdrop_boxmask(), node_composit_backdrop_ellipsemask(), node_composit_backdrop_viewer(), node_composit_buts_alphaover(), node_composit_buts_antialiasing(), node_composit_buts_bilateralblur(), node_composit_buts_blur(), node_composit_buts_bokehblur(), node_composit_buts_bokehimage(), node_composit_buts_boxmask(), node_composit_buts_brightcontrast(), node_composit_buts_channel_matte(), node_composit_buts_chroma_matte(), node_composit_buts_color_matte(), node_composit_buts_color_spill(), node_composit_buts_colorbalance(), node_composit_buts_colorbalance_ex(), node_composit_buts_colorcorrection(), node_composit_buts_colorcorrection_ex(), node_composit_buts_composite(), node_composit_buts_cornerpin(), node_composit_buts_crop(), node_composit_buts_cryptomatte(), node_composit_buts_cryptomatte_legacy(), node_composit_buts_cryptomatte_legacy_ex(), node_composit_buts_dblur(), node_composit_buts_defocus(), node_composit_buts_denoise(), node_composit_buts_despeckle(), node_composit_buts_diff_matte(), node_composit_buts_dilateerode(), node_composit_buts_distance_matte(), node_composit_buts_double_edge_mask(), node_composit_buts_ellipsemask(), node_composit_buts_file_output(), node_composit_buts_file_output_ex(), node_composit_buts_filter(), node_composit_buts_flip(), node_composit_buts_glare(), node_composit_buts_huecorrect(), node_composit_buts_id_mask(), node_composit_buts_image(), node_composit_buts_image_ex(), node_composit_buts_inpaint(), node_composit_buts_invert(), node_composit_buts_keying(), node_composit_buts_keyingscreen(), node_composit_buts_lensdist(), node_composit_buts_luma_matte(), node_composit_buts_map_range(), node_composit_buts_map_uv(), node_composit_buts_map_value(), node_composit_buts_mask(), node_composit_buts_movieclip(), node_composit_buts_movieclip_ex(), node_composit_buts_moviedistortion(), node_composit_buts_planetrackdeform(), node_composit_buts_premulkey(), node_composit_buts_rotate(), node_composit_buts_scale(), node_composit_buts_set_alpha(), node_composit_buts_splitviewer(), node_composit_buts_stabilize2d(), node_composit_buts_sunbeams(), node_composit_buts_switch(), node_composit_buts_switch_view_ex(), node_composit_buts_tonemap(), node_composit_buts_trackpos(), node_composit_buts_transform(), node_composit_buts_translate(), node_composit_buts_vecblur(), node_composit_buts_view_levels(), node_composit_buts_viewer(), node_composit_buts_viewer_ex(), node_composit_buts_viewlayers(), node_composit_buts_ycc(), node_composit_buts_zcombine(), and bNodeType::type.

Referenced by ED_node_init_butfuncs().

◆ node_draw_buttons_group()

static void node_draw_buttons_group ( uiLayout layout,
bContext C,
PointerRNA ptr 
)
static

Definition at line 274 of file drawnode.c.

References C, NULL, ptr, UI_TEMPLATE_ID_FILTER_ALL, and uiTemplateIDBrowse().

Referenced by node_common_set_butfunc().

◆ node_draw_frame()

static void node_draw_frame ( const bContext C,
ARegion region,
SpaceNode snode,
bNodeTree ntree,
bNode node,
bNodeInstanceKey   UNUSEDkey 
)
static

◆ node_draw_frame_label()

static void node_draw_frame_label ( bNodeTree ntree,
bNode node,
const float  aspect 
)
static

◆ node_draw_frame_prepare()

static void node_draw_frame_prepare ( const bContext UNUSEDC,
bNodeTree ntree,
bNode node 
)
static

◆ node_draw_link()

void node_draw_link ( View2D v2d,
SpaceNode snode,
bNodeLink link 
)

◆ node_draw_link_bezier()

void node_draw_link_bezier ( const View2D v2d,
const SpaceNode snode,
const bNodeLink link,
int  th_col1,
int  th_col2,
int  th_col3 
)

◆ node_draw_reroute()

static void node_draw_reroute ( const bContext C,
ARegion region,
SpaceNode UNUSEDsnode,
bNodeTree ntree,
bNode node,
bNodeInstanceKey   UNUSEDkey 
)
static

◆ node_draw_reroute_prepare()

static void node_draw_reroute_prepare ( const bContext UNUSEDC,
bNodeTree UNUSEDntree,
bNode node 
)
static

◆ node_file_output_socket_draw()

static void node_file_output_socket_draw ( bContext C,
uiLayout layout,
PointerRNA ptr,
PointerRNA node_ptr 
)
static

◆ node_link_bezier_handles()

bool node_link_bezier_handles ( const View2D v2d,
const SpaceNode snode,
const bNodeLink link,
float  vec[4][2] 
)

◆ node_link_bezier_points()

bool node_link_bezier_points ( const View2D v2d,
const SpaceNode snode,
const bNodeLink link,
float  coord_array[][2],
const int  resol 
)

◆ node_property_update_default()

static void node_property_update_default ( Main bmain,
Scene UNUSEDscene,
PointerRNA ptr 
)
static

◆ node_resize_area_default()

static int node_resize_area_default ( bNode node,
int  x,
int  y 
)
static

◆ node_resize_area_frame()

static int node_resize_area_frame ( bNode node,
int  x,
int  y 
)
static

◆ node_shader_buts_ambient_occlusion()

static void node_shader_buts_ambient_occlusion ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 1148 of file drawnode.c.

References DEFAULT_FLAGS, NULL, ptr, and uiItemR().

Referenced by node_shader_set_butfunc().

◆ node_shader_buts_anisotropic()

static void node_shader_buts_anisotropic ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 1052 of file drawnode.c.

References DEFAULT_FLAGS, ptr, and uiItemR().

Referenced by node_shader_set_butfunc().

◆ node_shader_buts_attribute()

static void node_shader_buts_attribute ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 723 of file drawnode.c.

References DEFAULT_FLAGS, IFACE_, ptr, and uiItemR().

Referenced by node_shader_set_butfunc().

◆ node_shader_buts_bevel()

static void node_shader_buts_bevel ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 1143 of file drawnode.c.

References DEFAULT_FLAGS, NULL, ptr, and uiItemR().

Referenced by node_shader_set_butfunc().

◆ node_shader_buts_bump()

static void node_shader_buts_bump ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 949 of file drawnode.c.

References DEFAULT_FLAGS, NULL, ptr, and uiItemR().

Referenced by node_shader_set_butfunc().

◆ node_shader_buts_clamp()

static void node_shader_buts_clamp ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 225 of file drawnode.c.

References DEFAULT_FLAGS, ptr, and uiItemR().

Referenced by node_shader_set_butfunc().

◆ node_shader_buts_displacement()

static void node_shader_buts_displacement ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 1010 of file drawnode.c.

References DEFAULT_FLAGS, ptr, and uiItemR().

Referenced by node_shader_set_butfunc().

◆ node_shader_buts_glossy()

static void node_shader_buts_glossy ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 1041 of file drawnode.c.

References DEFAULT_FLAGS, ptr, and uiItemR().

Referenced by node_shader_set_butfunc().

◆ node_shader_buts_hair()

static void node_shader_buts_hair ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 1067 of file drawnode.c.

References DEFAULT_FLAGS, ptr, and uiItemR().

Referenced by node_shader_set_butfunc().

◆ node_shader_buts_ies()

static void node_shader_buts_ies ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

◆ node_shader_buts_map_range()

static void node_shader_buts_map_range ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

◆ node_shader_buts_mapping()

static void node_shader_buts_mapping ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 700 of file drawnode.c.

References DEFAULT_FLAGS, NULL, ptr, and uiItemR().

Referenced by node_shader_set_butfunc().

◆ node_shader_buts_normal_map()

static void node_shader_buts_normal_map ( uiLayout layout,
bContext C,
PointerRNA ptr 
)
static

◆ node_shader_buts_output_aov()

static void node_shader_buts_output_aov ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 1162 of file drawnode.c.

References DEFAULT_FLAGS, NULL, ptr, and uiItemR().

Referenced by node_shader_set_butfunc().

◆ node_shader_buts_principled()

static void node_shader_buts_principled ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 1046 of file drawnode.c.

References DEFAULT_FLAGS, ptr, and uiItemR().

Referenced by node_shader_set_butfunc().

◆ node_shader_buts_principled_hair()

static void node_shader_buts_principled_hair ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 1072 of file drawnode.c.

References DEFAULT_FLAGS, ptr, and uiItemR().

Referenced by node_shader_set_butfunc().

◆ node_shader_buts_script()

static void node_shader_buts_script ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

◆ node_shader_buts_script_ex()

static void node_shader_buts_script_ex ( uiLayout layout,
bContext C,
PointerRNA ptr 
)
static

◆ node_shader_buts_subsurface()

static void node_shader_buts_subsurface ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 1057 of file drawnode.c.

References DEFAULT_FLAGS, ptr, and uiItemR().

Referenced by node_shader_set_butfunc().

◆ node_shader_buts_tangent()

static void node_shader_buts_tangent ( uiLayout layout,
bContext C,
PointerRNA ptr 
)
static

◆ node_shader_buts_tex_brick()

static void node_shader_buts_tex_brick ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 849 of file drawnode.c.

References col, DEFAULT_FLAGS, IFACE_, ptr, UI_ITEM_R_SLIDER, uiItemR(), and uiLayoutColumn().

Referenced by node_shader_set_butfunc().

◆ node_shader_buts_tex_coord()

static void node_shader_buts_tex_coord ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 943 of file drawnode.c.

References DEFAULT_FLAGS, NULL, ptr, and uiItemR().

Referenced by node_shader_set_butfunc().

◆ node_shader_buts_tex_environment()

static void node_shader_buts_tex_environment ( uiLayout layout,
bContext C,
PointerRNA ptr 
)
static

◆ node_shader_buts_tex_environment_ex()

static void node_shader_buts_tex_environment_ex ( uiLayout layout,
bContext C,
PointerRNA ptr 
)
static

Definition at line 794 of file drawnode.c.

References C, DEFAULT_FLAGS, IFACE_, ptr, RNA_pointer_get(), uiItemR(), and uiTemplateImage().

Referenced by node_shader_set_butfunc().

◆ node_shader_buts_tex_gradient()

static void node_shader_buts_tex_gradient ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 839 of file drawnode.c.

References DEFAULT_FLAGS, ptr, and uiItemR().

Referenced by node_shader_set_butfunc().

◆ node_shader_buts_tex_image()

static void node_shader_buts_tex_image ( uiLayout layout,
bContext C,
PointerRNA ptr 
)
static

◆ node_shader_buts_tex_image_ex()

static void node_shader_buts_tex_image_ex ( uiLayout layout,
bContext C,
PointerRNA ptr 
)
static

Definition at line 765 of file drawnode.c.

References C, ptr, RNA_pointer_get(), and uiTemplateImage().

Referenced by node_shader_set_butfunc().

◆ node_shader_buts_tex_magic()

static void node_shader_buts_tex_magic ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 844 of file drawnode.c.

References DEFAULT_FLAGS, NULL, ptr, and uiItemR().

Referenced by node_shader_set_butfunc().

◆ node_shader_buts_tex_musgrave()

static void node_shader_buts_tex_musgrave ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 876 of file drawnode.c.

References DEFAULT_FLAGS, ptr, and uiItemR().

Referenced by node_shader_set_butfunc().

◆ node_shader_buts_tex_noise()

static void node_shader_buts_tex_noise ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 893 of file drawnode.c.

References DEFAULT_FLAGS, ptr, and uiItemR().

Referenced by node_shader_set_butfunc().

◆ node_shader_buts_tex_pointdensity()

static void node_shader_buts_tex_pointdensity ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

◆ node_shader_buts_tex_sky()

static void node_shader_buts_tex_sky ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

◆ node_shader_buts_tex_voronoi()

static void node_shader_buts_tex_voronoi ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

◆ node_shader_buts_tex_wave()

static void node_shader_buts_tex_wave ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 862 of file drawnode.c.

References DEFAULT_FLAGS, ptr, RNA_enum_get(), SHD_WAVE_BANDS, type, and uiItemR().

Referenced by node_shader_set_butfunc().

◆ node_shader_buts_toon()

static void node_shader_buts_toon ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 1062 of file drawnode.c.

References DEFAULT_FLAGS, ptr, and uiItemR().

Referenced by node_shader_set_butfunc().

◆ node_shader_buts_uvalongstroke()

static void node_shader_buts_uvalongstroke ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 988 of file drawnode.c.

References DEFAULT_FLAGS, NULL, ptr, and uiItemR().

Referenced by node_shader_set_butfunc().

◆ node_shader_buts_uvmap()

static void node_shader_buts_uvmap ( uiLayout layout,
bContext C,
PointerRNA ptr 
)
static

◆ node_shader_buts_vect_math()

static void node_shader_buts_vect_math ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 711 of file drawnode.c.

References DEFAULT_FLAGS, ptr, and uiItemR().

Referenced by node_shader_set_butfunc().

◆ node_shader_buts_vect_transform()

static void node_shader_buts_vect_transform ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 716 of file drawnode.c.

References DEFAULT_FLAGS, NULL, ptr, UI_ITEM_R_EXPAND, and uiItemR().

Referenced by node_shader_set_butfunc().

◆ node_shader_buts_vector_rotate()

static void node_shader_buts_vector_rotate ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 705 of file drawnode.c.

References DEFAULT_FLAGS, NULL, ptr, and uiItemR().

Referenced by node_shader_set_butfunc().

◆ node_shader_buts_vertex_color()

static void node_shader_buts_vertex_color ( uiLayout layout,
bContext C,
PointerRNA ptr 
)
static

◆ node_shader_buts_white_noise()

static void node_shader_buts_white_noise ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 1157 of file drawnode.c.

References DEFAULT_FLAGS, ptr, and uiItemR().

Referenced by node_shader_set_butfunc().

◆ node_shader_buts_wireframe()

static void node_shader_buts_wireframe ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 729 of file drawnode.c.

References DEFAULT_FLAGS, NULL, ptr, and uiItemR().

Referenced by node_shader_set_butfunc().

◆ node_shader_set_butfunc()

static void node_shader_set_butfunc ( bNodeType ntype)
static

Definition at line 1168 of file drawnode.c.

References bNodeType::draw_buttons, bNodeType::draw_buttons_ex, node_buts_colorramp(), node_buts_curvecol(), node_buts_curvevec(), node_buts_math(), node_buts_mix_rgb(), node_buts_normal(), node_buts_output_linestyle(), node_buts_output_shader(), node_buts_rgb(), node_buts_value(), node_shader_buts_ambient_occlusion(), node_shader_buts_anisotropic(), node_shader_buts_attribute(), node_shader_buts_bevel(), node_shader_buts_bump(), node_shader_buts_clamp(), node_shader_buts_displacement(), node_shader_buts_glossy(), node_shader_buts_hair(), node_shader_buts_ies(), node_shader_buts_map_range(), node_shader_buts_mapping(), node_shader_buts_normal_map(), node_shader_buts_output_aov(), node_shader_buts_principled(), node_shader_buts_principled_hair(), node_shader_buts_script(), node_shader_buts_script_ex(), node_shader_buts_subsurface(), node_shader_buts_tangent(), node_shader_buts_tex_brick(), node_shader_buts_tex_coord(), node_shader_buts_tex_environment(), node_shader_buts_tex_environment_ex(), node_shader_buts_tex_gradient(), node_shader_buts_tex_image(), node_shader_buts_tex_image_ex(), node_shader_buts_tex_magic(), node_shader_buts_tex_musgrave(), node_shader_buts_tex_noise(), node_shader_buts_tex_pointdensity(), node_shader_buts_tex_sky(), node_shader_buts_tex_voronoi(), node_shader_buts_tex_wave(), node_shader_buts_toon(), node_shader_buts_uvalongstroke(), node_shader_buts_uvmap(), node_shader_buts_vect_math(), node_shader_buts_vect_transform(), node_shader_buts_vector_rotate(), node_shader_buts_vertex_color(), node_shader_buts_white_noise(), node_shader_buts_wireframe(), SH_NODE_AMBIENT_OCCLUSION, SH_NODE_ATTRIBUTE, SH_NODE_BEVEL, SH_NODE_BSDF_ANISOTROPIC, SH_NODE_BSDF_GLASS, SH_NODE_BSDF_GLOSSY, SH_NODE_BSDF_HAIR, SH_NODE_BSDF_HAIR_PRINCIPLED, SH_NODE_BSDF_PRINCIPLED, SH_NODE_BSDF_REFRACTION, SH_NODE_BSDF_TOON, SH_NODE_BUMP, SH_NODE_CLAMP, SH_NODE_CURVE_RGB, SH_NODE_CURVE_VEC, SH_NODE_DISPLACEMENT, SH_NODE_MAP_RANGE, SH_NODE_MAPPING, SH_NODE_MATH, SH_NODE_MIX_RGB, SH_NODE_NORMAL, SH_NODE_NORMAL_MAP, SH_NODE_OUTPUT_AOV, SH_NODE_OUTPUT_LIGHT, SH_NODE_OUTPUT_LINESTYLE, SH_NODE_OUTPUT_MATERIAL, SH_NODE_OUTPUT_WORLD, SH_NODE_RGB, SH_NODE_SCRIPT, SH_NODE_SUBSURFACE_SCATTERING, SH_NODE_TANGENT, SH_NODE_TEX_BRICK, SH_NODE_TEX_COORD, SH_NODE_TEX_ENVIRONMENT, SH_NODE_TEX_GRADIENT, SH_NODE_TEX_IES, SH_NODE_TEX_IMAGE, SH_NODE_TEX_MAGIC, SH_NODE_TEX_MUSGRAVE, SH_NODE_TEX_NOISE, SH_NODE_TEX_POINTDENSITY, SH_NODE_TEX_SKY, SH_NODE_TEX_VORONOI, SH_NODE_TEX_WAVE, SH_NODE_TEX_WHITE_NOISE, SH_NODE_UVALONGSTROKE, SH_NODE_UVMAP, SH_NODE_VALTORGB, SH_NODE_VALUE, SH_NODE_VECT_TRANSFORM, SH_NODE_VECTOR_DISPLACEMENT, SH_NODE_VECTOR_MATH, SH_NODE_VECTOR_ROTATE, SH_NODE_VERTEX_COLOR, SH_NODE_WIREFRAME, and bNodeType::type.

Referenced by ED_node_init_butfuncs().

◆ node_socket_button_label()

static void node_socket_button_label ( bContext UNUSEDC,
uiLayout layout,
PointerRNA UNUSEDptr,
PointerRNA UNUSEDnode_ptr,
const char *  text 
)
static

◆ node_socket_template_properties_update()

static void node_socket_template_properties_update ( bNodeType ntype,
bNodeSocketTemplate stemp 
)
static

◆ node_socket_undefined_draw()

static void node_socket_undefined_draw ( bContext UNUSEDC,
uiLayout layout,
PointerRNA UNUSEDptr,
PointerRNA UNUSEDnode_ptr,
const char *  UNUSEDtext 
)
static

Definition at line 3224 of file drawnode.c.

References IFACE_, and uiItemL().

Referenced by ED_node_init_butfuncs().

◆ node_socket_undefined_draw_color()

static void node_socket_undefined_draw_color ( bContext UNUSEDC,
PointerRNA UNUSEDptr,
PointerRNA UNUSEDnode_ptr,
float r_color 
)
static

Definition at line 3233 of file drawnode.c.

Referenced by ED_node_init_butfuncs().

◆ node_socket_undefined_interface_draw()

static void node_socket_undefined_interface_draw ( bContext UNUSEDC,
uiLayout layout,
PointerRNA UNUSEDptr 
)
static

Definition at line 3244 of file drawnode.c.

References IFACE_, and uiItemL().

Referenced by ED_node_init_butfuncs().

◆ node_socket_undefined_interface_draw_color()

static void node_socket_undefined_interface_draw_color ( bContext UNUSEDC,
PointerRNA UNUSEDptr,
float r_color 
)
static

Definition at line 3251 of file drawnode.c.

Referenced by ED_node_init_butfuncs().

◆ node_socket_virtual_draw_color()

static void node_socket_virtual_draw_color ( bContext UNUSEDC,
PointerRNA UNUSEDptr,
PointerRNA UNUSEDnode_ptr,
float r_color 
)
static

Definition at line 3534 of file drawnode.c.

References copy_v4_v4(), and virtual_node_socket_color.

Referenced by ED_init_node_socket_type_virtual().

◆ node_template_properties_update()

static void node_template_properties_update ( bNodeType ntype)
static

◆ node_texture_buts_bricks()

static void node_texture_buts_bricks ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 3014 of file drawnode.c.

References col, DEFAULT_FLAGS, IFACE_, ptr, UI_ITEM_R_SLIDER, uiItemR(), and uiLayoutColumn().

Referenced by node_texture_set_butfunc().

◆ node_texture_buts_image()

static void node_texture_buts_image ( uiLayout layout,
bContext C,
PointerRNA ptr 
)
static

Definition at line 3112 of file drawnode.c.

References C, NULL, ptr, UI_TEMPLATE_ID_FILTER_ALL, and uiTemplateID().

Referenced by node_texture_set_butfunc().

◆ node_texture_buts_image_ex()

static void node_texture_buts_image_ex ( uiLayout layout,
bContext C,
PointerRNA ptr 
)
static

◆ node_texture_buts_output()

static void node_texture_buts_output ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 3135 of file drawnode.c.

References DEFAULT_FLAGS, ptr, and uiItemR().

Referenced by node_texture_set_butfunc().

◆ node_texture_buts_proc()

static void node_texture_buts_proc ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

◆ node_texture_set_butfunc()

static void node_texture_set_butfunc ( bNodeType ntype)
static

◆ node_tweak_area_reroute()

static int node_tweak_area_reroute ( bNode node,
int  x,
int  y 
)
static

Definition at line 608 of file drawnode.c.

References bNodeSocket::locx, bNodeSocket::locy, node, square_f(), x, and y.

Referenced by node_common_set_butfunc().

◆ nodelink_batch_add_link()

static void nodelink_batch_add_link ( const SpaceNode snode,
const float  p0[2],
const float  p1[2],
const float  p2[2],
const float  p3[2],
int  th_col1,
int  th_col2,
int  th_col3,
bool  drawarrow,
bool  drawmuted 
)
static

◆ nodelink_batch_draw()

static void nodelink_batch_draw ( const SpaceNode snode)
static

◆ nodelink_batch_end()

void nodelink_batch_end ( SpaceNode snode)

Definition at line 3976 of file drawnode.c.

References g_batch_link, and nodelink_batch_draw().

Referenced by node_draw_nodetree().

◆ nodelink_batch_init()

static void nodelink_batch_init ( void  )
static

◆ nodelink_batch_reset()

static void nodelink_batch_reset ( void  )
static

Definition at line 3790 of file drawnode.c.

References g_batch_link, and GPU_vertbuf_attr_get_raw_data().

Referenced by nodelink_batch_draw(), and nodelink_batch_init().

◆ nodelink_batch_start()

void nodelink_batch_start ( SpaceNode UNUSEDsnode)

Definition at line 3971 of file drawnode.c.

References g_batch_link.

Referenced by node_draw_nodetree().

◆ nodelink_get_color_id()

static char nodelink_get_color_id ( int  th_col)
static

Definition at line 3925 of file drawnode.c.

References TH_ACTIVE, TH_EDGE_SELECT, TH_REDALERT, TH_WIRE, and TH_WIRE_INNER.

Referenced by nodelink_batch_add_link(), and nodelink_batch_draw().

◆ set_nodelink_vertex()

static void set_nodelink_vertex ( GPUVertBuf vbo,
uint  uv_id,
uint  pos_id,
uint  exp_id,
uint  v,
const uchar  uv[2],
const float  pos[2],
const float  exp[2] 
)
static

Definition at line 3803 of file drawnode.c.

References KDL::exp(), GPU_vertbuf_attr_set(), pos, and v.

Referenced by nodelink_batch_init().

◆ std_node_socket_draw()

static void std_node_socket_draw ( bContext C,
uiLayout layout,
PointerRNA ptr,
PointerRNA node_ptr,
const char *  text 
)
static

◆ std_node_socket_draw_color()

static void std_node_socket_draw_color ( bContext UNUSEDC,
PointerRNA ptr,
PointerRNA UNUSEDnode_ptr,
float r_color 
)
static

◆ std_node_socket_interface_draw()

static void std_node_socket_interface_draw ( bContext UNUSEDC,
uiLayout layout,
PointerRNA ptr 
)
static

◆ std_node_socket_interface_draw_color()

static void std_node_socket_interface_draw_color ( bContext UNUSEDC,
PointerRNA ptr,
float r_color 
)
static

Variable Documentation

◆ _sample_col

float _sample_col[4] = {SAMPLE_FLT_ISNONE}
static

◆ arrow_expand_axis

float arrow_expand_axis[3][2] = {{0.7071f, 0.7071f}, {M_SQRT2, 0.0f}, {0.7071f, -0.7071f}}
static

Definition at line 3774 of file drawnode.c.

Referenced by nodelink_batch_init().

◆ arrow_verts

float arrow_verts[3][2] = {{-1.0f, 1.0f}, {0.0f, 0.0f}, {-1.0f, -1.0f}}
static

Definition at line 3773 of file drawnode.c.

Referenced by nodelink_batch_init().

◆ batch

GPUBatch* batch

Definition at line 3779 of file drawnode.c.

Referenced by blender::gpu::GLDrawList::append(), blender::gpu::GLVaoCache::base_instance_vao_get(), BPyGPUBatch_CreatePyObject(), curve_batch_cache_clear(), draw_cache_view_batch(), draw_call_single_do(), draw_line_bounds(), draw_line_loop(), draw_line_pairs(), draw_select_buffer(), draw_seq_fcurve_overlay(), draw_widgetbase_batch(), drawscredge_area_draw(), DRW_batch_request(), DRW_batch_requested(), drw_command_draw(), drw_command_draw_instance(), drw_command_draw_intance_range(), drw_command_draw_procedural(), drw_command_draw_range(), DRW_draw_depth_object(), DRW_ibo_request(), DRW_instance_buffer_finish(), DRW_shape_cache_free(), DRW_shgroup_call_buffer(), DRW_shgroup_call_buffer_instance(), DRW_shgroup_call_instances_with_attrs(), DRW_temp_batch_instance_request(), DRW_temp_batch_request(), DRW_vbo_request(), ED_screen_draw_edges(), EEVEE_motion_blur_cache_finish(), EEVEE_motion_blur_cache_populate(), SetupContactConstraintsLoop::forLoop(), gpencil_dummy_buffer_get(), gpencil_sbuffer_stroke_ensure(), GPU_batch_calloc(), GPU_batch_clear(), GPU_batch_create_ex(), GPU_batch_discard(), GPU_batch_draw(), GPU_batch_draw_advanced(), GPU_batch_draw_instanced(), GPU_batch_draw_range(), GPU_batch_elembuf_set(), GPU_batch_init_ex(), GPU_batch_instbuf_add_ex(), GPU_batch_instbuf_set(), GPU_batch_program_set_builtin(), GPU_batch_program_set_builtin_with_config(), GPU_batch_program_set_imm_shader(), GPU_batch_set_shader(), GPU_batch_vertbuf_add_ex(), GPU_draw_list_append(), gpu_viewport_draw_colormanaged(), instancing_batch_references_add(), instancing_batch_references_remove(), knifetool_draw(), mergeSmallBatches(), mesh_batch_cache_clear(), motion_blur_remove_vbo_reference_from_batch(), node_draw_link_bezier(), panel_draw_aligned_widgets(), pygpu_batch__tp_new(), randomizeBatchedConstraintOrdering(), setupSpatialGridBatchesMt(), stitch_draw_vbo(), ContactSplitPenetrationImpulseSolverLoop::sumLoop(), JointSolverLoop::sumLoop(), ContactSolverLoop::sumLoop(), ContactFrictionSolverLoop::sumLoop(), InterleavedContactSolverLoop::sumLoop(), ContactRollingFrictionSolverLoop::sumLoop(), temp_batch_free(), ui_draw_dropshadow(), UI_draw_roundbox_4fv_ex(), UI_widgetbase_draw_cache_flush(), blender::gpu::GLVertArray::update_bindings(), btBatchedConstraints::validate(), blender::gpu::GLVaoCache::vao_get(), waveform_draw_one(), wm_gizmo_geometryinfo_draw(), and writeOutBatches().

◆ batch_single

GPUBatch* batch_single

Definition at line 3780 of file drawnode.c.

◆ colid_id

uint colid_id

Definition at line 3783 of file drawnode.c.

◆ colid_step

GPUVertBufRaw colid_step

Definition at line 3785 of file drawnode.c.

◆ count

uint count

Definition at line 3786 of file drawnode.c.

◆ enabled

bool enabled

Definition at line 3787 of file drawnode.c.

◆ 

struct { ... } g_batch_link

◆ inst_vbo

GPUVertBuf* inst_vbo

Definition at line 3781 of file drawnode.c.

Referenced by drw_debug_draw_spheres().

◆ mute_expand_axis

float mute_expand_axis[3][2] = {{1.0f, 0.0f}, {1.0f, 0.0f}, {1.0f, -0.0f}}
static

Definition at line 3776 of file drawnode.c.

Referenced by nodelink_batch_init().

◆ mute_verts

float mute_verts[3][2] = {{0.7071f, 1.0f}, {0.7071f, 0.0f}, {0.7071f, -1.0f}}
static

Definition at line 3775 of file drawnode.c.

Referenced by nodelink_batch_init().

◆ muted_id

uint muted_id

Definition at line 3783 of file drawnode.c.

◆ muted_step

GPUVertBufRaw muted_step

Definition at line 3785 of file drawnode.c.

◆ p0_id

uint p0_id

Definition at line 3782 of file drawnode.c.

◆ p0_step

GPUVertBufRaw p0_step

Definition at line 3784 of file drawnode.c.

◆ p1_id

uint p1_id

Definition at line 3782 of file drawnode.c.

◆ p1_step

GPUVertBufRaw p1_step

Definition at line 3784 of file drawnode.c.

◆ p2_id

uint p2_id

Definition at line 3782 of file drawnode.c.

◆ p2_step

GPUVertBufRaw p2_step

Definition at line 3784 of file drawnode.c.

◆ p3_id

uint p3_id

Definition at line 3782 of file drawnode.c.

◆ p3_step

GPUVertBufRaw p3_step

Definition at line 3784 of file drawnode.c.

◆ std_node_socket_colors

const float std_node_socket_colors[][4]
static
Initial value:
= {
{0.63, 0.63, 0.63, 1.0},
{0.39, 0.39, 0.78, 1.0},
{0.78, 0.78, 0.16, 1.0},
{0.39, 0.78, 0.39, 1.0},
{0.80, 0.65, 0.84, 1.0},
{0.0, 0.0, 0.0, 1.0},
{0.25, 0.75, 0.26, 1.0},
{0.44, 0.70, 1.00, 1.0},
{0.93, 0.62, 0.36, 1.0},
{0.89, 0.76, 0.43, 1.0},
{0.00, 0.84, 0.64, 1.0},
{0.96, 0.96, 0.96, 1.0},
}

Definition at line 3327 of file drawnode.c.

Referenced by std_node_socket_draw_color(), and std_node_socket_interface_draw_color().

◆ virtual_node_socket_color

const float virtual_node_socket_color[4] = {0.2, 0.2, 0.2, 1.0}
static

Definition at line 3324 of file drawnode.c.

Referenced by node_socket_virtual_draw_color().