Blender V4.3
BLI_bitmap_draw_2d.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
12#include "BLI_span.hh"
13
19void BLI_bitmap_draw_2d_line_v2v2i(const int p1[2],
20 const int p2[2],
21 bool (*callback)(int, int, void *),
22 void *user_data);
23
27void BLI_bitmap_draw_2d_tri_v2i(const int p1[2],
28 const int p2[2],
29 const int p3[2],
30 void (*callback)(int x, int x_end, int y, void *),
31 void *user_data);
32
46 int ymin,
47 int xmax,
48 int ymax,
50 void (*callback)(int x, int x_end, int y, void *),
51 void *user_data);
void BLI_bitmap_draw_2d_poly_v2i_n(int xmin, int ymin, int xmax, int ymax, blender::Span< blender::int2 > verts, void(*callback)(int x, int x_end, int y, void *), void *user_data)
void BLI_bitmap_draw_2d_line_v2v2i(const int p1[2], const int p2[2], bool(*callback)(int, int, void *), void *user_data)
void BLI_bitmap_draw_2d_tri_v2i(const int p1[2], const int p2[2], const int p3[2], void(*callback)(int x, int x_end, int y, void *), void *user_data)
DEGForeachIDComponentCallback callback
static float verts[][3]