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_)
49 DebugDrawBuf cpu_draw_buf_ = {
"DebugDrawBuf-CPU"};
50 DebugDrawBuf gpu_draw_buf_ = {
"DebugDrawBuf-GPU"};
51 DebugPrintBuf cpu_print_buf_ = {
"DebugPrintBuf-CPU"};
52 DebugPrintBuf gpu_print_buf_ = {
"DebugPrintBuf-GPU"};
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);
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.
Group Output data from inside of a node group A color picker Mix two input colors RGB to Convert a color s luminance to a grayscale value Generate a normal vector and a dot product Brightness Control the brightness and contrast of the input color Vector Map input vector components with curves Camera Retrieve information about the camera and how it relates to the current shading point s position Clamp a value between a minimum and a maximum Vector Perform vector math operation Invert Invert a color
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
blender::VecBase< int8_t, 4 > char4
VecBase< float, 3 > float3
static const char hex[17]