Function
Sets values in MrnBlenderMode
#include <mrn/BlenderMode.h>
void mrnBlenderModeSet( MrnBlenderMode *mode_ptr,
const u8 cycle_type,
const u8 p1, const u8 m1, const u8 a1, const u8 b1,
const u8 p2, const u8 m2, const u8 a2, const u8 b2,
const u16 render_mode_flags );
Sets values in MrnBlenderMode.
p1, m1, a1, and b1 are for the 1st cycle.
p2, m2, a2, and b2 are for the 2nd cycle.
Select the various arguments from the following macros.
cycle_type: MRN_BLENDER_MODE_CYCLE_TYPE_*
p1,p2: MRN_BLENDER_MODE_P_*
m1,m2: MRN_BLENDER_MODE_M_*
a1,a2: MRN_BLENDER_MODE_A_*
b1,b2: MRN_BLENDER_MODE_B_*
render_mode_flags is set by the logical sum of MRN_BLENDER_MODE_*.
#include <mrn/BlenderMode.h>
typedef struct _MrnBlenderMode
{
u8 cycle_type;
u32 blender_code;
MvmColor4c blend_color;
u32 alpha_compare_mode;
Gfx render_mode_gfx[ 5 ];
/* blender_code must get reflected. */
} MrnBlenderMode;