Mercurial > sdl-ios-xcode
diff test/testintersections.c @ 5143:e743b9c3f6d6
Making the API simpler, the blend modes are "none, blend, add" and are supported by all renderers.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 31 Jan 2011 23:23:57 -0800 |
parents | 3e69e077cb95 |
children | ad50b3db78bd |
line wrap: on
line diff
--- a/test/testintersections.c Mon Jan 31 22:53:45 2011 -0800 +++ b/test/testintersections.c Mon Jan 31 23:23:57 2011 -0800 @@ -231,18 +231,12 @@ if (SDL_strcasecmp(argv[i + 1], "none") == 0) { blendMode = SDL_BLENDMODE_NONE; consumed = 2; - } else if (SDL_strcasecmp(argv[i + 1], "mask") == 0) { - blendMode = SDL_BLENDMODE_MASK; - consumed = 2; } else if (SDL_strcasecmp(argv[i + 1], "blend") == 0) { blendMode = SDL_BLENDMODE_BLEND; consumed = 2; } else if (SDL_strcasecmp(argv[i + 1], "add") == 0) { blendMode = SDL_BLENDMODE_ADD; consumed = 2; - } else if (SDL_strcasecmp(argv[i + 1], "mod") == 0) { - blendMode = SDL_BLENDMODE_MOD; - consumed = 2; } } } else if (SDL_strcasecmp(argv[i], "--cyclecolor") == 0) { @@ -258,7 +252,7 @@ } if (consumed < 0) { fprintf(stderr, - "Usage: %s %s [--blend none|mask|blend|add|mod] [--cyclecolor] [--cyclealpha]\n", + "Usage: %s %s [--blend none|blend|add] [--cyclecolor] [--cyclealpha]\n", argv[0], CommonUsage(state)); return 1; }