Blender
V3.3
|
#include "DRW_render.h"
#include "BKE_vfont.h"
#include "DNA_curve_types.h"
#include "overlay_private.h"
Go to the source code of this file.
Functions | |
void | OVERLAY_edit_text_cache_init (OVERLAY_Data *vedata) |
static void | v2_quad_corners_to_mat4 (const float corners[4][2], float r_mat[4][4]) |
static void | edit_text_cache_populate_select (OVERLAY_Data *vedata, Object *ob) |
static void | edit_text_cache_populate_cursor (OVERLAY_Data *vedata, Object *ob) |
static void | edit_text_cache_populate_boxes (OVERLAY_Data *vedata, Object *ob) |
void | OVERLAY_edit_text_cache_populate (OVERLAY_Data *vedata, Object *ob) |
void | OVERLAY_edit_text_draw (OVERLAY_Data *vedata) |
|
static |
Definition at line 134 of file overlay_edit_text.c.
References Curve::actbox, DRW_Global::block, color, GlobalsUboStorage::color_active, GlobalsUboStorage::color_wire, Object::data, Curve::fsize_realtime, G_draw, TextBox::h, mul_v3_m4v3(), Object::obmat, OVERLAY_extra_call_buffer_get(), OVERLAY_extra_line_dashed(), Curve::tb, Curve::totbox, TextBox::w, TextBox::x, Curve::xof, TextBox::y, and Curve::yof.
Referenced by OVERLAY_edit_text_cache_populate().
|
static |
Definition at line 119 of file overlay_edit_text.c.
References Object::data, DRW_cache_quad_get(), DRW_shgroup_call_obmat, OVERLAY_PrivateData::edit_text_overlay_grp, Curve::editfont, float(), GPUBatch, mul_m4_m4m4(), Object::obmat, OVERLAY_StorageList::pd, OVERLAY_Data::stl, EditFont::textcurs, and v2_quad_corners_to_mat4().
Referenced by OVERLAY_edit_text_cache_populate().
|
static |
Definition at line 74 of file overlay_edit_text.c.
References add_v2_v2(), angle_to_mat2(), copy_v2_fl2(), Object::data, DRW_cache_quad_get(), DRW_shgroup_call_obmat, OVERLAY_PrivateData::edit_text_overlay_grp, Curve::editfont, GPUBatch, EditFontSelBox::h, mul_m4_m4m4(), mul_v2_v2fl(), Object::obmat, OVERLAY_StorageList::pd, EditFontSelBox::rot, EditFont::selboxes, EditFont::selboxes_len, OVERLAY_Data::stl, v2_quad_corners_to_mat4(), EditFontSelBox::w, EditFontSelBox::x, and EditFontSelBox::y.
Referenced by OVERLAY_edit_text_cache_populate().
void OVERLAY_edit_text_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 16 of file overlay_edit_text.c.
References DRW_Global::block, OVERLAY_PrivateData::clipping_state, GlobalsUboStorage::color_wire, CURVE_HANDLE_NONE, DRW_context_state_get(), DRW_PASS_CREATE, DRW_PASS_INSTANCE_CREATE, DRW_shgroup_create(), DRW_shgroup_uniform_vec4(), DRW_shgroup_uniform_vec4_copy(), DRW_STATE_BLEND_ALPHA, DRW_STATE_BLEND_MUL, DRW_STATE_DEPTH_ALWAYS, DRW_STATE_DEPTH_GREATER_EQUAL, DRW_STATE_DEPTH_LESS_EQUAL, DRW_STATE_WRITE_COLOR, DRW_STATE_WRITE_DEPTH, DRW_view_create_with_zoffset(), DRW_view_default_get(), OVERLAY_PrivateData::edit_curve, OVERLAY_ShadingData::edit_curve_normal_length, OVERLAY_PrivateData::edit_text, OVERLAY_PassList::edit_text_darken_ps, OVERLAY_PrivateData::edit_text_overlay_grp, OVERLAY_PassList::edit_text_overlay_ps, OVERLAY_PrivateData::edit_text_wire_grp, OVERLAY_PassList::edit_text_wire_ps, G_draw, OVERLAY_PrivateData::handle_display, View3DOverlay::handle_display, View3DOverlay::normals_length, View3D::overlay, OVERLAY_PrivateData::overlay_color, OVERLAY_shader_uniform_color(), OVERLAY_StorageList::pd, OVERLAY_Data::psl, DRWContextState::rv3d, sh, OVERLAY_PrivateData::shdata, OVERLAY_PrivateData::show_handles, state, OVERLAY_Data::stl, DRWContextState::v3d, and OVERLAY_PrivateData::view_edit_text.
Referenced by OVERLAY_cache_init().
void OVERLAY_edit_text_cache_populate | ( | OVERLAY_Data * | vedata, |
Object * | ob | ||
) |
Definition at line 165 of file overlay_edit_text.c.
References DRW_cache_text_edge_wire_get(), DRW_shgroup_call, Object::dtx, edit_text_cache_populate_boxes(), edit_text_cache_populate_cursor(), edit_text_cache_populate_select(), OVERLAY_PrivateData::edit_text_wire_grp, GPUBatch, OB_DRAW_IN_FRONT, OVERLAY_StorageList::pd, and OVERLAY_Data::stl.
Referenced by OVERLAY_cache_populate().
void OVERLAY_edit_text_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 181 of file overlay_edit_text.c.
References copy_v4_fl4(), DRW_draw_pass(), DRW_state_is_fbo(), DRW_view_set_active(), OVERLAY_PrivateData::edit_text, OVERLAY_PassList::edit_text_darken_ps, OVERLAY_PassList::edit_text_overlay_ps, OVERLAY_PassList::edit_text_wire_ps, OVERLAY_Data::fbl, GPU_framebuffer_bind(), OVERLAY_PrivateData::overlay_color, OVERLAY_FramebufferList::overlay_default_fb, OVERLAY_StorageList::pd, OVERLAY_Data::psl, OVERLAY_Data::stl, and OVERLAY_PrivateData::view_edit_text.
Referenced by OVERLAY_draw_scene().
Definition at line 62 of file overlay_edit_text.c.
References add_v2_v2(), copy_v2_v2(), mul_v2_fl(), sub_v2_v2v2(), and unit_m4().
Referenced by edit_text_cache_populate_cursor(), and edit_text_cache_populate_select().