aboutsummaryrefslogblamecommitdiffstats
path: root/librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket.h
blob: 0fceece86fbc5f42be436c9bbbf59c6fe6cc5a2c (plain) (tree)
































                                                                                                   
/* See LICENSE file for copyright and license details. */
#ifndef LIBRIFUNKTIONSTECKENSNITTSGLYFRASTERISERINGSPROGRAMBIBLIOTEKET_H
#define LIBRIFUNKTIONSTECKENSNITTSGLYFRASTERISERINGSPROGRAMBIBLIOTEKET_H

#include <stddef.h>


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