Blender V5.3
draw_manager_text.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2016 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#include "BLI_sys_types.hh"
10
11namespace blender {
12
13#pragma once
14
15struct ARegion;
16struct DRWTextStore;
17struct Object;
18struct UnitSettings;
19struct View3D;
20
23
24/* `draw_manager.cc` */
26
28 const float co[3],
29 const char *str,
30 int str_len,
31 short xoffs,
32 short yoffs,
33 short flag,
34 const uchar col[4],
35 const bool shadow = false,
36 const bool align_center = false);
37
38void DRW_text_cache_draw(DRWTextStore *dt, const ARegion *region, const View3D *v3d);
39
41 const View3D *v3d,
42 const Object *ob,
43 const UnitSettings &unit,
45
46enum {
47 // DRW_UNUSED_1 = (1 << 0), /* dirty */
50 /* reference the string by pointer */
52};
53
54} // namespace blender
#define str(s)
BMesh Iterators.
DRWTextStore * DRW_text_cache_ensure()
@ DRW_TEXT_CACHE_GLOBALSPACE
@ DRW_TEXT_CACHE_STRING_PTR
void DRW_text_cache_destroy(DRWTextStore *dt)
unsigned char uchar
Definition BKE_text.h:58
void DRW_text_cache_add(DRWTextStore *dt, const float co[3], const char *str, const int str_len, short xoffs, short yoffs, short flag, const uchar col[4], const bool shadow, const bool align_center)
void DRW_text_cache_draw(DRWTextStore *dt, const ARegion *region, const View3D *v3d)
void DRW_text_edit_mesh_measure_stats(const ARegion *region, const View3D *v3d, const Object *ob, const UnitSettings &unit, DRWTextStore *dt)
DRWTextStore * DRW_text_cache_create()