Listing the "Blender Foundation" as copyright holder implied the Blender Foundation holds copyright to files which may include work from many developers. While keeping copyright on headers makes sense for isolated libraries, Blender's own code may be refactored or moved between files in a way that makes the per file copyright holders less meaningful. Copyright references to the "Blender Foundation" have been replaced with "Blender Authors", with the exception of `./extern/` since these this contains libraries which are more isolated, any changed to license headers there can be handled on a case-by-case basis. Some directories in `./intern/` have also been excluded: - `./intern/cycles/` it's own `AUTHORS` file is planned. - `./intern/opensubdiv/`. An "AUTHORS" file has been added, using the chromium projects authors file as a template. Design task: #110784 Ref !110783.
42 lines
1.1 KiB
C
42 lines
1.1 KiB
C
/* SPDX-FileCopyrightText: 2018 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/** \file
|
|
* \ingroup draw
|
|
*
|
|
* \brief Simple API to draw debug shapes in the viewport.
|
|
* IMPORTANT: This is the legacy API for C. Use draw_debug.hh instead in new C++ code.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct DRWDebugModule DRWDebugModule;
|
|
|
|
struct BoundBox;
|
|
|
|
void DRW_debug_modelmat_reset(void);
|
|
void DRW_debug_modelmat(const float modelmat[4][4]);
|
|
|
|
/**
|
|
* IMPORTANT: For now there is a limit of DRW_DEBUG_DRAW_VERT_MAX that can be drawn
|
|
* using all the draw functions.
|
|
*/
|
|
void DRW_debug_line_v3v3(const float v1[3], const float v2[3], const float color[4]);
|
|
void DRW_debug_polygon_v3(const float (*v)[3], int vert_len, const float color[4]);
|
|
/**
|
|
* \note g_modelmat is still applied on top.
|
|
*/
|
|
void DRW_debug_m4(const float m[4][4]);
|
|
void DRW_debug_m4_as_bbox(const float m[4][4], bool invert, const float color[4]);
|
|
void DRW_debug_bbox(const BoundBox *bbox, const float color[4]);
|
|
void DRW_debug_sphere(const float center[3], float radius, const float color[4]);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|