Mercurial > sdl-ios-xcode
comparison test/automated/rect/rect.h @ 3541:0c429a5fda8a
Added an automated test for rectangle routines, currently only testing line clipping.
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.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 11 Dec 2009 09:22:34 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
3540:3ad09fdbfcb0 | 3541:0c429a5fda8a |
---|---|
1 /** | |
2 * Part of SDL test suite. | |
3 * | |
4 * Written by Edgar Simo "bobbens" | |
5 * | |
6 * Released under Public Domain. | |
7 */ | |
8 | |
9 | |
10 #ifndef _TEST_RECT | |
11 # define _TEST_RECT | |
12 | |
13 | |
14 int test_rect (void); | |
15 | |
16 | |
17 #endif /* _TEST_RECT */ | |
18 |