mirror of
https://github.com/yawut/SDL.git
synced 2026-03-23 10:24:25 -05:00
Use the Cohen-Sutherland algorithm for line clipping which uses integer math and preserves ordering of clipped points. Removed getopt() support in testsdl.c, replaced with simple argv scanning.
19 lines
202 B
C
19 lines
202 B
C
/**
|
|
* Part of SDL test suite.
|
|
*
|
|
* Written by Edgar Simo "bobbens"
|
|
*
|
|
* Released under Public Domain.
|
|
*/
|
|
|
|
|
|
#ifndef _TEST_RECT
|
|
# define _TEST_RECT
|
|
|
|
|
|
int test_rect (void);
|
|
|
|
|
|
#endif /* _TEST_RECT */
|
|
|