Blender
V3.3
|
Go to the source code of this file.
Enumerations | |
enum | { DRW_TEXT_CACHE_GLOBALSPACE = (1 << 1) , DRW_TEXT_CACHE_LOCALCLIP = (1 << 2) , DRW_TEXT_CACHE_STRING_PTR = (1 << 3) } |
Functions | |
struct DRWTextStore * | DRW_text_cache_create (void) |
void | DRW_text_cache_destroy (struct DRWTextStore *dt) |
void | DRW_text_cache_add (struct DRWTextStore *dt, const float co[3], const char *str, int str_len, short xoffs, short yoffs, short flag, const uchar col[4]) |
void | DRW_text_cache_draw (struct DRWTextStore *dt, struct ARegion *region, struct View3D *v3d) |
void | DRW_text_edit_mesh_measure_stats (struct ARegion *region, struct View3D *v3d, struct Object *ob, const struct UnitSettings *unit) |
struct DRWTextStore * | DRW_text_cache_ensure (void) |
anonymous enum |
Enumerator | |
---|---|
DRW_TEXT_CACHE_GLOBALSPACE | |
DRW_TEXT_CACHE_LOCALCLIP | |
DRW_TEXT_CACHE_STRING_PTR |
Definition at line 39 of file draw_manager_text.h.
void DRW_text_cache_add | ( | struct DRWTextStore * | dt, |
const float | co[3], | ||
const char * | str, | ||
int | str_len, | ||
short | xoffs, | ||
short | yoffs, | ||
short | flag, | ||
const uchar | col[4] | ||
) |
Definition at line 73 of file draw_manager_text.c.
References BLI_assert, BLI_memiter_alloc(), DRWTextStore::cache_strings, ViewCachedString::col, col, copy_v3_v3(), copy_v4_v4_uchar(), DRW_TEXT_CACHE_STRING_PTR, ViewCachedString::flag, str, ViewCachedString::str, ViewCachedString::str_len, ViewCachedString::ub, ViewCachedString::vec, ViewCachedString::xoffs, and ViewCachedString::yoffs.
Referenced by camera_view3d_reconstruction(), draw_bone_name(), DRW_text_edit_mesh_measure_stats(), motion_path_cache(), OVERLAY_edit_uv_cache_init(), overlay_gpencil_draw_stroke_color_name(), and OVERLAY_object_name().
struct DRWTextStore* DRW_text_cache_create | ( | void | ) |
Definition at line 60 of file draw_manager_text.c.
References BLI_memiter_create(), DRWTextStore::cache_strings, and MEM_callocN.
Referenced by DRW_text_cache_ensure().
void DRW_text_cache_destroy | ( | struct DRWTextStore * | dt | ) |
Definition at line 67 of file draw_manager_text.c.
References BLI_memiter_destroy(), DRWTextStore::cache_strings, and MEM_freeN.
Referenced by draw_viewport_engines_data_clear(), and drw_engines_cache_init().
void DRW_text_cache_draw | ( | struct DRWTextStore * | dt, |
struct ARegion * | region, | ||
struct View3D * | v3d | ||
) |
Definition at line 150 of file draw_manager_text.c.
References BLI_memiter_iter_init(), BLI_memiter_iter_step(), BLI_rctf_transform_calc_m4_pivot_min(), DRWTextStore::cache_strings, copy_v3_v3(), View2D::cur, drw_text_cache_draw_ex(), DRW_TEXT_CACHE_GLOBALSPACE, DRW_TEXT_CACHE_LOCALCLIP, ED_view3d_project_short_ex(), ViewCachedString::flag, GPU_clip_distances(), IS_CLIPPED, mul_m4_v3(), RegionView3D::persmat, RegionView3D::persmatob, ARegion::regiondata, RV3D_CLIPPING_ENABLED, ViewCachedString::sco, ARegion::v2d, V3D_PROJ_RET_OK, V3D_PROJ_TEST_CLIP_BB, V3D_PROJ_TEST_CLIP_NEAR, V3D_PROJ_TEST_CLIP_WIN, ViewCachedString::vec, ARegion::winx, and ARegion::winy.
Referenced by drw_engines_draw_text().
struct DRWTextStore* DRW_text_cache_ensure | ( | void | ) |
Definition at line 1551 of file draw_manager.c.
References BLI_assert, DRW_text_cache_create(), DST, NULL, and DRWManager::text_store_p.
Referenced by camera_view3d_reconstruction(), draw_bone_name(), DRW_text_edit_mesh_measure_stats(), motion_path_cache(), OVERLAY_edit_uv_cache_init(), overlay_gpencil_draw_stroke_color_name(), and OVERLAY_object_name().
void DRW_text_edit_mesh_measure_stats | ( | struct ARegion * | region, |
struct View3D * | v3d, | ||
struct Object * | ob, | ||
const struct UnitSettings * | unit | ||
) |