diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-04-21 19:34:34 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-04-21 19:34:34 +0300 |
commit | 1e9fb355bf7d4b162e924de24bdeadb197416d1b (patch) | |
tree | 76c0676d9e9604d7d4deec4679f5c7edf83de009 /source/blender/blenlib/BLI_bitmap_draw_2d.h | |
parent | 83cb3879442ab29cbfc7a0c56af48bef823aa826 (diff) |
BLI_bitmap: 2D triangle drawing function
Matching polygon filling but no need for allocation or qsort.
Diffstat (limited to 'source/blender/blenlib/BLI_bitmap_draw_2d.h')
-rw-r--r-- | source/blender/blenlib/BLI_bitmap_draw_2d.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_bitmap_draw_2d.h b/source/blender/blenlib/BLI_bitmap_draw_2d.h index fe890e94f1b..e41439e38d2 100644 --- a/source/blender/blenlib/BLI_bitmap_draw_2d.h +++ b/source/blender/blenlib/BLI_bitmap_draw_2d.h @@ -29,6 +29,10 @@ void BLI_bitmap_draw_2d_line_v2v2i( const int p1[2], const int p2[2], bool (*callback)(int, int, void *), void *userData); +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); + void BLI_bitmap_draw_2d_poly_v2i_n( const int xmin, const int ymin, const int xmax, const int ymax, const int polyXY[][2], const int polyCorners, |