MultiMode

const RenderMode &mode1, const RenderMode &mode2 );

Combines two RenderModes to a single entity.

You can use the sum operator to easily create a MultiMode from two RenderModes. See the examples for how to do this.

Examples

Bitmap bmp( ... );

// Render the Bitmap horizontally flipped and tinted 30% to red //
bmp.Blit200.0100.0MultiModeFlipped( HORIZONTAL ), TintedRgba1.01.01.00.30 ))));

// The same thing can be done simply by using the sum operator //
// especially when there's more than two blending modes you wish to combine //
bmp.Blit200.0100.0Flipped( HORIZONTAL ) + TintedRgba1.01.01.00.30 )));


Parent Class


Questions about MultiMode? Click here.