The Socrates Gameboy Advance Development Engine
The SGADE is a development library for the Nintendo Gameboy
Advance. It's free for all uses and is distributed without guarantees.
For more information visit
the SGADE page.
00001 // ---------------------------------------------------------------------------- 00013 // ---------------------------------------------------------------------------- 00014 00015 #ifndef SO_EFFECTS_H 00016 #define SO_EFFECTS_H 00017 00018 #ifdef __cplusplus 00019 extern "C" { 00020 #endif 00021 00022 00023 // ---------------------------------------------------------------------------- //! @{ 00070 // ---------------------------------------------------------------------------- 00071 00072 // ---------------------------------------------------------------------------- 00073 // Includes 00074 // ---------------------------------------------------------------------------- 00075 00076 #include "SoSystem.h" 00077 00078 // -------------------------------------------------------------------------- 00079 // Defines 00080 // -------------------------------------------------------------------------- 00081 00082 #define SO_EFFECTS_MODE_NONE 0 00083 #define SO_EFFECTS_MODE_BLEND (SO_BIT_6) 00084 #define SO_EFFECTS_MODE_FADE_IN (SO_BIT_7) 00085 #define SO_EFFECTS_MODE_FADE_OUT (SO_BIT_6 | SO_BIT_7) 00086 00087 #define SO_EFFECTS_TARGET1_BG0 (SO_BIT_0) 00088 #define SO_EFFECTS_TARGET1_BG1 (SO_BIT_1) 00089 #define SO_EFFECTS_TARGET1_BG2 (SO_BIT_2) 00090 #define SO_EFFECTS_TARGET1_BG3 (SO_BIT_3) 00091 #define SO_EFFECTS_TARGET1_OBJ (SO_BIT_4) 00092 #define SO_EFFECTS_TARGET1_BD (SO_BIT_5) 00093 00094 00095 #define SO_EFFECTS_TARGET1_ALL (SO_6_BITS) 00096 00097 #define SO_EFFECTS_TARGET2_BG0 (SO_BIT_8) 00098 #define SO_EFFECTS_TARGET2_BG1 (SO_BIT_9) 00099 #define SO_EFFECTS_TARGET2_BG2 (SO_BIT_10) 00100 #define SO_EFFECTS_TARGET2_BG3 (SO_BIT_11) 00101 #define SO_EFFECTS_TARGET2_OBJ (SO_BIT_12) 00102 #define SO_EFFECTS_TARGET2_BD (SO_BIT_13) 00103 00104 00105 #define SO_EFFECTS_TARGET2_ALL (SO_BIT_8 | SO_BIT_9 | SO_BIT_10 | SO_BIT_11 | SO_BIT_12 | SO_BIT_13) 00106 00107 // -------------------------------------------------------------------------- 00108 // Public methods; 00109 // -------------------------------------------------------------------------- 00110 00111 void SoEffectsSetMode( u16 a_Mode, u16 a_Target1, u16 a_Target2 ); 00112 void SoEffectsSetBlend( u16 a_CoeffEVA, u16 a_CoeffEVB ); 00113 void SoEffectsSetFade( u16 a_CoeffEVY ); 00114 00115 // ---------------------------------------------------------------------------- 00116 // EOF; 00117 // ---------------------------------------------------------------------------- 00118 00120 00121 #ifdef __cplusplus 00122 } // extern "C" 00123 #endif 00124 00125 #endif