Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/draw_manager_text.h
| Show All 18 Lines | |||||
| /** \file | /** \file | ||||
| * \ingroup draw | * \ingroup draw | ||||
| */ | */ | ||||
| #ifndef __DRAW_MANAGER_TEXT_H__ | #ifndef __DRAW_MANAGER_TEXT_H__ | ||||
| #define __DRAW_MANAGER_TEXT_H__ | #define __DRAW_MANAGER_TEXT_H__ | ||||
| struct DRWTextStore; | struct DRWTextStore; | ||||
| struct ARegion; | |||||
| struct View3D; | |||||
| struct Object; | |||||
| struct UnitSettings; | |||||
| struct DRWTextStore *DRW_text_cache_create(void); | struct DRWTextStore *DRW_text_cache_create(void); | ||||
| void DRW_text_cache_destroy(struct DRWTextStore *dt); | void DRW_text_cache_destroy(struct DRWTextStore *dt); | ||||
| void DRW_text_cache_add(struct DRWTextStore *dt, | void DRW_text_cache_add(struct DRWTextStore *dt, | ||||
| const float co[3], | const float co[3], | ||||
| const char *str, | const char *str, | ||||
| const int str_len, | const int str_len, | ||||
| short xoffs, | short xoffs, | ||||
| short yoffs, | short yoffs, | ||||
| short flag, | short flag, | ||||
| const uchar col[4]); | const uchar col[4]); | ||||
| void DRW_text_cache_draw(struct DRWTextStore *dt, struct ARegion *ar); | void DRW_text_cache_draw(struct DRWTextStore *dt, struct ARegion *ar); | ||||
| void DRW_text_edit_mesh_measure_stats(struct ARegion *ar, | |||||
| struct View3D *v3d, | |||||
| struct Object *ob, | |||||
| const struct UnitSettings *unit); | |||||
| enum { | enum { | ||||
| DRW_TEXT_CACHE_ASCII = (1 << 0), | DRW_TEXT_CACHE_ASCII = (1 << 0), | ||||
| DRW_TEXT_CACHE_GLOBALSPACE = (1 << 1), | DRW_TEXT_CACHE_GLOBALSPACE = (1 << 1), | ||||
| DRW_TEXT_CACHE_LOCALCLIP = (1 << 2), | DRW_TEXT_CACHE_LOCALCLIP = (1 << 2), | ||||
| /* reference the string by pointer */ | /* reference the string by pointer */ | ||||
| DRW_TEXT_CACHE_STRING_PTR = (1 << 3), | DRW_TEXT_CACHE_STRING_PTR = (1 << 3), | ||||
| }; | }; | ||||
| /* draw_manager.c */ | /* draw_manager.c */ | ||||
| struct DRWTextStore *DRW_text_cache_ensure(void); | struct DRWTextStore *DRW_text_cache_ensure(void); | ||||
| #endif /* __DRAW_MANAGER_TEXT_H__ */ | #endif /* __DRAW_MANAGER_TEXT_H__ */ | ||||