|
Blender V5.0
|
#include <draw_debug.hh>
Public Member Functions | |
| void | acquire () |
| void | release () |
Internals | |
| void | draw_line (float3 v1, float3 v2, uint color, uint lifetime=1) |
Static Public Member Functions | |
| static DebugDraw & | get () |
| static uint | color_pack (float4 color) |
Init and state | |
| void | reset () |
| gpu::StorageBuf * | gpu_draw_buf_get () |
Display | |
| void | display_to_view (View &view) |
Definition at line 79 of file draw_debug.hh.
|
inline |
Definition at line 111 of file draw_debug.hh.
Referenced by GPU_context_create().
| void blender::draw::DebugDraw::display_to_view | ( | View & | view | ) |
Draw all debug shapes to the given current view / frame-buffer. Draw buffers will be emptied and ready for new debug data.
Definition at line 282 of file draw_debug.cc.
References BLI_assert, BLI_thread_is_main(), GPU_debug_group_begin(), GPU_debug_group_end(), and view.
Definition at line 200 of file draw_debug.cc.
References DRWDebugDrawBuffer::command, debug_line_make(), DRW_DEBUG_DRAW_VERT_MAX, float_as_uint(), v2, DrawCommand::vertex_len, and DRWDebugDrawBuffer::verts.
Referenced by blender::draw::drw_debug_bbox(), blender::draw::drw_debug_line(), blender::draw::drw_debug_matrix(), blender::draw::drw_debug_point(), blender::draw::drw_debug_polygon(), and blender::draw::drw_debug_sphere().
|
inlinestatic |
Definition at line 129 of file draw_debug.hh.
References module.
Referenced by blender::draw::Manager::debug_bind(), blender::draw::drw_debug_bbox(), blender::draw::drw_debug_clear(), blender::draw::drw_debug_line(), blender::draw::drw_debug_matrix(), blender::draw::drw_debug_point(), blender::draw::drw_debug_polygon(), blender::draw::drw_debug_sphere(), GPU_context_create(), and GPU_context_discard().
| gpu::StorageBuf * blender::draw::DebugDraw::gpu_draw_buf_get | ( | ) |
Get GPU debug draw buffer. Can, return nullptr if WITH_DRAW_DEBUG is not enabled.
Definition at line 57 of file draw_debug.cc.
Referenced by blender::draw::Manager::debug_bind().
|
inline |
| void blender::draw::DebugDraw::reset | ( | ) |
Definition at line 29 of file draw_debug.cc.
References i.
Referenced by acquire(), and blender::draw::drw_debug_clear().