27#define drw_debug_line(...) DRW_debug_get()->draw_line(__VA_ARGS__)
28#define drw_debug_polygon(...) DRW_debug_get()->draw_polygon(__VA_ARGS__)
29#define drw_debug_bbox(...) DRW_debug_get()->draw_bbox(__VA_ARGS__)
30#define drw_debug_sphere(...) DRW_debug_get()->draw_sphere(__VA_ARGS__)
31#define drw_debug_point(...) DRW_debug_get()->draw_point(__VA_ARGS__)
32#define drw_debug_matrix(...) DRW_debug_get()->draw_matrix(__VA_ARGS__)
33#define drw_debug_matrix_as_bbox(...) DRW_debug_get()->draw_matrix_as_bbox(__VA_ARGS__)
34#define drw_print(...) DRW_debug_get()->print(__VA_ARGS__)
35#define drw_print_hex(...) DRW_debug_get()->print_hex(__VA_ARGS__)
36#define drw_print_binary(...) DRW_debug_get()->print_binary(__VA_ARGS__)
37#define drw_print_no_endl(...) DRW_debug_get()->print_no_endl(__VA_ARGS__)
40#define drw_print_id(v_) DRW_debug_get()->print(#v_, "= ", v_)
41#define drw_print_id_no_endl(v_) DRW_debug_get()->print_no_endl(#v_, "= ", v_)
54 bool gpu_print_buf_used =
false;
55 bool gpu_draw_buf_used =
false;
117 template<
typename T>
void print(
const T &value)
124 print_value_hex(value);
129 print_value_binary(value);
174 void print_newline();
175 void print_string_start(
uint len);
176 void print_string(std::string
str);
177 void print_char4(
uint data);
181 void print_value_binary(
uint value);
182 void print_value_uint(
uint value,
const bool hex,
bool is_negative,
const bool is_unsigned);
184 template<
typename T>
void print_value(
const T &value);
185 template<
typename T>
void print_value_hex(
const T &value);
186 template<
typename T>
void print_value_binary(
const T &value);
188 void display_lines();
189 void display_prints();
Object is a sort of wrapper for general info.
ATTR_WARN_UNUSED_RESULT const BMVert * v2
void print_no_endl(T arg, Ts... args)
void modelmat_set(const float modelmat[4][4])
void print_no_endl(std::string arg)
void draw_matrix(const float4x4 &m4)
void print_hex(const T &value)
void print(const T &value)
void draw_polygon(Span< float3 > face_verts, float4 color={1, 0, 0, 1})
void print_binary(const T &value)
void print(StringRefNull str, Ts... args)
void draw_matrix_as_bbox(const float4x4 &mat, const float4 color={1, 0, 0, 1})
void print_no_endl(StringRef arg)
void draw_sphere(const float3 center, float radius, const float4 color={1, 0, 0, 1})
void draw_bbox(const BoundBox &bbox, const float4 color={1, 0, 0, 1})
void print_no_endl(char const *arg)
GPUStorageBuf * gpu_print_buf_get()
void print_no_endl(T arg)
GPUStorageBuf * gpu_draw_buf_get()
void draw_line(float3 v1, float3 v2, float4 color={1, 0, 0, 1})
void print_no_endl(StringRefNull arg)
void draw_point(const float3 center, float radius=0.01f, const float4 color={1, 0, 0, 1})
blender::draw::DebugDraw * DRW_debug_get()
bool is_negative(const MatBase< T, Size, Size > &mat)
MatBase< float, 4, 4 > float4x4
VecBase< float, 4 > float4
static const char hex[17]