Blender V4.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
9#include "BLI_sys_types.h"
10
11#pragma once
12
13struct ARegion;
14struct DRWTextStore;
15struct Object;
16struct UnitSettings;
17struct View3D;
18
21
22/* `draw_manager.cc` */
24
26 const float co[3],
27 const char *str,
28 int str_len,
29 short xoffs,
30 short yoffs,
31 short flag,
32 const uchar col[4],
33 const bool shadow = false,
34 const bool align_center = false);
35
36void DRW_text_cache_draw(DRWTextStore *dt, ARegion *region, View3D *v3d);
37
39 const View3D *v3d,
40 const Object *ob,
41 const UnitSettings *unit,
43
44enum {
45 // DRW_UNUSED_1 = (1 << 0), /* dirty */
48 /* reference the string by pointer */
50};
unsigned char uchar
void DRW_text_edit_mesh_measure_stats(const ARegion *region, const View3D *v3d, const Object *ob, const UnitSettings *unit, DRWTextStore *dt=DRW_text_cache_ensure())
DRWTextStore * DRW_text_cache_ensure()
DRWTextStore * DRW_text_cache_create()
void DRW_text_cache_draw(DRWTextStore *dt, ARegion *region, View3D *v3d)
void DRW_text_cache_destroy(DRWTextStore *dt)
@ DRW_TEXT_CACHE_LOCALCLIP
@ DRW_TEXT_CACHE_GLOBALSPACE
@ DRW_TEXT_CACHE_STRING_PTR
void DRW_text_cache_add(DRWTextStore *dt, const float co[3], const char *str, int str_len, short xoffs, short yoffs, short flag, const uchar col[4], const bool shadow=false, const bool align_center=false)
#define str(s)
uint col
uint8_t flag
Definition wm_window.cc:138