Blender V5.3
draw_debug_draw.bsl.hh File Reference

Go to the source code of this file.

Classes

struct  DebugDraw

Functions

Internals
uint drw_debug_start_draw (uint v_needed)
void drw_debug_line (uint &vertid, float3 v1, float3 v2, uint v_color, uint lifetime)
API
void drw_debug_line (float3 v1, float3 v2, float4 v_color, uint lifetime)
void drw_debug_line (float3 v1, float3 v2, float4 v_color)
void drw_debug_line (float3 v1, float3 v2)
void drw_debug_quad (float3 v1, float3 v2, float3 v3, float3 v4, float4 v_color, uint lifetime)
void drw_debug_quad (float3 v1, float3 v2, float3 v3, float3 v4, float4 v_color)
void drw_debug_quad (float3 v1, float3 v2, float3 v3, float3 v4)
void drw_debug_point (float3 p, float radius, float4 v_color, uint lifetime)
void drw_debug_point (float3 p, float radius, float4 v_color)
void drw_debug_point (float3 p, float radius)
void drw_debug_point (float3 p)
void drw_debug_sphere (float3 p, float radius, float4 v_color, uint lifetime)
void drw_debug_sphere (float3 p, float radius, float4 v_color)
void drw_debug_sphere (float3 p, float radius)
void drw_debug_matrix (float4x4 mat, uint lifetime)
void drw_debug_matrix (float4x4 mat)
void drw_debug_matrix_as_bbox (float4x4 mat, float4 v_color, uint lifetime)
void drw_debug_matrix_as_bbox (float4x4 mat, float4 v_color)
void drw_debug_matrix_as_bbox (float4x4 mat)

Variables

bool drw_debug_draw_enable = true
static constexpr float4 drw_debug_default_color = float4(1.0f, 0.0f, 0.0f, 1.0f)
static constexpr uint drw_debug_default_lifetime = 1u
static constexpr uint drw_debug_persistent_lifetime = (~0u)

Function Documentation

◆ drw_debug_line() [1/4]

void drw_debug_line ( float3 v1,
float3 v2 )

Definition at line 82 of file draw_debug_draw.bsl.hh.

References drw_debug_default_color, and drw_debug_line().

◆ drw_debug_line() [2/4]

void drw_debug_line ( float3 v1,
float3 v2,
float4 v_color )

Definition at line 78 of file draw_debug_draw.bsl.hh.

References drw_debug_default_lifetime, and drw_debug_line().

◆ drw_debug_line() [3/4]

void drw_debug_line ( float3 v1,
float3 v2,
float4 v_color,
uint lifetime )

◆ drw_debug_line() [4/4]

◆ drw_debug_matrix() [1/2]

void drw_debug_matrix ( float4x4 mat)

Definition at line 212 of file draw_debug_draw.bsl.hh.

References drw_debug_default_lifetime, and drw_debug_matrix().

◆ drw_debug_matrix() [2/2]

void drw_debug_matrix ( float4x4 mat,
uint lifetime )

Draw a matrix transformation as 3 colored axes.

Definition at line 201 of file draw_debug_draw.bsl.hh.

References drw_debug_line(), drw_debug_matrix(), and float4::w.

Referenced by drw_debug_matrix(), and drw_debug_matrix().

◆ drw_debug_matrix_as_bbox() [1/3]

void drw_debug_matrix_as_bbox ( float4x4 mat)

Definition at line 245 of file draw_debug_draw.bsl.hh.

References drw_debug_default_color, and drw_debug_matrix_as_bbox().

◆ drw_debug_matrix_as_bbox() [2/3]

void drw_debug_matrix_as_bbox ( float4x4 mat,
float4 v_color )

◆ drw_debug_matrix_as_bbox() [3/3]

void drw_debug_matrix_as_bbox ( float4x4 mat,
float4 v_color,
uint lifetime )

Draw a matrix as a 2 units length bounding box, centered on origin.

Definition at line 220 of file draw_debug_draw.bsl.hh.

References drw_debug_line(), drw_debug_matrix_as_bbox(), drw_debug_quad(), and float4::w.

Referenced by drw_debug_matrix_as_bbox(), drw_debug_matrix_as_bbox(), and drw_debug_matrix_as_bbox().

◆ drw_debug_point() [1/4]

void drw_debug_point ( float3 p)

Definition at line 156 of file draw_debug_draw.bsl.hh.

References drw_debug_point().

◆ drw_debug_point() [2/4]

void drw_debug_point ( float3 p,
float radius )

Definition at line 152 of file draw_debug_draw.bsl.hh.

References drw_debug_default_color, and drw_debug_point().

◆ drw_debug_point() [3/4]

void drw_debug_point ( float3 p,
float radius,
float4 v_color )

Definition at line 148 of file draw_debug_draw.bsl.hh.

References drw_debug_default_lifetime, and drw_debug_point().

◆ drw_debug_point() [4/4]

void drw_debug_point ( float3 p,
float radius,
float4 v_color,
uint lifetime )

◆ drw_debug_quad() [1/3]

void drw_debug_quad ( float3 v1,
float3 v2,
float3 v3,
float3 v4 )

Definition at line 109 of file draw_debug_draw.bsl.hh.

References drw_debug_default_color, and drw_debug_quad().

◆ drw_debug_quad() [2/3]

void drw_debug_quad ( float3 v1,
float3 v2,
float3 v3,
float3 v4,
float4 v_color )

Definition at line 105 of file draw_debug_draw.bsl.hh.

References drw_debug_default_lifetime, and drw_debug_quad().

◆ drw_debug_quad() [3/3]

void drw_debug_quad ( float3 v1,
float3 v2,
float3 v3,
float3 v4,
float4 v_color,
uint lifetime )

◆ drw_debug_sphere() [1/3]

void drw_debug_sphere ( float3 p,
float radius )

Definition at line 193 of file draw_debug_draw.bsl.hh.

References drw_debug_default_color, and drw_debug_sphere().

◆ drw_debug_sphere() [2/3]

void drw_debug_sphere ( float3 p,
float radius,
float4 v_color )

Definition at line 189 of file draw_debug_draw.bsl.hh.

References drw_debug_default_lifetime, and drw_debug_sphere().

◆ drw_debug_sphere() [3/3]

void drw_debug_sphere ( float3 p,
float radius,
float4 v_color,
uint lifetime )

◆ drw_debug_start_draw()

Variable Documentation

◆ drw_debug_default_color

float4 drw_debug_default_color = float4(1.0f, 0.0f, 0.0f, 1.0f)
staticconstexpr

◆ drw_debug_default_lifetime

uint drw_debug_default_lifetime = 1u
staticconstexpr

◆ drw_debug_draw_enable

bool drw_debug_draw_enable = true

Debugging drawing library

Quick way to draw debug geometry. All input should be in world space and will be rendered in the default view. No additional setup required. Global switch option.

Definition at line 25 of file draw_debug_draw.bsl.hh.

Referenced by drw_debug_line(), drw_debug_point(), drw_debug_quad(), and drw_debug_sphere().

◆ drw_debug_persistent_lifetime

uint drw_debug_persistent_lifetime = (~0u)
staticconstexpr

Definition at line 28 of file draw_debug_draw.bsl.hh.