Blender
V3.3
|
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "GPU_batch.h"
#include "GPU_batch_presets.h"
#include "GPU_immediate.h"
#include "GPU_matrix.h"
#include "GPU_shader_shared.h"
#include "GPU_state.h"
#include "GPU_texture.h"
#include "BLI_blenlib.h"
#include "BLI_fileops_types.h"
#include "BLI_math_color_blend.h"
#include "BLI_math_vector.h"
#include "BLI_utildefines.h"
#include "DNA_brush_types.h"
#include "DNA_collection_types.h"
#include "DNA_curve_types.h"
#include "DNA_dynamicpaint_types.h"
#include "DNA_gpencil_types.h"
#include "DNA_object_types.h"
#include "DNA_screen_types.h"
#include "DNA_sequence_types.h"
#include "DNA_space_types.h"
#include "RNA_access.h"
#include "RNA_prototypes.h"
#include "BKE_appdir.h"
#include "BKE_context.h"
#include "BKE_global.h"
#include "BKE_icons.h"
#include "BKE_paint.h"
#include "BKE_studiolight.h"
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
#include "IMB_thumbs.h"
#include "BIF_glutil.h"
#include "ED_datafiles.h"
#include "ED_keyframes_draw.h"
#include "ED_keyframes_keylist.h"
#include "ED_render.h"
#include "UI_interface.h"
#include "UI_interface_icons.h"
#include "WM_api.h"
#include "WM_types.h"
#include "interface_intern.h"
#include "UI_icons.h"
Go to the source code of this file.
Classes | |
struct | IconImage |
struct | DrawInfo |
struct | IconTexture |
struct | IconType |
struct | IconDrawCall |
struct | IconTextureDrawCall |
Typedefs | |
typedef struct IconImage | IconImage |
typedef void(* | VectorDrawFunc) (int x, int y, int w, int h, float alpha) |
typedef struct DrawInfo | DrawInfo |
typedef struct IconTexture | IconTexture |
typedef struct IconType | IconType |
typedef struct IconDrawCall | IconDrawCall |
typedef struct IconTextureDrawCall | IconTextureDrawCall |
Variables | |
static struct ListBase | iconfilelist = {NULL, NULL} |
static IconTexture | icongltex = {{NULL, NULL}, 0, 0, 0, 0.0f, 0.0f} |
static const IconType | icontypes [] |
static DrawInfo * | g_di_event_list = NULL |
struct { | |
IconTextureDrawCall normal | |
IconTextureDrawCall border | |
bool enabled | |
} | g_icon_draw_cache = {{{{{0}}}}} |
#define DEF_ICON | ( | name | ) | {ICON_TYPE_MONO_TEXTURE, 0}, |
#define DEF_ICON_BLANK | ( | name | ) | {ICON_TYPE_BLANK, 0}, |
#define DEF_ICON_COLLECTION | ( | name | ) | {ICON_TYPE_MONO_TEXTURE, TH_ICON_COLLECTION}, |
Definition at line 422 of file interface_icons.c.
#define DEF_ICON_COLOR | ( | name | ) | {ICON_TYPE_COLOR_TEXTURE, 0}, |
#define DEF_ICON_FOLDER | ( | name | ) | {ICON_TYPE_MONO_TEXTURE, TH_ICON_FOLDER}, |
#define DEF_ICON_FUND | ( | name | ) | {ICON_TYPE_MONO_TEXTURE, TH_ICON_FUND}, |
#define DEF_ICON_MODIFIER | ( | name | ) | {ICON_TYPE_MONO_TEXTURE, TH_ICON_MODIFIER}, |
#define DEF_ICON_OBJECT | ( | name | ) | {ICON_TYPE_MONO_TEXTURE, TH_ICON_OBJECT}, |
#define DEF_ICON_OBJECT_DATA | ( | name | ) | {ICON_TYPE_MONO_TEXTURE, TH_ICON_OBJECT_DATA}, |
#define DEF_ICON_SCENE | ( | name | ) | {ICON_TYPE_MONO_TEXTURE, TH_ICON_SCENE}, |
#define DEF_ICON_SHADING | ( | name | ) | {ICON_TYPE_MONO_TEXTURE, TH_ICON_SHADING}, |
#define DEF_ICON_VECTOR | ( | name | ) | {ICON_TYPE_VECTOR, 0}, |
#define DEF_ICON_VECTOR_COLORSET_DRAW_NTH | ( | prefix, | |
index | |||
) |
#define ICON_DRAW_CACHE_SIZE 16 |
Definition at line 1566 of file interface_icons.c.
#define ICON_GRID_COLS 26 |
Definition at line 68 of file interface_icons.c.
#define ICON_GRID_H 32 |
Definition at line 74 of file interface_icons.c.
#define ICON_GRID_MARGIN 10 |
Definition at line 72 of file interface_icons.c.
#define ICON_GRID_ROWS 30 |
Definition at line 69 of file interface_icons.c.
#define ICON_GRID_W 32 |
Definition at line 73 of file interface_icons.c.
#define ICON_INDIRECT_DATA_ALPHA 0.6f |
Definition at line 468 of file interface_icons.c.
#define ICON_MONO_BORDER_OUTSET 2 |
Definition at line 71 of file interface_icons.c.
#define ICON_TYPE_BLANK 9 |
Definition at line 96 of file interface_icons.c.
#define ICON_TYPE_BUFFER 3 |
Definition at line 90 of file interface_icons.c.
#define ICON_TYPE_COLOR_TEXTURE 1 |
Definition at line 88 of file interface_icons.c.
#define ICON_TYPE_EVENT 7 /* draw keymap entries using custom renderer. */ |
Definition at line 94 of file interface_icons.c.
#define ICON_TYPE_GEOM 6 |
Definition at line 93 of file interface_icons.c.
#define ICON_TYPE_GPLAYER 8 |
Definition at line 95 of file interface_icons.c.
#define ICON_TYPE_IMBUF 4 |
Definition at line 91 of file interface_icons.c.
#define ICON_TYPE_MONO_TEXTURE 2 |
Definition at line 89 of file interface_icons.c.
#define ICON_TYPE_PREVIEW 0 |
Definition at line 87 of file interface_icons.c.
#define ICON_TYPE_VECTOR 5 |
Definition at line 92 of file interface_icons.c.
#define INIT_BRUSH_ICON | ( | icon_id, | |
name | |||
) |
typedef struct IconDrawCall IconDrawCall |
typedef struct IconTexture IconTexture |
typedef struct IconTextureDrawCall IconTextureDrawCall |
Definition at line 85 of file interface_icons.c.
|
static |
Definition at line 752 of file interface_icons.c.
References blend_color_interpolate_float(), ICON_GRID_COLS, ICON_GRID_H, ICON_GRID_MARGIN, ICON_GRID_ROWS, ICON_GRID_W, ICON_MONO_BORDER_OUTSET, ICON_TYPE_MONO_TEXTURE, icontypes, IMB_dupImBuf(), linearrgb_to_srgb_v4(), MAX2, MIN2, ImBuf::rect, result, rgb_to_cpack(), srgb_to_linearrgb_uchar4(), srgb_to_linearrgb_v4(), sx, sy, IconType::type, x, ImBuf::x, and y.
Referenced by UI_icons_reload_internal_textures().
DEF_ICON_COLLECTION_COLOR_DRAW | ( | 01 | , |
COLLECTION_COLOR_01 | |||
) |
DEF_ICON_COLLECTION_COLOR_DRAW | ( | 02 | , |
COLLECTION_COLOR_02 | |||
) |
DEF_ICON_COLLECTION_COLOR_DRAW | ( | 03 | , |
COLLECTION_COLOR_03 | |||
) |
DEF_ICON_COLLECTION_COLOR_DRAW | ( | 04 | , |
COLLECTION_COLOR_04 | |||
) |
DEF_ICON_COLLECTION_COLOR_DRAW | ( | 05 | , |
COLLECTION_COLOR_05 | |||
) |
DEF_ICON_COLLECTION_COLOR_DRAW | ( | 06 | , |
COLLECTION_COLOR_06 | |||
) |
DEF_ICON_COLLECTION_COLOR_DRAW | ( | 07 | , |
COLLECTION_COLOR_07 | |||
) |
DEF_ICON_COLLECTION_COLOR_DRAW | ( | 08 | , |
COLLECTION_COLOR_08 | |||
) |
DEF_ICON_STRIP_COLOR_DRAW | ( | 01 | , |
SEQUENCE_COLOR_01 | |||
) |
DEF_ICON_STRIP_COLOR_DRAW | ( | 02 | , |
SEQUENCE_COLOR_02 | |||
) |
DEF_ICON_STRIP_COLOR_DRAW | ( | 03 | , |
SEQUENCE_COLOR_03 | |||
) |
DEF_ICON_STRIP_COLOR_DRAW | ( | 04 | , |
SEQUENCE_COLOR_04 | |||
) |
DEF_ICON_STRIP_COLOR_DRAW | ( | 05 | , |
SEQUENCE_COLOR_05 | |||
) |
DEF_ICON_STRIP_COLOR_DRAW | ( | 06 | , |
SEQUENCE_COLOR_06 | |||
) |
DEF_ICON_STRIP_COLOR_DRAW | ( | 07 | , |
SEQUENCE_COLOR_07 | |||
) |
DEF_ICON_STRIP_COLOR_DRAW | ( | 08 | , |
SEQUENCE_COLOR_08 | |||
) |
DEF_ICON_STRIP_COLOR_DRAW | ( | 09 | , |
SEQUENCE_COLOR_09 | |||
) |
|
static |
Definition at line 168 of file interface_icons.c.
References BKE_icon_set(), DrawInfo::buffer, DrawInfo::data, Icon::drawinfo, Icon::drawinfo_free, ELEM, IconImage::h, ICON_TYPE_BUFFER, ICON_TYPE_COLOR_TEXTURE, ICON_TYPE_MONO_TEXTURE, Icon::id_type, MEM_callocN, MEM_mallocN, NULL, Icon::obj, IconImage::rect, ImBuf::rect, size(), DrawInfo::texture, DrawInfo::type, type, UI_icons_free_drawinfo(), IconImage::w, ImBuf::x, y, and ImBuf::y.
Referenced by init_internal_icons().
|
static |
Definition at line 221 of file interface_icons.c.
References BKE_icon_set(), DrawInfo::data, Icon::drawinfo, Icon::drawinfo_free, ICON_TYPE_VECTOR, Icon::id_type, MEM_callocN, NULL, Icon::obj, DrawInfo::type, and DrawInfo::vector.
Referenced by init_internal_icons().
Definition at line 1086 of file interface_icons.c.
References BLI_freelinkN(), ListBase::first, IconFile::next, and NULL.
Referenced by UI_icons_free().
Definition at line 834 of file interface_icons.c.
References GPU_texture_free(), icongltex, NULL, IconTexture::num_textures, and IconTexture::tex.
Referenced by UI_icons_free(), and UI_icons_reload_internal_textures().
|
static |
Definition at line 1768 of file interface_icons.c.
References ICON_DEFAULT_HEIGHT, ICON_SIZE_ICON, ICON_SIZE_PREVIEW, PREVIEW_DEFAULT_HEIGHT, and size().
Referenced by UI_icon_draw_ex().
#Icon.data_type and Icon.obj
Definition at line 1162 of file interface_icons.c.
References BLI_assert, ELEM, ICON_DATA_GEOM, ICON_DATA_GPLAYER, ICON_DATA_ID, ICON_DATA_IMBUF, ICON_DATA_PREVIEW, ICON_DATA_STUDIOLIGHT, ICON_TYPE_BUFFER, ICON_TYPE_GEOM, ICON_TYPE_GPLAYER, ICON_TYPE_IMBUF, ICON_TYPE_PREVIEW, MEM_callocN, Icon::obj_type, and DrawInfo::type.
Referenced by icon_ensure_drawinfo().
|
static |
Definition at line 1274 of file interface_icons.c.
References PreviewImage::changed_timestamp, PreviewImage::flag, G, G_DEBUG, PreviewImage::h, MEM_callocN, PRV_CHANGED, PreviewImage::rect, size(), UI_icon_preview_to_render_size(), and PreviewImage::w.
Referenced by icon_set_image().
Definition at line 1620 of file interface_icons.c.
References g_icon_draw_cache, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_ALPHA_PREMULT, ICON_DRAW_CACHE_SIZE, icon_draw_cache_texture_flush_ex(), icongltex, IconTexture::tex, and UI_widgetbase_draw_cache_flush().
Referenced by icon_draw_texture_cached(), and UI_icon_draw_cache_end().
|
static |
Definition at line 1591 of file interface_icons.c.
References IconTextureDrawCall::calls, IconTextureDrawCall::drawcall_cache, GPU_batch_draw_instanced(), GPU_batch_preset_quad(), GPU_batch_set_shader(), GPU_SAMPLER_ICON, GPU_SHADER_2D_IMAGE_MULTI_RECT_COLOR, GPU_shader_bind(), GPU_shader_get_builtin_shader(), GPU_shader_get_texture_binding(), GPU_shader_get_uniform_block_binding(), GPU_texture_bind_ex(), GPU_texture_unbind(), GPU_uniformbuf_bind(), GPU_uniformbuf_create_ex(), GPU_uniformbuf_free(), GPU_uniformbuf_unbind(), GPUBatch, and quad.
Referenced by icon_draw_cache_flush_ex().
|
static |
Definition at line 1497 of file interface_icons.c.
References BLI_assert_msg, col, float(), GPU_RGBA8, GPU_SHADER_2D_IMAGE_COLOR, GPU_SHADER_2D_IMAGE_DESATURATE_COLOR, immDrawPixelsTexScaledFullSize(), immDrawPixelsTexSetup(), immUniform1f(), round_fl_to_int(), state, w(), x, and y.
Referenced by icon_draw_size().
|
static |
Definition at line 1780 of file interface_icons.c.
References BKE_icon_geom_invert_lightness(), BKE_icon_geom_rasterize(), BKE_icon_get(), BKE_previewimg_id_ensure(), BLI_assert, DrawInfo::buffer, color, DrawInfo::data, float(), G, G_DEBUG, DrawInfo::geom, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_ALPHA_PREMULT, IconImage::h, PreviewImage::h, ThemeUI::icon_alpha, ThemeUI::icon_border_intensity, ICON_DEFAULT_HEIGHT, ICON_DEFAULT_HEIGHT_TOOLBAR, ICON_DEFAULT_WIDTH, icon_draw_rect(), icon_draw_rect_input(), icon_draw_texture(), icon_ensure_drawinfo(), ICON_GRID_W, ICON_MONO_BORDER_OUTSET, ICON_TYPE_BUFFER, ICON_TYPE_COLOR_TEXTURE, ICON_TYPE_EVENT, ICON_TYPE_GEOM, ICON_TYPE_GPLAYER, ICON_TYPE_IMBUF, ICON_TYPE_MONO_TEXTURE, ICON_TYPE_PREVIEW, ICON_TYPE_VECTOR, icon_verify_datatoc(), Icon::id_type, if(), IMB_freeImBuf(), uiWidgetColors::inner, DrawInfo::input, invert(), mul_v4_fl(), NULL, Icon::obj, IconImage::rect, ImBuf::rect, PreviewImage::rect, rgb_to_grayscale_byte(), rgba_uchar_to_float(), size(), DrawInfo::texture, TH_TEXT, bTheme::tui, DrawInfo::type, UI_GetTheme(), UI_GetThemeColor4fv(), UI_widgetbase_draw_cache_flush(), DrawInfo::vector, vicon_gplayer_color_draw(), w(), IconImage::w, PreviewImage::w, ThemeUI::wcol_toolbar_item, x, ImBuf::x, y, and ImBuf::y.
Referenced by UI_icon_draw_ex(), and UI_icon_draw_preview().
|
static |
Definition at line 1709 of file interface_icons.c.
References g_icon_draw_cache, GPU_batch_draw(), GPU_batch_preset_quad(), GPU_batch_set_shader(), GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_ALPHA_PREMULT, GPU_SAMPLER_ICON, GPU_SHADER_2D_IMAGE_RECT_COLOR, GPU_shader_bind(), GPU_shader_get_builtin_shader(), GPU_shader_get_builtin_uniform(), GPU_shader_get_texture_binding(), GPU_shader_get_uniform(), GPU_shader_uniform_vector(), GPU_texture_bind_ex(), GPU_texture_unbind(), GPU_UNIFORM_COLOR, GPUBatch, icon_draw_texture_cached(), icongltex, IconTexture::invh, IconTexture::invw, quad, usdtokens::rgb(), IconTexture::tex, UI_widgetbase_draw_cache_flush(), UNPACK3, w(), x, x2, y, and y1.
Referenced by icon_draw_size().
|
static |
Definition at line 1664 of file interface_icons.c.
References IconTextureDrawCall::calls, IconDrawCall::color, copy_v4_fl(), copy_v4_fl4(), IconTextureDrawCall::drawcall_cache, g_icon_draw_cache, GPU_matrix_model_view_projection_get, icon_draw_cache_flush_ex(), ICON_DRAW_CACHE_SIZE, icongltex, IconTexture::invh, IconTexture::invw, IconDrawCall::pos, usdtokens::rgb(), IconDrawCall::tex, w(), x, rctf::xmax, rctf::xmin, y, rctf::ymax, and rctf::ymin.
Referenced by icon_draw_texture().
Definition at line 1190 of file interface_icons.c.
References Icon::drawinfo, Icon::drawinfo_free, icon_create_drawinfo(), and UI_icons_free_drawinfo().
Referenced by icon_draw_size(), ui_icon_ensure_deferred(), UI_icon_get_height(), UI_icon_get_theme_color(), UI_icon_get_width(), and ui_studiolight_icon_job_exec().
|
static |
Note that if an ID doesn't support jobs for preview creation, use_job will be ignored.
Definition at line 1414 of file interface_icons.c.
References BKE_previewimg_id_supports_jobs(), C, CTX_data_scene(), ED_preview_icon_job(), ED_preview_icon_render(), PreviewImage::flag, G, G_DEBUG, icon_create_rect(), id, ID::name, NULL, PRV_USER_EDITED, PreviewImage::rect, scene, and size().
Referenced by ui_id_preview_image_render_size().
Definition at line 731 of file interface_icons.c.
References IconImage::datatoc_rect, IconImage::datatoc_size, IconImage::h, IB_rect, IMB_freeImBuf(), IMB_ibImageFromMemory(), IMB_scaleImBuf(), NULL, IconImage::rect, ImBuf::rect, IconImage::w, ImBuf::x, and ImBuf::y.
Referenced by icon_draw_size().
Definition at line 516 of file interface_icons.c.
References INIT_BRUSH_ICON, mask(), mix, smooth(), and w().
Referenced by UI_icons_init().
Definition at line 659 of file interface_icons.c.
References EVT_AKEY, EVT_BKEY, EVT_CKEY, EVT_DKEY, EVT_EKEY, EVT_ESCKEY, EVT_F10KEY, EVT_F11KEY, EVT_F12KEY, EVT_F1KEY, EVT_F2KEY, EVT_F3KEY, EVT_F4KEY, EVT_F5KEY, EVT_F6KEY, EVT_F7KEY, EVT_F8KEY, EVT_F9KEY, EVT_FKEY, EVT_GKEY, EVT_HKEY, EVT_IKEY, EVT_JKEY, EVT_KKEY, EVT_LEFTALTKEY, EVT_LEFTCTRLKEY, EVT_LEFTSHIFTKEY, EVT_LKEY, EVT_MKEY, EVT_NKEY, EVT_OKEY, EVT_OSKEY, EVT_PAGEDOWNKEY, EVT_PAGEUPKEY, EVT_PKEY, EVT_QKEY, EVT_RETKEY, EVT_RKEY, EVT_SKEY, EVT_SPACEKEY, EVT_TABKEY, EVT_TKEY, EVT_UKEY, EVT_VKEY, EVT_WKEY, EVT_XKEY, EVT_YKEY, EVT_ZKEY, g_di_event_list, INIT_EVENT_ICON, KM_ANY, NULL, and w().
Referenced by UI_icons_init().
Definition at line 1023 of file interface_icons.c.
References BKE_appdir_folder_id(), BLENDER_DATAFILES, BLI_addtail(), BLI_filelist_dir_contents(), BLI_filelist_free(), BLI_join_dirfile(), BLI_listbase_clear(), BLI_path_extension_check(), BLI_strncpy(), FILE_MAX, IconFile::filename, IB_rect, IMB_freeImBuf(), IMB_loadiffname(), IconFile::index, MEM_callocN, NULL, direntry::relname, type, ImBuf::x, and ImBuf::y.
Referenced by UI_icons_init().
Definition at line 918 of file interface_icons.c.
References BIFICONID_FIRST, BKE_appdir_folder_id(), BLENDER_DATAFILES, BLI_join_dirfile(), def_internal_icon(), def_internal_vicon(), ELEM, FILE_MAX, IB_rect, ICON_GRID_COLS, ICON_GRID_H, ICON_GRID_MARGIN, ICON_GRID_ROWS, ICON_GRID_W, ICON_TYPE_COLOR_TEXTURE, ICON_TYPE_MONO_TEXTURE, icontypes, IMB_freeImBuf(), IMB_loadiffname(), NULL, IconType::theme_color, IconType::type, vicon_handletype_aligned_draw(), vicon_handletype_auto_clamp_draw(), vicon_handletype_auto_draw(), vicon_handletype_free_draw(), vicon_handletype_vector_draw(), vicon_keytype_breakdown_draw(), vicon_keytype_extreme_draw(), vicon_keytype_jitter_draw(), vicon_keytype_keyframe_draw(), vicon_keytype_moving_hold_draw(), vicon_strip_color_draw_library_data_indirect(), vicon_strip_color_draw_library_data_override_noneditable(), x, and y.
Referenced by UI_icons_init().
ImBuf* UI_icon_alert_imbuf_get | ( | eAlertIcon | icon | ) |
Definition at line 2465 of file interface_icons.c.
References ALERT_ICON_MAX, datatoc_alert_icons_png, datatoc_alert_icons_png_size, IB_rect, IMB_ibImageFromMemory(), IMB_premultiply_alpha(), IMB_rect_crop(), left, MIN2, NULL, and UNUSED_VARS.
Referenced by uiDefButAlert().
int UI_icon_color_from_collection | ( | const Collection * | collection | ) |
Definition at line 2415 of file interface_icons.c.
References COLLECTION_COLOR_NONE, and Collection::color_tag.
Referenced by ui_id_icon_get().
Draws icon with DPI scale factor.
Definition at line 2426 of file interface_icons.c.
References NULL, UI_icon_draw_ex(), x, and y.
Referenced by ANIM_channel_draw(), draw_marker(), drawAutoKeyWarning(), file_draw_invalid_asset_library_hint(), file_draw_invalid_library_hint(), ui_searchbox_region_draw_cb__operator(), and ui_searchbox_region_draw_fn().
Definition at line 2431 of file interface_icons.c.
References NULL, UI_icon_draw_ex(), x, and y.
Referenced by button2d_draw_intern(), and outliner_draw_tree_element().
Definition at line 1585 of file interface_icons.c.
References BLI_assert, and g_icon_draw_cache.
Referenced by UI_block_draw().
Definition at line 1649 of file interface_icons.c.
References BLI_assert, g_icon_draw_cache, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, and icon_draw_cache_flush_ex().
Referenced by UI_block_draw().
void UI_icon_draw_ex | ( | float | x, |
float | y, | ||
int | icon_id, | ||
float | aspect, | ||
float | alpha, | ||
float | desaturate, | ||
const uchar | mono_color[4], | ||
const bool | mono_border | ||
) |
Definition at line 2441 of file interface_icons.c.
References get_draw_size(), icon_draw_size(), ICON_SIZE_ICON, x, and y.
Referenced by area_draw_azone_fullscreen(), blender::ed::space_node::draw_draglink_tooltip(), file_draw_preview(), panel_draw_aligned_widgets(), textview_draw_string(), tselem_draw_icon(), ui_draw_menu_item(), UI_icon_draw(), UI_icon_draw_alpha(), vicon_collection_color_draw(), vicon_strip_color_draw(), vicon_strip_color_draw_library_data_indirect(), vicon_strip_color_draw_library_data_override_noneditable(), widget_draw_icon(), and wm_drag_draw_icon().
Definition at line 2436 of file interface_icons.c.
References icon_draw_size(), ICON_SIZE_PREVIEW, NULL, size(), x, and y.
Referenced by widget_draw_preview().
Definition at line 1346 of file interface_icons.c.
References BKE_icon_get(), BKE_previewimg_id_ensure(), BKE_studiolight_set_free_function(), DrawInfo::buffer, C, CTX_wm_manager(), CTX_wm_window(), DrawInfo::data, GS, IconImage::h, ICON_DATA_STUDIOLIGHT, icon_ensure_drawinfo(), ICON_SIZE_ICON, ICON_SIZE_PREVIEW, ICON_TYPE_BUFFER, ICON_TYPE_PREVIEW, id, ID_SCR, Icon::id_type, MEM_callocN, MEM_freeN, MEM_mallocN, ID::name, NC_WINDOW, NULL, Icon::obj, Icon::obj_type, PRV_TAG_DEFFERED, IconImage::rect, size(), STUDIOLIGHT_ICON_SIZE, DrawInfo::type, ui_id_preview_image_render_size(), ui_studiolight_free_function(), ui_studiolight_icon_job_end(), ui_studiolight_icon_job_exec(), IconImage::w, WM_JOB_TYPE_STUDIOLIGHT, WM_jobs_callbacks(), WM_jobs_customdata_set(), WM_jobs_get(), WM_jobs_start(), and WM_jobs_timer().
Referenced by ui_def_but_icon(), and ui_searchbox_region_draw_fn().
int UI_icon_from_event_type | ( | short | event_type, |
short | event_value | ||
) |
Definition at line 606 of file interface_icons.c.
References DrawInfo::data, ELEM, EVT_LEFTALTKEY, EVT_LEFTCTRLKEY, EVT_LEFTSHIFTKEY, EVT_RIGHTALTKEY, EVT_RIGHTCTRLKEY, EVT_RIGHTSHIFTKEY, g_di_event_list, DrawInfo::input, KM_CLICK, KM_PRESS, LEFTMOUSE, MIDDLEMOUSE, and RIGHTMOUSE.
Referenced by UI_icon_from_keymap_item().
int UI_icon_from_idcode | ( | const int | idcode | ) |
Definition at line 2299 of file interface_icons.c.
References ID_AC, ID_AR, ID_BR, ID_CA, ID_CF, ID_CU_LEGACY, ID_CV, ID_GD, ID_GR, ID_IM, ID_IP, ID_KE, ID_LA, ID_LI, ID_LP, ID_LS, ID_LT, ID_MA, ID_MB, ID_MC, ID_ME, ID_MSK, ID_NT, ID_OB, ID_PA, ID_PAL, ID_PC, ID_PT, ID_SCE, ID_SCR, ID_SIM, ID_SO, ID_SPK, ID_TE, ID_TXT, ID_VF, ID_VO, ID_WM, ID_WO, and ID_WS.
Referenced by filelist_geticon_ex().
int UI_icon_from_keymap_item | ( | const wmKeyMapItem * | kmi, |
int | r_icon_mod[4] | ||
) |
Definition at line 638 of file interface_icons.c.
References wmKeyMapItem::alt, wmKeyMapItem::ctrl, ELEM, KM_ANY, KM_NOTHING, wmKeyMapItem::oskey, wmKeyMapItem::shift, wmKeyMapItem::type, UI_icon_from_event_type(), and wmKeyMapItem::val.
int UI_icon_from_library | ( | const ID * | id | ) |
Definition at line 2217 of file interface_icons.c.
References IDOverrideLibrary::flag, id, ID_IS_ASSET, ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY, ID_IS_OVERRIDE_LIBRARY_REAL, IDOVERRIDE_LIBRARY_FLAG_SYSTEM_DEFINED, LIB_TAG_INDIRECT, LIB_TAG_MISSING, ID::override_library, and ID::tag.
int UI_icon_from_object_mode | ( | const int | mode | ) |
Definition at line 2385 of file interface_icons.c.
References OB_MODE_EDIT, OB_MODE_EDIT_GPENCIL, OB_MODE_OBJECT, OB_MODE_PAINT_GPENCIL, OB_MODE_PARTICLE_EDIT, OB_MODE_POSE, OB_MODE_SCULPT, OB_MODE_SCULPT_CURVES, OB_MODE_SCULPT_GPENCIL, OB_MODE_TEXTURE_PAINT, OB_MODE_VERTEX_GPENCIL, OB_MODE_VERTEX_PAINT, OB_MODE_WEIGHT_GPENCIL, and OB_MODE_WEIGHT_PAINT.
Referenced by outliner_draw_mode_column_toggle().
int UI_icon_from_rnaptr | ( | const bContext * | C, |
PointerRNA * | ptr, | ||
int | rnaicon, | ||
const bool | big | ||
) |
Definition at line 2242 of file interface_icons.c.
References C, PointerRNA::data, StudioLight::flag, StudioLight::icon_id_irradiance, StudioLight::icon_id_matcap, StudioLight::icon_id_radiance, MOD_DPAINT_SURFACE_F_IMAGESEQ, MOD_DPAINT_SURFACE_F_PTEX, MOD_DPAINT_SURFACE_F_VERTEX, NULL, PointerRNA::owner_id, ptr, RNA_int_get(), RNA_pointer_get(), RNA_struct_is_a(), RNA_struct_is_ID(), STUDIOLIGHT_FLAG_ORIENTATIONS, STUDIOLIGHT_TYPE_MATCAP, STUDIOLIGHT_TYPE_STUDIO, STUDIOLIGHT_TYPE_WORLD, surface, PointerRNA::type, and ui_id_icon_get().
int UI_icon_get_height | ( | int | icon_id | ) |
Definition at line 1220 of file interface_icons.c.
References BKE_icon_get(), G, G_DEBUG, ICON_DEFAULT_HEIGHT, icon_ensure_drawinfo(), and NULL.
Definition at line 1238 of file interface_icons.c.
References BKE_icon_get(), color, DrawInfo::data, icon_ensure_drawinfo(), NULL, DrawInfo::texture, and UI_GetIconThemeColor4ubv().
Referenced by tselem_draw_icon(), and widget_draw_icon().
int UI_icon_get_width | ( | int | icon_id | ) |
NOTE: returns unscaled by DPI.
Definition at line 1201 of file interface_icons.c.
References BKE_icon_get(), G, G_DEBUG, ICON_DEFAULT_WIDTH, icon_ensure_drawinfo(), and NULL.
int UI_icon_preview_to_render_size | ( | enum eIconSizes | size | ) |
Render size for preview images and icons
Definition at line 1260 of file interface_icons.c.
References ICON_RENDER_DEFAULT_HEIGHT, ICON_SIZE_ICON, ICON_SIZE_PREVIEW, PREVIEW_RENDER_DEFAULT_HEIGHT, and size().
Referenced by bpy_app_preview_render_size_get(), and icon_create_rect().
void UI_icon_render_id | ( | const bContext * | C, |
Scene * | scene, | ||
ID * | id, | ||
const enum eIconSizes | size, | ||
const bool | use_job | ||
) |
Definition at line 1977 of file interface_icons.c.
References BKE_previewimg_id_ensure(), C, Object::data, ED_preview_id_is_supported(), GS, id, ID_OB, ID::name, NULL, scene, size(), and UI_icon_render_id_ex().
Referenced by ui_id_icon_get().
void UI_icon_render_id_ex | ( | const bContext * | C, |
Scene * | scene, | ||
ID * | id_to_render, | ||
const enum eIconSizes | size, | ||
const bool | use_job, | ||
PreviewImage * | r_preview_image | ||
) |
Definition at line 1967 of file interface_icons.c.
References C, scene, size(), and ui_id_preview_image_render_size().
Referenced by UI_icon_render_id().
PreviewImage* UI_icon_to_preview | ( | int | icon_id | ) |
Definition at line 1449 of file interface_icons.c.
References BKE_icon_get(), BKE_previewimg_copy(), BKE_previewimg_create(), BKE_previewimg_id_ensure(), DrawInfo::buffer, DrawInfo::data, Icon::drawinfo, PreviewImage::h, IB_rect, ICON_TYPE_PREVIEW, Icon::id_type, if(), IMB_freeImBuf(), IMB_ibImageFromMemory(), NULL, Icon::obj, ImBuf::rect, PreviewImage::rect, DrawInfo::type, PreviewImage::w, ImBuf::x, and ImBuf::y.
int UI_iconfile_get_index | ( | const char * | filename | ) |
Definition at line 1104 of file interface_icons.c.
References BLI_path_cmp, IconFile::filename, ListBase::first, iconfilelist, IconFile::index, and IconFile::next.
Definition at line 1118 of file interface_icons.c.
References iconfilelist.
Definition at line 1125 of file interface_icons.c.
References BKE_icons_free(), free_iconfile_list(), free_icons_textures(), and iconfilelist.
Referenced by ui_resources_free().
Definition at line 1134 of file interface_icons.c.
References DrawInfo::buffer, DrawInfo::data, DrawInfo::geom, ICON_TYPE_BUFFER, ICON_TYPE_GEOM, IMB_freeImBuf(), MEM_freeN, NULL, and DrawInfo::type.
Referenced by def_internal_icon(), and icon_ensure_drawinfo().
Resizable Icons for Blender
Definition at line 1249 of file interface_icons.c.
References iconfilelist, init_brush_icons(), init_event_icons(), init_iconfile_list(), init_internal_icons(), and UI_icons_reload_internal_textures().
Referenced by ui_resources_init().
Reload the textures for internal icons. This function will release the previous textures.
Definition at line 847 of file interface_icons.c.
References create_mono_icon_with_border(), datatoc_blender_icons16_png, datatoc_blender_icons16_png_size, datatoc_blender_icons32_png, datatoc_blender_icons32_png_size, free_icons_textures(), GPU_DATA_UBYTE, GPU_RGBA8, GPU_texture_create_2d(), GPU_texture_update_mipmap(), IconTexture::h, IB_rect, ThemeUI::icon_border_intensity, icongltex, IMB_freeImBuf(), IMB_ibImageFromMemory(), IMB_premultiply_alpha(), IconTexture::invh, IconTexture::invw, NULL, IconTexture::num_textures, ImBuf::rect, IconTexture::tex, bTheme::tui, UI_GetTheme(), and IconTexture::w.
Referenced by UI_icons_init(), and wm_userpref_read_exec().
Definition at line 2015 of file interface_icons.c.
References blender::compositor::area(), BKE_icon_id_ensure(), BKE_paint_get_brush_tool_offset_from_paintmode(), BKE_paint_get_tool_enum_from_paintmode(), BRUSH_CUSTOM_ICON, C, CTX_data_active_object(), CTX_wm_area(), Brush::flag, GP_BRUSH_ICON_AIRBRUSH, GP_BRUSH_ICON_BLOCK, GP_BRUSH_ICON_CHISEL, GP_BRUSH_ICON_ERASE_HARD, GP_BRUSH_ICON_ERASE_SOFT, GP_BRUSH_ICON_ERASE_STROKE, GP_BRUSH_ICON_FILL, GP_BRUSH_ICON_GPBRUSH_CLONE, GP_BRUSH_ICON_GPBRUSH_GRAB, GP_BRUSH_ICON_GPBRUSH_PINCH, GP_BRUSH_ICON_GPBRUSH_PUSH, GP_BRUSH_ICON_GPBRUSH_RANDOMIZE, GP_BRUSH_ICON_GPBRUSH_SMOOTH, GP_BRUSH_ICON_GPBRUSH_STRENGTH, GP_BRUSH_ICON_GPBRUSH_THICKNESS, GP_BRUSH_ICON_GPBRUSH_TWIST, GP_BRUSH_ICON_GPBRUSH_WEIGHT, GP_BRUSH_ICON_INK, GP_BRUSH_ICON_INKNOISE, GP_BRUSH_ICON_MARKER, GP_BRUSH_ICON_PEN, GP_BRUSH_ICON_PENCIL, GP_BRUSH_ICON_TINT, GP_BRUSH_ICON_VERTEX_AVERAGE, GP_BRUSH_ICON_VERTEX_BLUR, GP_BRUSH_ICON_VERTEX_DRAW, GP_BRUSH_ICON_VERTEX_REPLACE, GP_BRUSH_ICON_VERTEX_SMEAR, Brush::gpencil_settings, BrushGpencilSettings::icon_id, ID::icon_id, id, Brush::id, Object::mode, SpaceImage::mode, NULL, OB_MODE_PAINT_GPENCIL, OB_MODE_SCULPT, OB_MODE_SCULPT_CURVES, OB_MODE_SCULPT_GPENCIL, OB_MODE_TEXTURE_PAINT, OB_MODE_VERTEX_GPENCIL, OB_MODE_VERTEX_PAINT, OB_MODE_WEIGHT_GPENCIL, OB_MODE_WEIGHT_PAINT, PAINT_MODE_INVALID, PAINT_MODE_SCULPT, PAINT_MODE_SCULPT_CURVES, PAINT_MODE_TEXTURE_2D, PAINT_MODE_TEXTURE_3D, PAINT_MODE_VERTEX, PAINT_MODE_WEIGHT, POINTER_OFFSET, RNA_enum_icon_from_value(), SI_MODE_PAINT, SPACE_IMAGE, SPACE_PROPERTIES, SPACE_VIEW3D, and ui_id_icon_render().
Referenced by ui_id_icon_get().
Definition at line 2186 of file interface_icons.c.
References BKE_icon_id_ensure(), C, GS, ICON_SIZE_ICON, ICON_SIZE_PREVIEW, id, ID_BR, ID_GR, ID_IM, ID_LA, ID_MA, ID_SCR, ID_TE, ID_WO, ID::name, NULL, UI_icon_color_from_collection(), UI_icon_render_id(), ui_id_brush_get_icon(), and ui_id_screen_get_icon().
Referenced by id_search_add(), template_add_button_search_menu(), UI_icon_from_rnaptr(), and ui_rna_collection_search_update_fn().
Definition at line 2002 of file interface_icons.c.
References BKE_previewimg_id_ensure(), C, NULL, NUM_ICON_SIZES, and ui_id_preview_image_render_size().
Referenced by ui_id_brush_get_icon(), and ui_id_screen_get_icon().
|
static |
Definition at line 1955 of file interface_icons.c.
References C, PreviewImage::flag, icon_set_image(), PRV_CHANGED, PreviewImage::rect, scene, and size().
Referenced by ui_icon_ensure_deferred(), UI_icon_render_id_ex(), and ui_id_icon_render().
Definition at line 2177 of file interface_icons.c.
References BKE_icon_id_ensure(), C, and ui_id_icon_render().
Referenced by ui_id_icon_get().
|
static |
Definition at line 1314 of file interface_icons.c.
References data, StudioLight::icon_id_irradiance, StudioLight::icon_id_matcap, StudioLight::icon_id_matcap_flipped, StudioLight::icon_id_radiance, NULL, and ui_studiolight_kill_icon_preview_job().
Referenced by ui_icon_ensure_deferred(), and ui_studiolight_icon_job_end().
Definition at line 1338 of file interface_icons.c.
References BKE_studiolight_set_free_function(), NULL, Icon::obj, and ui_studiolight_free_function().
Referenced by ui_icon_ensure_deferred().
|
static |
Definition at line 1295 of file interface_icons.c.
References BKE_studiolight_preview(), DrawInfo::buffer, DrawInfo::data, icon_ensure_drawinfo(), Icon::id_type, and Icon::obj.
Referenced by ui_icon_ensure_deferred().
|
static |
Definition at line 1307 of file interface_icons.c.
References BKE_icon_get(), NULL, Icon::obj, WM_JOB_TYPE_STUDIOLIGHT, and WM_jobs_kill_type().
Referenced by ui_studiolight_free_function().
|
static |
Definition at line 410 of file interface_icons.c.
References bTheme::collection_color, ThemeCollectionColor::color, float(), ICON_DEFAULT_WIDTH, UI_GetTheme(), UI_icon_draw_ex(), w(), x, and y.
Definition at line 347 of file interface_icons.c.
References Freestyle::a, ThemeWireColor::active, usdtokens::b(), Freestyle::c, GPU_COMP_I32, GPU_FETCH_INT_TO_FLOAT, GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBindBuiltinProgram(), immRecti(), immUnbindProgram(), immUniformColor3ubv(), immVertexFormat(), pos, ThemeWireColor::select, ThemeWireColor::solid, bTheme::tarm, UI_GetTheme(), w(), x, and y.
Definition at line 498 of file interface_icons.c.
References bGPDlayer::color, GPU_COMP_I32, GPU_FETCH_INT_TO_FLOAT, GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBindBuiltinProgram(), immRecti(), immUnbindProgram(), immUniformColor3fv(), immVertexFormat(), Icon::obj, pos, w(), x, and y.
Referenced by icon_draw_size().
Definition at line 327 of file interface_icons.c.
References BEZT_KEYTYPE_KEYFRAME, KEYFRAME_HANDLE_ALIGNED, vicon_keytype_draw_wrapper(), w(), x, and y.
Referenced by init_internal_icons().
Definition at line 342 of file interface_icons.c.
References BEZT_KEYTYPE_KEYFRAME, KEYFRAME_HANDLE_AUTO_CLAMP, vicon_keytype_draw_wrapper(), w(), x, and y.
Referenced by init_internal_icons().
Definition at line 337 of file interface_icons.c.
References BEZT_KEYTYPE_KEYFRAME, KEYFRAME_HANDLE_AUTO, vicon_keytype_draw_wrapper(), w(), x, and y.
Referenced by init_internal_icons().
Definition at line 322 of file interface_icons.c.
References BEZT_KEYTYPE_KEYFRAME, KEYFRAME_HANDLE_FREE, vicon_keytype_draw_wrapper(), w(), x, and y.
Referenced by init_internal_icons().
Definition at line 332 of file interface_icons.c.
References BEZT_KEYTYPE_KEYFRAME, KEYFRAME_HANDLE_VECTOR, vicon_keytype_draw_wrapper(), w(), x, and y.
Referenced by init_internal_icons().
Definition at line 302 of file interface_icons.c.
References BEZT_KEYTYPE_BREAKDOWN, KEYFRAME_HANDLE_NONE, vicon_keytype_draw_wrapper(), w(), x, and y.
Referenced by init_internal_icons().
|
static |
Definition at line 242 of file interface_icons.c.
References KeyframeShaderBindings::color_id, draw_keyframe_shape(), KeyframeShaderBindings::flags_id, GPU_COMP_F32, GPU_COMP_U32, GPU_COMP_U8, GPU_FETCH_FLOAT, GPU_FETCH_INT, GPU_FETCH_INT_TO_FLOAT_UNIT, GPU_PRIM_POINTS, GPU_program_point_size(), GPU_SHADER_KEYFRAME_SHAPE, GPU_vertformat_attr_add(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniform1f(), immUniform2f(), immVertexFormat(), KEYFRAME_EXTREME_NONE, KEYFRAME_HANDLE_NONE, KEYFRAME_SHAPE_BOTH, KeyframeShaderBindings::outline_color_id, KeyframeShaderBindings::pos_id, RGN_TYPE_WINDOW, KeyframeShaderBindings::size_id, SPACE_ACTION, UI_SetTheme(), UI_Theme_Restore(), UI_Theme_Store(), w(), x, and y.
Referenced by vicon_handletype_aligned_draw(), vicon_handletype_auto_clamp_draw(), vicon_handletype_auto_draw(), vicon_handletype_free_draw(), vicon_handletype_vector_draw(), vicon_keytype_breakdown_draw(), vicon_keytype_extreme_draw(), vicon_keytype_jitter_draw(), vicon_keytype_keyframe_draw(), and vicon_keytype_moving_hold_draw().
Definition at line 307 of file interface_icons.c.
References BEZT_KEYTYPE_EXTREME, KEYFRAME_HANDLE_NONE, vicon_keytype_draw_wrapper(), w(), x, and y.
Referenced by init_internal_icons().
Definition at line 312 of file interface_icons.c.
References BEZT_KEYTYPE_JITTER, KEYFRAME_HANDLE_NONE, vicon_keytype_draw_wrapper(), w(), x, and y.
Referenced by init_internal_icons().
Definition at line 297 of file interface_icons.c.
References BEZT_KEYTYPE_KEYFRAME, KEYFRAME_HANDLE_NONE, vicon_keytype_draw_wrapper(), w(), x, and y.
Referenced by init_internal_icons().
Definition at line 317 of file interface_icons.c.
References BEZT_KEYTYPE_MOVEHOLD, KEYFRAME_HANDLE_NONE, vicon_keytype_draw_wrapper(), w(), x, and y.
Referenced by init_internal_icons().
|
static |
Definition at line 439 of file interface_icons.c.
References ThemeStripColor::color, float(), ICON_DEFAULT_WIDTH, bTheme::strip_color, UI_GetTheme(), UI_icon_draw_ex(), w(), x, and y.
|
static |
Definition at line 470 of file interface_icons.c.
References float(), ICON_DEFAULT_WIDTH, ICON_INDIRECT_DATA_ALPHA, NULL, UI_icon_draw_ex(), w(), x, and y.
Referenced by init_internal_icons().
|
static |
Definition at line 479 of file interface_icons.c.
References float(), ICON_DEFAULT_WIDTH, ICON_INDIRECT_DATA_ALPHA, NULL, UI_icon_draw_ex(), w(), x, and y.
Referenced by init_internal_icons().
IconTextureDrawCall border |
Definition at line 1581 of file interface_icons.c.
Referenced by ApplySnapTranslation(), blender_camera_border_subset(), clear_render_border_exec(), ContextFunctions_get_border(), ED_node_draw_snap(), blender::compositor::BufferLineAccumulator< fxu, fxv, fyu, fyv >::eval(), BlenderSync::get_buffer_params(), gizmo_render_border_prop_matrix_get(), gizmo_render_border_prop_matrix_set(), BoundBox::grow(), BoundBox::grow_safe(), immDrawBorderCorners(), NODE_DEFINE(), render_border_exec(), snapNode(), TargetSnapOffset(), ui_text_clip_cursor(), ui_text_clip_middle(), ui_text_clip_middle_protect_right(), and ui_text_clip_right_label().
bool enabled |
Definition at line 1582 of file interface_icons.c.
Referenced by BKE_tracking_stabilization_data_get(), blo_do_versions_270(), draw_setting_widget(), ED_space_image_paint_update(), has_custom_props(), MEM_use_memleak_detection(), object_subdivision_type(), RB_constraint_set_enabled(), sculpt_expand_bitmap_from_enabled(), sculpt_expand_colors_update_task_cb(), sculpt_expand_face_sets_update(), sculpt_expand_face_state_get(), sculpt_expand_mask_update_task_cb(), sculpt_expand_state_get(), blender::compositor::ColorCorrectionOperation::set_blue_channel_enabled(), blender::compositor::ColorCorrectionOperation::set_green_channel_enabled(), GHOST_TaskBarX11::set_progress_enabled(), blender::compositor::ColorCorrectionOperation::set_red_channel_enabled(), setEnabled(), and uiLayoutSetEnabled().
Definition at line 604 of file interface_icons.c.
Referenced by init_event_icons(), and UI_icon_from_event_type().
struct { ... } g_icon_draw_cache |
Definition at line 85 of file interface_icons.c.
Referenced by UI_iconfile_get_index(), UI_iconfile_list(), UI_icons_free(), and UI_icons_init().
|
static |
Definition at line 146 of file interface_icons.c.
Referenced by free_icons_textures(), icon_draw_cache_flush_ex(), icon_draw_texture(), icon_draw_texture_cached(), and UI_icons_reload_internal_textures().
|
static |
Definition at line 150 of file interface_icons.c.
Referenced by create_mono_icon_with_border(), and init_internal_icons().
IconTextureDrawCall normal |
Definition at line 1580 of file interface_icons.c.
Referenced by btGImpactCollisionAlgorithm::addContactPoint(), alter_co(), btSoftBody::appendDeformableAnchor(), apply_weights_vertex_normal(), area_tri_signed_v3(), attr_create_pointiness(), axis_dominant_v3_to_m3(), axis_dominant_v3_to_m3_negate(), BKE_gpencil_stroke_2d_flat(), BKE_gpencil_stroke_2d_flat_ref(), BKE_mesh_validate_arrays(), BM_custom_loop_normals_to_vector_layer(), bm_face_split_by_concave(), bm_mesh_loops_calc_normals_for_loop(), bm_mesh_loops_custom_normals_set(), bmo_triangle_fill_exec(), bt_edge_plane(), btRayAabb(), buildJacobian(), Freestyle::ViewEdgeXBuilder::BuildSmoothFEdge(), btPrimitiveTriangle::buildTriPlane(), btTriangleShapeEx::buildTriPlane(), C_BVHTree_FromPolygons(), cache_key_incremental_rotation(), calc_multiplane_scrape_surface_task_cb(), calcNormal(), ClipSegmentToLine(), cloth_collision(), cloth_filter_apply_forces_task_cb(), cloth_selfcollision(), SphereTriangleDetector::collide(), blender::nodes::node_geo_distribute_points_on_faces_cc::compute_attribute_outputs(), compute_collision_point_edge_tri(), compute_collision_point_tri_tri(), blender::geometry::compute_surface_point_normal(), Freestyle::ViewMapBuilder::computeCusps(), btRigidBody::computeImpulseDenominator(), computeNormalDisplacement(), Freestyle::ViewMapBuilder::ComputeRayCastingVisibility(), computeReflectionDirection(), contarget_get_mesh_mat(), continuousCollisionDetection(), VolumeMeshBuilder::convert_quads_to_tris(), blender::compositor::NormalNode::convert_to_operations(), btDefaultSoftBodySolver::copySoftBodyToVertexBuffer(), blender::nodes::node_geo_curve_primitive_arc_cc::create_arc_curve_from_points(), blender::bke::create_attribute_providers_for_mesh(), createBoneSpace(), createCurveSpace(), createMeshSpace(), createSpaceNormal(), createSpaceNormalTangent(), createTransCurveVerts(), curve_draw_event_add_first(), dBoxBox2(), debugDrawConstraint(), deformStroke(), do_layer_brush_task_cb_ex(), btSoftColliders::CollideSDF_RDF::DoNode(), btSoftColliders::CollideSDF_RD::DoNode(), btIDebugDraw::drawArc(), drawSnapping(), drw_volume_wireframe_cb(), ED_getTransformOrientationMatrix(), ED_gpencil_stroke_reproject(), ED_view3d_cursor_snap_draw_util(), end_node_frames(), btSparseSdf< CELLSIZE >::Evaluate(), Freestyle::firstIntersectionGridVisitor::examineOccluder(), face_to_plane(), fillContactJacobianMultiDof(), Freestyle::ViewMapBuilder::FindOccludee(), blender::io::obj::fixup_invalid_polygon(), blender::io::obj::geom_add_vertex_normal(), GIM_TRIANGLE::get_normal(), btPlaneShape::get_plane_equation_transformed(), btBoxBoxDetector::getClosestPoints(), SphereTriangleDetector::getClosestPoints(), btSphereBoxCollisionAlgorithm::getSphereDistance(), btSphereBoxCollisionAlgorithm::getSpherePenetration(), getTransformOrientation(), getTransformOrientation_ex(), hair_collision(), btDeformableMultiBodyDynamicsWorld::integrateTransforms(), MyInternalTriangleIndexCallback::internalProcessTriangleIndex(), btSoftBody::interpolateRenderMesh(), is_quad_flip_v3_first_third_fast_with_normal(), isInside(), kelvinlet_twist(), kernel_write_data_passes(), len_squared_v3v3_with_normal_bias(), lineart_chain_append_point(), lineart_chain_prepend_point(), lineIntersectsTriangle(), Freestyle::WShape::MakeFace(), mesh_calc_ngon_normal(), mesh_calc_poly_area_centroid(), mesh_calc_tessellation_for_face_impl(), mesh_calc_tri_tessface(), mesh_filter_task_cb(), mesh_tessface_calc(), NODE_DEFINE(), blender::nodes::node_geo_distribute_points_on_faces_cc::normal_to_euler_rotation(), object_transform_axis_target_modal(), Freestyle::GeomUtils::overlapPlaneBox(), Freestyle::GeomUtils::overlapTriangleBox(), p_add_ngon(), blender::ed::sculpt_paint::paint::image::PaintingKernel< ImageBuffer >::paint(), parallelComponent(), perpindicularComponent(), point_in_slice_as(), point_in_slice_seg(), pointOutsideOfPlane(), poly_rotate_plane(), Freestyle::Geometry::Polygon3r::Polygon3r(), Freestyle::FEdgeXDetector::ProcessSilhouetteFace(), DebugDrawcallback::processTriangle(), btSoftBodyTriangleCallback::processTriangle(), proximityTest(), btContactArray::push_contact(), gim_contact_array::push_contact(), btSdfCollisionShape::queryPoint(), raycast_all_cb(), btSoftMultiBodyDynamicsWorld::rayTestSingle(), btSoftRigidDynamicsWorld::rayTestSingle(), btDeformableMultiBodyDynamicsWorld::rayTestSingle(), RE_bake_normal_world_to_tangent(), blender::io::stl::read_stl_binary(), reflect(), blender::math::reflect(), reflect_v3_v3v3(), reflect_v3_v3v3_db(), refract(), blender::math::refract(), resolveSingleBilateral(), resolveSingleCollision(), blender::bke::mesh_surface_sample::sample_surface_points_projected(), blender::bke::mesh_surface_sample::sample_surface_points_spherical(), SCULPT_active_vertex_normal_get(), sculpt_boundary_bend_data_init(), sculpt_boundary_displacement_from_grab_delta_get(), SCULPT_cloth_simulation_limits_draw(), sculpt_gesture_line_calculate_plane_points(), sculpt_gesture_line_plane_from_tri(), sculpt_kelvinet_integrate(), Freestyle::Geometry::Polygon3r::setNormal(), btConvexHullInternal::shrink(), similar_face_select_exec(), similar_vert_select_exec(), smart_uv_project_calculate_project_normals(), solveConstraintObsolete(), sphere_normal_from_uv(), split_loop_nor_fan_do(), stitch_calculate_edge_normal(), stitch_init(), stitch_island_calculate_vert_rotation(), stroke_elem_project(), studiolight_calculate_cubemap_vector_weight(), studiolight_evaluate_specular_radiance_buffer(), studiolight_irradiance_preview(), studiolight_lights_eval(), studiolight_radiance_preview(), studiolight_spherical_harmonics_eval(), studiolight_spherical_harmonics_geomerics_eval(), svm_node_displacement(), svm_node_normal(), svm_node_normal_map(), svm_node_set_normal(), svm_node_vector_displacement(), uvprojectModifier_do(), v3d_cursor_poject_surface_normal(), walkStacklessQuantizedTreeAgainstRay(), walkStacklessTreeAgainstRay(), wm_xr_navigation_teleport(), and blender::io::obj::OBJWriter::write_poly_normals().