2022-02-11 09:07:11 +11:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
* Copyright 2018 Blender Foundation. */
|
2018-05-26 22:08:56 +02:00
|
|
|
|
2019-02-18 08:08:12 +11:00
|
|
|
/** \file
|
|
|
|
|
* \ingroup draw
|
2018-05-26 22:08:56 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
struct BoundBox;
|
|
|
|
|
|
|
|
|
|
void DRW_debug_modelmat_reset(void);
|
|
|
|
|
void DRW_debug_modelmat(const float modelmat[4][4]);
|
|
|
|
|
|
|
|
|
|
void DRW_debug_line_v3v3(const float v1[3], const float v2[3], const float color[4]);
|
2022-01-07 11:38:08 +11:00
|
|
|
void DRW_debug_polygon_v3(const float (*v)[3], int vert_len, const float color[4]);
|
2021-12-08 20:29:39 +11:00
|
|
|
/**
|
|
|
|
|
* \note g_modelmat is still applied on top.
|
|
|
|
|
*/
|
2018-05-26 22:08:56 +02:00
|
|
|
void DRW_debug_m4(const float m[4][4]);
|
2022-01-07 11:38:08 +11:00
|
|
|
void DRW_debug_m4_as_bbox(const float m[4][4], const float color[4], bool invert);
|
2018-05-26 22:08:56 +02:00
|
|
|
void DRW_debug_bbox(const BoundBox *bbox, const float color[4]);
|
2022-01-07 11:38:08 +11:00
|
|
|
void DRW_debug_sphere(const float center[3], float radius, const float color[4]);
|