Blender
V3.3
|
#include <math.h>
#include <string.h>
#include "DNA_color_types.h"
#include "DNA_curve_types.h"
#include "DNA_curveprofile_types.h"
#include "DNA_movieclip_types.h"
#include "DNA_screen_types.h"
#include "BLI_math.h"
#include "BLI_polyfill_2d.h"
#include "BLI_rect.h"
#include "BLI_string.h"
#include "BLI_utildefines.h"
#include "MEM_guardedalloc.h"
#include "BKE_colorband.h"
#include "BKE_colortools.h"
#include "BKE_curveprofile.h"
#include "BKE_node.h"
#include "BKE_tracking.h"
#include "IMB_colormanagement.h"
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
#include "BIF_glutil.h"
#include "BLF_api.h"
#include "GPU_batch.h"
#include "GPU_batch_presets.h"
#include "GPU_context.h"
#include "GPU_immediate.h"
#include "GPU_immediate_util.h"
#include "GPU_matrix.h"
#include "GPU_shader_shared.h"
#include "GPU_state.h"
#include "UI_interface.h"
#include "interface_intern.h"
Go to the source code of this file.
Macros | |
#define | HISTOGRAM_TOT_GRID_LINES 4 |
Variables | |
static int | roundboxtype = UI_CNR_ALL |
#define HISTOGRAM_TOT_GRID_LINES 4 |
Definition at line 445 of file interface_draw.c.
Definition at line 361 of file interface_draw.c.
References color, GPU_blend(), GPU_BLEND_ALPHA, UI_CNR_ALL, UI_draw_roundbox_4fv(), UI_draw_roundbox_corner_set(), rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by ui_draw_but_HISTOGRAM().
Definition at line 1468 of file interface_draw.c.
References color, gl_shaded_color_get(), and immUniformColor3ubv().
Referenced by ui_draw_but_CURVE(), and ui_draw_but_CURVEPROFILE().
Definition at line 1454 of file interface_draw.c.
References color.
Referenced by gl_shaded_color(), and gl_shaded_color_get_fl().
Definition at line 1461 of file interface_draw.c.
References color, gl_shaded_color_get(), and rgb_uchar_to_float().
Referenced by ui_draw_but_CURVE(), and ui_draw_but_CURVEPROFILE().
|
static |
Definition at line 380 of file interface_draw.c.
References usdtokens::b(), color, data, float(), usdtokens::g(), GPU_blend(), GPU_BLEND_ADDITIVE, GPU_BLEND_ALPHA, GPU_line_smooth(), GPU_line_width(), GPU_PRIM_LINE_STRIP, GPU_PRIM_TRI_STRIP, immBegin(), immEnd(), immUniformColor4f(), immUniformColor4fv(), immVertex2f(), r, w(), x, x2, and y.
Referenced by ui_draw_but_HISTOGRAM().
|
static |
Helper for ui_draw_but_CURVEPROFILE. Used to tell whether to draw a control point's handles.
Definition at line 1744 of file interface_draw.c.
References ELEM, HD_ALIGN, HD_FREE, point, PROF_H1_SELECT, PROF_H2_SELECT, and PROF_SELECT.
Referenced by ui_draw_but_CURVEPROFILE().
Definition at line 815 of file interface_draw.c.
References angle(), center, and cosf.
Referenced by vectorscope_draw_target().
Definition at line 820 of file interface_draw.c.
References angle(), center, and sinf.
Referenced by vectorscope_draw_target().
Definition at line 2282 of file interface_draw.c.
References color, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_COMP_U8, GPU_FETCH_FLOAT, GPU_FETCH_INT_TO_FLOAT_UNIT, GPU_PRIM_TRIS, GPU_SHADER_2D_SMOOTH_COLOR, GPU_vertformat_attr_add(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immVertexFormat(), pos, and ui_shadowbox().
void ui_draw_but_COLORBAND | ( | uiBut * | but, |
const uiWidgetColors * | UNUSEDwcol, | ||
const rcti * | rect | ||
) |
Definition at line 1205 of file interface_draw.c.
References Freestyle::a, BKE_colorband_evaluate(), BLI_rcti_size_y(), uiBut::block, ColorBand::cur, ColorBand::data, uiButColorBand::edit_coba, float(), GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_LINES, GPU_PRIM_TRI_STRIP, GPU_SHADER_2D_CHECKER, GPU_SHADER_2D_SMOOTH_COLOR, GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), IMB_colormanagement_scene_linear_to_display_v3(), imm_draw_box_wire_2d(), immAttr4f(), immAttr4fv(), immBegin(), immBindBuiltinProgram(), immEnd(), immRectf(), immUnbindProgram(), immUniform1i(), immUniform4f(), immUniformColor4f(), immVertex2f(), immVertex2fv(), immVertexFormat(), NULL, uiBut::poin, pos, CBData::pos, CBData::r, ColorBand::tot, UI_ALPHA_CHECKER_DARK, UI_ALPHA_CHECKER_LIGHT, ui_block_cm_display_get(), ui_draw_colorband_handle(), v1, v2, rcti::xmax, rcti::xmin, y1, rcti::ymax, and rcti::ymin.
Referenced by ui_draw_but().
void ui_draw_but_CURVE | ( | ARegion * | region, |
uiBut * | but, | ||
const uiWidgetColors * | wcol, | ||
const rcti * | rect | ||
) |
Definition at line 1475 of file interface_draw.c.
References Freestyle::a, ARRAY_SET_ITEMS, uiBlock::aspect, BKE_curvemapping_changed(), BLI_rctf_size_x(), BLI_rctf_size_y(), BLI_rcti_isect(), BLI_rcti_size_x(), BLI_rcti_size_y(), uiBut::block, CurveMapping::clipr, CurveMapping::cm, CM_TABLE, col, CUMA_DO_CLIP, CUMA_DRAW_CFRA, CUMA_DRAW_SAMPLE, CUMA_EXTEND_EXTRAPOLATE, CUMA_SELECT, CurveMapping::cur, CurveMapping::curr, CurveMap::curve, uiButCurveMapping::edit_cumap, CurveMap::ext_in, CurveMap::ext_out, CurveMapping::flag, gl_shaded_color(), gl_shaded_color_get_fl(), GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_line_smooth(), GPU_line_width(), GPU_point_size(), GPU_PRIM_LINE_STRIP, GPU_PRIM_LINES, GPU_PRIM_POINTS, GPU_PRIM_TRI_STRIP, GPU_scissor(), GPU_scissor_get(), GPU_SHADER_2D_FLAT_COLOR, GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), uiButCurveMapping::gradient_type, IMB_colormanagement_get_luminance(), imm_draw_box_wire_2d(), immAttr4fv(), immBegin(), immBindBuiltinProgram(), immEnd(), immRectf(), immUnbindProgram(), immUniformColor3fv(), immUniformColor3ub(), immUniformColor3ubv(), immUniformColor3ubvAlpha(), immUniformColor4fv(), immVertex2f(), immVertexFormat(), uiWidgetColors::inner, interp_v3_v3v3(), uiWidgetColors::item, len_squared_v3(), len_squared_v3v3(), linearrgb_to_srgb_v3_v3(), max_ff(), min_ff(), NULL, uiWidgetColors::outline, uiBut::poin, pos, rgb_to_hsv_v(), rgb_uchar_to_float(), CurveMapping::sample, swap_v3_v3(), CurveMap::table, TH_TEXT, TH_TEXT_HI, CurveMap::totpoint, UI_DPI_FAC, ui_draw_but_curve_grid(), ui_draw_gradient(), UI_GetThemeColor4fv(), UI_GRAD_H, ARegion::winx, ARegion::winy, CurveMapPoint::x, rcti::xmax, rctf::xmax, rcti::xmin, rctf::xmin, CurveMapPoint::y, rcti::ymax, rctf::ymax, rcti::ymin, and rctf::ymin.
Referenced by ui_draw_but().
|
static |
Definition at line 1422 of file interface_draw.c.
References ceilf, GPU_PRIM_LINES, immBegin(), immEnd(), immVertex2f(), pos, x, rcti::xmax, rcti::xmin, y, rcti::ymax, and rcti::ymin.
Referenced by ui_draw_but_CURVE(), and ui_draw_but_CURVEPROFILE().
void ui_draw_but_CURVEPROFILE | ( | ARegion * | region, |
uiBut * | but, | ||
const uiWidgetColors * | wcol, | ||
const rcti * | rect | ||
) |
Definition at line 1751 of file interface_draw.c.
References uiBlock::aspect, BKE_curveprofile_table_size(), BKE_curveprofile_update(), BLI_polyfill_calc(), BLI_rctf_size_x(), BLI_rctf_size_y(), BLI_rcti_isect(), BLI_rcti_size_x(), BLI_rcti_size_y(), uiBut::block, CurveProfile::clip_rect, col, uiButCurveProfile::edit_profile, CurveProfile::flag, float(), gl_shaded_color(), gl_shaded_color_get_fl(), GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_line_smooth(), GPU_line_width(), GPU_point_size(), GPU_polygon_smooth(), GPU_PRIM_LINE_STRIP, GPU_PRIM_LINES, GPU_PRIM_POINTS, GPU_PRIM_TRIS, GPU_scissor(), GPU_scissor_get(), GPU_SHADER_2D_FLAT_COLOR, GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), CurveProfilePoint::h1_loc, CurveProfilePoint::h2_loc, if(), imm_draw_box_wire_2d(), immAttr4fv(), immBegin(), immBindBuiltinProgram(), immEnd(), immRectf(), immUnbindProgram(), immUniformColor3fv(), immUniformColor3ubv(), immUniformColor3ubvAlpha(), immVertex2f(), immVertexFormat(), uiWidgetColors::inner, interp_v3_v3v3(), uiWidgetColors::item, len_squared_v3(), len_squared_v3v3(), max_ff(), MEM_freeN, MEM_mallocN, MEM_SAFE_FREE, min_ff(), NULL, uiWidgetColors::outline, CurveProfile::path, CurveProfile::path_len, uiBut::poin, point_draw_handles(), pos, PROF_H1_SELECT, PROF_H2_SELECT, PROF_SELECT, PROF_UPDATE_NONE, PROF_USE_CLIP, rgb_uchar_to_float(), CurveProfile::segments, CurveProfile::segments_len, swap_v3_v3(), CurveProfile::table, TH_TEXT, TH_TEXT_HI, UI_DPI_FAC, ui_draw_but_curve_grid(), UI_GetThemeColor4fv(), CurveProfile::view_rect, ARegion::winx, ARegion::winy, CurveProfilePoint::x, rcti::xmax, rctf::xmax, rcti::xmin, rctf::xmin, CurveProfilePoint::y, rcti::ymax, rctf::ymax, rcti::ymin, and rctf::ymin.
Referenced by ui_draw_but().
void ui_draw_but_HISTOGRAM | ( | ARegion * | UNUSEDregion, |
uiBut * | but, | ||
const uiWidgetColors * | UNUSEDwcol, | ||
const rcti * | recti | ||
) |
Definition at line 447 of file interface_draw.c.
References BLI_rctf_size_x(), BLI_rctf_size_y(), color, Histogram::data_a, Histogram::data_b, Histogram::data_g, Histogram::data_luma, Histogram::data_r, draw_scope_end(), ELEM, Histogram::flag, float(), GPU_blend(), GPU_BLEND_ALPHA, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_LINES, GPU_scissor(), GPU_scissor_get(), GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), HISTO_FLAG_LINE, HISTO_MODE_ALPHA, HISTO_MODE_B, HISTO_MODE_G, HISTO_MODE_LUMA, HISTO_MODE_R, HISTO_MODE_RGB, histogram_draw_one(), HISTOGRAM_TOT_GRID_LINES, immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniformColor4f(), immVertex2f(), immVertexFormat(), Histogram::mode, uiBut::poin, pos, TH_PREVIEW_BACK, UI_CNR_ALL, UI_draw_roundbox_4fv(), UI_draw_roundbox_corner_set(), UI_GetThemeColor4fv(), UNPACK4, w(), Histogram::x_resolution, rcti::xmax, rctf::xmax, rcti::xmin, rctf::xmin, Histogram::ymax, rcti::ymax, rctf::ymax, rcti::ymin, and rctf::ymin.
Referenced by ui_draw_but().
void ui_draw_but_IMAGE | ( | ARegion * | UNUSEDregion, |
uiBut * | but, | ||
const uiWidgetColors * | UNUSEDwcol, | ||
const rcti * | rect | ||
) |
Definition at line 272 of file interface_draw.c.
References BLI_rcti_size_x(), BLI_rcti_size_y(), uiBut::col, col, GPU_blend(), GPU_BLEND_ALPHA_PREMULT, GPU_BLEND_NONE, GPU_RGBA8, GPU_scissor(), GPU_scissor_get(), GPU_SHADER_2D_IMAGE_COLOR, if(), IMB_scaleImBuf(), immDrawPixelsTexSetup(), immDrawPixelsTexTiled(), uiBut::poin, ImBuf::rect, rgba_uchar_to_float(), state, void, w(), ImBuf::x, rcti::xmin, ImBuf::y, and rcti::ymin.
Referenced by ui_draw_but().
void ui_draw_but_TAB_outline | ( | const rcti * | rect, |
float | rad, | ||
uchar | highlight[3], | ||
uchar | highlight_fade[3] | ||
) |
Definition at line 183 of file interface_draw.c.
References Freestyle::a, col, GPU_COMP_F32, GPU_COMP_U8, GPU_FETCH_FLOAT, GPU_FETCH_INT_TO_FLOAT_UNIT, GPU_PRIM_LINE_STRIP, GPU_SHADER_2D_SMOOTH_COLOR, GPU_vertformat_attr_add(), immAttr3ubv(), immBeginAtMost(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immVertex2f(), immVertexFormat(), mul_v2_fl(), pos, roundboxtype, UI_CNR_BOTTOM_LEFT, UI_CNR_BOTTOM_RIGHT, UI_CNR_TOP_LEFT, UI_CNR_TOP_RIGHT, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by widget_tab().
void ui_draw_but_TRACKPREVIEW | ( | ARegion * | UNUSEDregion, |
uiBut * | but, | ||
const uiWidgetColors * | UNUSEDwcol, | ||
const rcti * | recti | ||
) |
Definition at line 2035 of file interface_draw.c.
References float(), uiBut::poin, rcti::xmax, rcti::xmin, rctf::xmin, rcti::ymax, and rcti::ymin.
Referenced by ui_draw_but().
void ui_draw_but_UNITVEC | ( | uiBut * | but, |
const uiWidgetColors * | wcol, | ||
const rcti * | rect, | ||
const float | radius | ||
) |
Definition at line 1343 of file interface_draw.c.
References BLI_rcti_size_x(), BLI_rcti_size_y(), SimpleLightingData::color, copy_v3_v3(), copy_v4_fl4(), GPU_batch_draw(), GPU_batch_preset_sphere(), GPU_batch_program_set_builtin(), GPU_batch_uniformbuf_bind, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_CULL_BACK, GPU_CULL_NONE, GPU_face_culling(), GPU_FETCH_FLOAT, GPU_line_smooth(), GPU_MATRIX_ORTHO_CLIP_NEAR_DEFAULT, GPU_matrix_ortho_set_z(), GPU_matrix_pop(), GPU_matrix_pop_projection(), GPU_matrix_push(), GPU_matrix_push_projection(), GPU_matrix_scale_1f(), GPU_matrix_translate_2f(), GPU_SHADER_2D_UNIFORM_COLOR, GPU_SHADER_SIMPLE_LIGHTING, GPU_uniformbuf_create_ex(), GPU_uniformbuf_free(), GPU_vertformat_attr_add(), GPUBatch, imm_draw_circle_wire_2d(), immBindBuiltinProgram(), immUnbindProgram(), immUniformColor3ubv(), immVertexFormat(), uiWidgetColors::inner, SimpleLightingData::light, min_ff(), pos, size(), ui_but_v3_get(), UI_CNR_ALL, UI_draw_roundbox_3ub_alpha(), UI_draw_roundbox_corner_set(), rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by widget_unitvec().
void ui_draw_but_VECTORSCOPE | ( | ARegion * | UNUSEDregion, |
uiBut * | but, | ||
const uiWidgetColors * | UNUSEDwcol, | ||
const rcti * | recti | ||
) |
Definition at line 921 of file interface_draw.c.
References DEG2RADF, and uiBut::poin.
Referenced by ui_draw_but().
void ui_draw_but_WAVEFORM | ( | ARegion * | UNUSEDregion, |
uiBut * | but, | ||
const uiWidgetColors * | UNUSEDwcol, | ||
const rcti * | recti | ||
) |
Definition at line 569 of file interface_draw.c.
References uiBut::poin.
Referenced by ui_draw_but().
|
static |
Definition at line 1107 of file interface_draw.c.
References blender::compositor::active, BLI_rcti_size_y(), floorf, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_PRIM_LINES, GPU_SHADER_2D_LINE_DASHED_UNIFORM_COLOR, GPU_SHADER_2D_UNIFORM_COLOR, GPU_viewport_size_get_f(), height, IMB_colormanagement_scene_linear_to_display_v3(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniform1f(), immUniform1i(), immUniform2f(), immUniform4f(), immUniformColor3fv(), immUniformColor3ub(), immVertex2f(), usdtokens::rgb(), UI_DPI_FAC, ui_draw_colorband_handle_box(), ui_draw_colorband_handle_tri(), ui_draw_colorband_handle_tri_hlight(), UNPACK3, x, y1, rcti::ymax, and rcti::ymin.
Referenced by ui_draw_but_COLORBAND().
|
static |
Definition at line 1085 of file interface_draw.c.
References GPU_PRIM_LINE_STRIP, GPU_PRIM_TRI_STRIP, immBegin(), immEnd(), immVertex2f(), pos, x2, and y1.
Referenced by ui_draw_colorband_handle().
|
static |
Definition at line 1061 of file interface_draw.c.
References GPU_line_smooth(), GPU_polygon_smooth(), GPU_PRIM_LINE_LOOP, GPU_PRIM_TRIS, height, immBegin(), immEnd(), immVertex2f(), pos, and y1.
Referenced by ui_draw_colorband_handle().
|
static |
Definition at line 1047 of file interface_draw.c.
References GPU_line_smooth(), GPU_PRIM_LINE_STRIP, height, immBegin(), immEnd(), immVertex2f(), pos, and y1.
Referenced by ui_draw_colorband_handle().
void ui_draw_dropshadow | ( | const rctf * | rct, |
float | radius, | ||
float | aspect, | ||
float | alpha, | ||
int | UNUSEDselect | ||
) |
Definition at line 2307 of file interface_draw.c.
References batch, BLI_rctf_size_y(), color, GPU_batch_draw(), GPU_batch_program_set_builtin(), GPU_batch_uniform_1f, GPU_batch_uniform_4fv_array, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_SHADER_2D_WIDGET_SHADOW, GPUBatch, min_ff(), uiWidgetBaseParameters::recti, roundboxtype, smoothminf(), ui_batch_roundbox_shadow_get(), UI_CNR_BOTTOM_LEFT, UI_CNR_BOTTOM_RIGHT, UI_CNR_TOP_LEFT, UI_CNR_TOP_RIGHT, UI_draw_roundbox_4fv(), rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
void UI_draw_roundbox_3fv_alpha | ( | const rctf * | rect, |
bool | filled, | ||
float | rad, | ||
const float | col[3], | ||
float | alpha | ||
) |
Definition at line 142 of file interface_draw.c.
References col, NULL, and UI_draw_roundbox_4fv_ex().
void UI_draw_roundbox_3ub_alpha | ( | const rctf * | rect, |
bool | filled, | ||
float | rad, | ||
const uchar | col[3], | ||
uchar | alpha | ||
) |
Definition at line 130 of file interface_draw.c.
References col, float(), NULL, and UI_draw_roundbox_4fv_ex().
Referenced by ui_draw_but_UNITVEC().
Definition at line 161 of file interface_draw.c.
References col, NULL, and UI_draw_roundbox_4fv_ex().
Referenced by draw_scope_end(), ui_draw_but_HISTOGRAM(), and ui_draw_dropshadow().
void UI_draw_roundbox_4fv_ex | ( | const rctf * | rect, |
const float | inner1[4], | ||
const float | inner2[4], | ||
float | shade_dir, | ||
const float | outline[4], | ||
float | outline_width, | ||
float | rad | ||
) |
Definition at line 69 of file interface_draw.c.
References batch, GPU_batch_draw(), GPU_batch_program_set_builtin(), GPU_batch_uniform_4fv_array, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_SHADER_2D_WIDGET_BASE, GPUBatch, uiWidgetBaseParameters::recti, roundboxtype, ui_batch_roundbox_widget_get(), UI_CNR_BOTTOM_LEFT, UI_CNR_BOTTOM_RIGHT, UI_CNR_TOP_LEFT, UI_CNR_TOP_RIGHT, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by UI_draw_roundbox_3fv_alpha(), UI_draw_roundbox_3ub_alpha(), UI_draw_roundbox_4fv(), and UI_draw_roundbox_aa().
Definition at line 149 of file interface_draw.c.
References color, NULL, and UI_draw_roundbox_4fv_ex().
void UI_draw_roundbox_corner_set | ( | int | type | ) |
Definition at line 55 of file interface_draw.c.
References roundboxtype, and type.
Referenced by acf_generic_root_backdrop(), acf_group_backdrop(), acf_nla_controls_backdrop(), acf_nlaaction_backdrop(), acf_summary_backdrop(), draw_current_frame(), draw_keylist_block(), draw_keylist_block_gpencil(), draw_scope_end(), draw_tile_background(), file_draw_list(), blender::ed::space_node::frame_node_draw(), gizmo_axis_draw(), icon_draw_rect_input(), nla_draw_strip(), blender::ed::space_node::node_draw_basis(), blender::ed::space_node::node_draw_extra_info_panel(), blender::ed::space_node::node_draw_hidden(), blender::ed::space_node::node_draw_shadow(), blender::ed::space_node::node_socket_draw_multi_input(), outliner_draw_active_indicator(), outliner_draw_iconrow_number(), panel_draw_aligned_backdrop(), panel_draw_highlight_border(), region_draw_azone_tab_arrow(), region_draw_status_text(), screen_draw_join_highlight(), textview_draw_string(), ui_draw_but_HISTOGRAM(), ui_draw_but_UNITVEC(), UI_fontstyle_draw_simple_backdrop(), and UI_panel_category_draw_all().
void UI_draw_safe_areas | ( | uint | pos, |
const rctf * | rect, | ||
const float | title_aspect[2], | ||
const float | action_aspect[2] | ||
) |
Definition at line 335 of file interface_draw.c.
References ARRAY_SIZE, imm_draw_box_wire_2d(), pos, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Definition at line 167 of file interface_draw.c.
References color, GPU_COMP_I32, GPU_FETCH_INT_TO_FLOAT, GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), height, immBindBuiltinProgram(), immRecti(), immUnbindProgram(), immUniformColor4fv(), immVertexFormat(), len, and pos.
|
static |
v1-_ | -_v2 | | | | | | v7_______v3____v4 \ | / \ | _v5 v8______v6_-
Definition at line 2219 of file interface_draw.c.
References color, immAttr4ub(), immVertex2fv(), pos, v1, v2, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by UI_draw_box_shadow().
|
static |
Definition at line 825 of file interface_draw.c.
References atanf, BLI_YUV_ITU_BT709, DEG2RADF, float(), GPU_PRIM_LINE_LOOP, GPU_PRIM_LINE_STRIP, immBegin(), immEnd(), immUniformColor4f(), immVertex2f(), M_PI, M_PI_2, polar_to_x(), polar_to_y(), pos, rgb_to_yuv(), sqrtf, v, and y.
Definition at line 550 of file interface_draw.c.
References batch, col, GPU_batch_create_ex(), GPU_batch_discard(), GPU_batch_draw(), GPU_BATCH_OWNS_VBO, GPU_batch_program_set_builtin(), GPU_batch_uniform_4f, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_POINTS, GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertbuf_attr_fill(), GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), GPUBatch, and NULL.
|
static |
Definition at line 53 of file interface_draw.c.
Referenced by ui_draw_but_TAB_outline(), ui_draw_dropshadow(), UI_draw_roundbox_4fv_ex(), UI_draw_roundbox_corner_set(), and UI_panel_category_draw_all().