Blender V4.3
draw_debug_c.hh File Reference

Simple API to draw debug shapes in the viewport. IMPORTANT: This is the legacy API for C. Use draw_debug.hh instead in new C++ code. More...

Go to the source code of this file.

Functions

void DRW_debug_modelmat_reset ()
 
void DRW_debug_modelmat (const float modelmat[4][4])
 
void DRW_debug_line_v3v3 (const float v1[3], const float v2[3], const float color[4])
 
void DRW_debug_polygon_v3 (const float(*v)[3], int vert_len, const float color[4])
 
void DRW_debug_m4 (const float m[4][4])
 
void DRW_debug_m4_as_bbox (const float m[4][4], bool invert, const float color[4])
 
void DRW_debug_bbox (const BoundBox *bbox, const float color[4])
 
void DRW_debug_sphere (const float center[3], float radius, const float color[4])
 

Detailed Description

Simple API to draw debug shapes in the viewport. IMPORTANT: This is the legacy API for C. Use draw_debug.hh instead in new C++ code.

Definition in file draw_debug_c.hh.

Function Documentation

◆ DRW_debug_bbox()

void DRW_debug_bbox ( const BoundBox * bbox,
const float color[4] )

Definition at line 700 of file draw_debug.cc.

References DRWManager::debug, DST, and UNUSED_VARS.

Referenced by DRW_sculpt_debug_cb(), and DRW_view_update().

◆ DRW_debug_line_v3v3()

void DRW_debug_line_v3v3 ( const float v1[3],
const float v2[3],
const float color[4] )

IMPORTANT: For now there is a limit of DRW_DEBUG_DRAW_VERT_MAX that can be drawn using all the draw functions.

Definition at line 675 of file draw_debug.cc.

References DRWManager::debug, DST, and v2.

◆ DRW_debug_m4()

void DRW_debug_m4 ( const float m[4][4])
Note
g_modelmat is still applied on top.

Definition at line 686 of file draw_debug.cc.

References DRWManager::debug, and DST.

◆ DRW_debug_m4_as_bbox()

void DRW_debug_m4_as_bbox ( const float m[4][4],
bool invert,
const float color[4] )

Definition at line 691 of file draw_debug.cc.

References DRWManager::debug, DST, blender::math::invert(), and invert().

◆ DRW_debug_modelmat()

void DRW_debug_modelmat ( const float modelmat[4][4])

Definition at line 666 of file draw_debug.cc.

References DRWManager::debug, DST, and UNUSED_VARS.

Referenced by basic_cache_populate(), and drw_sculpt_generate_calls().

◆ DRW_debug_modelmat_reset()

void DRW_debug_modelmat_reset ( )

Definition at line 661 of file draw_debug.cc.

References DRWManager::debug, and DST.

◆ DRW_debug_polygon_v3()

void DRW_debug_polygon_v3 ( const float(*) v[3],
int vert_len,
const float color[4] )

Definition at line 680 of file draw_debug.cc.

References DRWManager::debug, DST, and v.

◆ DRW_debug_sphere()

void DRW_debug_sphere ( const float center[3],
float radius,
const float color[4] )

Definition at line 709 of file draw_debug.cc.

References DRWManager::debug, and DST.

Referenced by draw_compute_culling(), and DRW_view_update().