Added source color and alpha modulation support.

Added perl script to generate optimized render copy functions.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402032
This commit is contained in:
Sam Lantinga 2006-08-28 03:17:39 +00:00
parent aebbf8cb6e
commit fdafca64b3
25 changed files with 6938 additions and 288 deletions

View file

@ -23,9 +23,7 @@ my $custom_converters = 0;
sub outputHeader {
print <<EOF;
/* DO NOT EDIT THIS FILE! It is generated code. */
/* Please modify SDL/src/audio/sdlgenaudiocvt.pl instead. */
/* DO NOT EDIT! This file is generated by sdlgenaudiocvt.pl */
/*
SDL - Simple DirectMedia Layer
Copyright (C) 1997-2006 Sam Lantinga
@ -52,7 +50,7 @@ sub outputHeader {
#include "SDL_audio.h"
#include "SDL_audio_c.h"
/* Now the generated code... */
/* *INDENT-OFF* */
EOF
@ -66,6 +64,13 @@ EOF
print("\n");
}
sub outputFooter {
print <<EOF;
/* *INDENT-ON* */
/* vi: set ts=4 sw=4 expandtab: */
EOF
}
sub splittype {
my $t = shift;
@ -307,7 +312,9 @@ print <<EOF;
EOF
outputFooter();
exit 0;
# end of sdlaudiocvt.pl ...
# end of sdlgenaudiocvt.pl ...