Blender V5.0
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 DebugDrawget ()
static uint color_pack (float4 color)

Init and state

void reset ()
gpu::StorageBufgpu_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 GPU_context_create().

◆ color_pack()

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

References view.

◆ display_to_view()

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.

◆ draw_line()

◆ get()

◆ gpu_draw_buf_get()

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().

◆ release()

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

Definition at line 120 of file draw_debug.hh.

References lock.

Referenced by GPU_context_discard().

◆ reset()

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().


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