Mercurial > hg > dmlib
view src/dmline.c @ 2577:04c035342960
Attribute code in dmperlin.[ch] to be heavily based on Ken Perlin's original C
implementation, which can be found, for example, at
https://cs.nyu.edu/~perlin/doc/oscar.html#noise
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 12 Mar 2022 02:42:16 +0200 |
parents | 1e5cf1144f36 |
children |
line wrap: on
line source
/* * DMLib * -- Arbitrary line drawing functions * Programmed and designed by Matti 'ccr' Hamalainen * (C) Copyright 2011 Tecnic Software productions (TNSP) */ #include "dmlib.h" /* Clip line coordinates. Return value: * = 0 : No clipping needed. * > 0 : Clipped. Line partially inside the clipping area. * < 0 : Line completely outside the clipping area. */ #define DM_CLIP_FUNC dmClipLineCoordsFloat #define DM_COORD_TYPE DMFloat #include "dmlineclip.h" #include "dmlinefunc.h"