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.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404285
This commit is contained in:
Sam Lantinga 2009-12-11 09:22:34 +00:00
parent 4672f074e0
commit 1ba0c1618e
6 changed files with 305 additions and 268 deletions

View file

@ -11,7 +11,6 @@
# define _TEST_PLATFORM
const char *platform_getPlatform (void);
int test_platform (void);