From 32c96afc3c2c78e15c0e05560b4e08f8cdc2437e Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 5 Feb 2023 01:49:25 +0100 Subject: First commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- ...kensnittsglyfrasteriseringsprogrambiblioteket.h | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket.h (limited to 'librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket.h') diff --git a/librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket.h b/librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket.h new file mode 100644 index 0000000..0fceece --- /dev/null +++ b/librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket.h @@ -0,0 +1,33 @@ +/* See LICENSE file for copyright and license details. */ +#ifndef LIBRIFUNKTIONSTECKENSNITTSGLYFRASTERISERINGSPROGRAMBIBLIOTEKET_H +#define LIBRIFUNKTIONSTECKENSNITTSGLYFRASTERISERINGSPROGRAMBIBLIOTEKET_H + +#include + + +typedef struct rtgrpblib_raster RTGRPBLIB_RASTER; + + +RTGRPBLIB_RASTER *rtgrpblib_create_raster(size_t width, size_t height); +int rtgrpblib_reset_raster(RTGRPBLIB_RASTER *raster, size_t width, size_t height); + +void rtgrpblib_set_draftness(RTGRPBLIB_RASTER *raster, double draftness); + +void rtgrpblib_fill_shapes(double *restrict image, size_t rowsize, const RTGRPBLIB_RASTER *raster); + +void rtgrpblib_draw_linear_bezier(RTGRPBLIB_RASTER *restrict raster, + double x1, double y1, + double x2, double y2); + +void rtgrpblib_draw_quadratic_bezier(RTGRPBLIB_RASTER *restrict raster, + double x1, double y1, + double x2, double y2, + double x3, double y3); + +void rtgrpblib_draw_cubic_bezier(RTGRPBLIB_RASTER *restrict raster, + double x1, double y1, + double x2, double y2, + double x3, double y3, + double x4, double y4); + +#endif -- cgit v1.2.3-70-g09d2