示例#1
0
文件: faders.cpp 项目: Fyre91/scummvm
/**
 * Fades a list of palettes from black to their current colors.
 */
void FadeInFast() {
	// Fade multiplier table
	static const long fadein[] = {0, 0x1000, 0x4000, 0x7000, 0xa000, 0xd000, 0x10000L, -1};

	// call generic fader
	Fader(fadein);
}
示例#2
0
文件: faders.cpp 项目: Fyre91/scummvm
/**
 * Fades a list of palettes down to black.
 */
void FadeOutFast() {
	// Fixed point fade multiplier table
	static const long fadeout[] = {0xd000, 0xa000, 0x7000, 0x4000, 0x1000, 0, -1};

	// call generic fader
	Fader(fadeout);
}
示例#3
0
/**
 * Fades a list of palettes from black to their current colors.
 * @param noFadeTable		A NULL terminated list of palettes not to fade.
 */
void FadeInFast(SCNHANDLE noFadeTable[]) {
	// Fade multiplier table
	static const long fadein[] = {0, 0x1000, 0x4000, 0x7000, 0xa000, 0xd000, 0x10000L, -1};

	// call generic fader
	Fader(fadein, noFadeTable);
}
示例#4
0
文件: faders.cpp 项目: Fyre91/scummvm
/**
 * Fades a list of palettes from black to their current colors.
 */
void FadeInMedium() {
	// Fade multiplier table
	static const long fadein[] = {0, 0x1a00, 0x3400, 0x4e00, 0x6800,
		0x8200, 0x9c00, 0xb600, 0xd000, 0xea00, 0x10000L, -1};

	// call generic fader
	Fader(fadein);
}
示例#5
0
文件: faders.cpp 项目: Fyre91/scummvm
/**
 * Fades a list of palettes down to black.
 */
void FadeOutMedium() {
	// Fixed point fade multiplier table
	static const long fadeout[] = {0xea00, 0xd000, 0xb600, 0x9c00,
		0x8200, 0x6800, 0x4e00, 0x3400, 0x1a00, 0, -1};

	// call generic fader
	Fader(fadeout);
}