Blender V5.3
blender::draw::DebugDraw Class Reference

#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)

Detailed Description

Definition at line 79 of file draw_debug.hh.

Member Function Documentation

◆ acquire()

void blender::draw::DebugDraw::acquire ( )
inline

Definition at line 111 of file draw_debug.hh.

References lock, and reset().

Referenced by blender::GPU_context_create().

◆ color_pack()

uint blender::draw::DebugDraw::color_pack ( float4 color)
static

◆ display_to_view()

void 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 291 of file draw_debug.cc.

References blender::BLI_assert(), blender::BLI_thread_is_main(), blender::GPU_debug_group_begin(), blender::GPU_debug_group_end(), and blender::GPU_vertex_pipeline_stores_and_atomics_support().

◆ draw_line()

◆ get()

◆ gpu_draw_buf_get()

gpu::StorageBuf * DebugDraw::gpu_draw_buf_get ( )

Get GPU debug draw buffer. Can, return nullptr if WITH_DRAW_DEBUG is not enabled.

Definition at line 59 of file draw_debug.cc.

Referenced by blender::draw::Manager::debug_bind().

◆ release()

void blender::draw::DebugDraw::release ( )
inline

Definition at line 120 of file draw_debug.hh.

References lock.

Referenced by blender::GPU_context_discard().

◆ reset()

void DebugDraw::reset ( )

Definition at line 31 of file draw_debug.cc.

Referenced by acquire(), and blender::draw::drw_debug_clear().


The documentation for this class was generated from the following files: