Blender V5.0
draw_view_c.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2016 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
10
11#include "DNA_screen_types.h"
12
13#include "ED_screen.hh"
14#include "ED_view3d.hh"
15
16#include "GPU_debug.hh"
17#include "GPU_state.hh"
18
19#include "UI_view2d.hh"
20
21#include "WM_types.hh"
22
23#include "BKE_paint.hh"
24#include "BKE_screen.hh"
25
26#include "DRW_engine.hh"
27#include "DRW_render.hh"
28
29#include "draw_view_c.hh"
30
31#include "view3d_intern.hh"
32
33/* ******************** region info ***************** */
34
36{
37 GPU_debug_group_begin("RegionInfo");
40}
41
42/* **************************** 3D Gizmo ******************************** */
43
44void DRW_draw_gizmo_3d(const bContext *C, ARegion *region)
45{
46 /* draw depth culled gizmos - gizmos need to be updated *after* view matrix was set up */
47 /* TODO: depth culling gizmos is not yet supported, just drawing _3D here, should
48 * later become _IN_SCENE (and draw _3D separate) */
50}
51
52void DRW_draw_gizmo_2d(const bContext *C, ARegion *region)
53{
55 GPU_depth_mask(true);
56}
void GPU_debug_group_end()
Definition gpu_debug.cc:33
void GPU_debug_group_begin(const char *name)
Definition gpu_debug.cc:22
void GPU_depth_mask(bool depth)
Definition gpu_state.cc:110
#define C
Definition RandGen.cpp:29
@ WM_GIZMOMAP_DRAWSTEP_3D
@ WM_GIZMOMAP_DRAWSTEP_2D
void DRW_draw_region_info(const bContext *C, ARegion *region)
void DRW_draw_gizmo_3d(const bContext *C, ARegion *region)
void DRW_draw_gizmo_2d(const bContext *C, ARegion *region)
ARegionRuntimeHandle * runtime
void view3d_draw_region_info(const bContext *C, ARegion *region)
void WM_gizmomap_draw(wmGizmoMap *gzmap, const bContext *C, const eWM_GizmoFlagMapDrawStep drawstep)