Supported Browsers Home   
SetLineStyle Previous   
SetPlaneMask Next   
GA_2DStateFuncs Up   

SetMix

Set the mix code for subsequent rendering operations.

Declaration

N_int32 NAPI GA_2DStateFuncs::SetMix(
    N_int32 mix)

Prototype In

snap/graphics.h

Parameters

mix

New mix code to set (GA_mixCodesType)

 

Return Value

True on success, false if mix is not supported.

Description

This function sets the hardware mix operation for subsequent accelerated rendering primitives. The mix does not change that often, and is usually only set once for a range of rendering primitives, so it is set here via a state function rather than being passed to each rendering functions (unlike the colors which change constantly). The mix modes are defined in the GA_mixCodesType enumeration.

Note:    If the hardware does not support a particular mix this function may return false. It is up to the calling code to detect this and properly fall back on software rendering to handle this particular mix (the 2d reference rasteriser does this automatically).

See Also

SetForeColor, SetBackColor, Set8x8MonoPattern, Set8x8ColorPattern

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com