Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/draw_manager_text.c
| Show All 30 Lines | |||||
| #include "ED_view3d.h" | #include "ED_view3d.h" | ||||
| #include "UI_interface.h" | #include "UI_interface.h" | ||||
| #include "WM_api.h" | #include "WM_api.h" | ||||
| #include "BLF_api.h" | #include "BLF_api.h" | ||||
| #include "draw_manager_text.h" | #include "draw_manager_text.h" | ||||
| #include "DRW_render.h" | |||||
| typedef struct ViewCachedString { | typedef struct ViewCachedString { | ||||
| float vec[3]; | float vec[3]; | ||||
| union { | union { | ||||
| uchar ub[4]; | uchar ub[4]; | ||||
| int pack; | int pack; | ||||
| } col; | } col; | ||||
| short sco[2]; | short sco[2]; | ||||
| ▲ Show 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | while ((vos = BLI_memiter_iter_step(&it))) { | ||||
| else { | else { | ||||
| vos->sco[0] = IS_CLIPPED; | vos->sco[0] = IS_CLIPPED; | ||||
| } | } | ||||
| } | } | ||||
| if (tot) { | if (tot) { | ||||
| int col_pack_prev = 0; | int col_pack_prev = 0; | ||||
| if (rv3d->rflag & RV3D_CLIPPING) { | if (DRW_state_is_clipping_enabled()) { | ||||
| ED_view3d_clipping_disable(); | ED_view3d_clipping_disable(); | ||||
| } | } | ||||
| float original_proj[4][4]; | float original_proj[4][4]; | ||||
| GPU_matrix_projection_get(original_proj); | GPU_matrix_projection_get(original_proj); | ||||
| wmOrtho2_region_pixelspace(ar); | wmOrtho2_region_pixelspace(ar); | ||||
| GPU_matrix_push(); | GPU_matrix_push(); | ||||
| Show All 21 Lines | while ((vos = BLI_memiter_iter_step(&it))) { | ||||
| (vos->flag & DRW_TEXT_CACHE_STRING_PTR) ? *((const char **)vos->str) : vos->str, | (vos->flag & DRW_TEXT_CACHE_STRING_PTR) ? *((const char **)vos->str) : vos->str, | ||||
| vos->str_len); | vos->str_len); | ||||
| } | } | ||||
| } | } | ||||
| GPU_matrix_pop(); | GPU_matrix_pop(); | ||||
| GPU_matrix_projection_set(original_proj); | GPU_matrix_projection_set(original_proj); | ||||
| if (rv3d->rflag & RV3D_CLIPPING) { | if (DRW_state_is_clipping_enabled()) { | ||||
| ED_view3d_clipping_enable(); | ED_view3d_clipping_enable(); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||