SetBlendFunc

Set the source and destination blending functions for subsequent drawing operations.

Declaration

void NAPI GA_2DStateFuncs::SetBlendFunc(
N_int32 srcBlendFunc,
N_int32 dstBlendFunc)

Prototype In

snap/graphics.h

Parameters

srcBlendFunc | New source blending function (GA_blendFuncType)
dstBlendFunc | New destination blending function (GA_blendFuncType)

Description

This function sets the source and destination blending function for subseqeunt drawing operations. The supported source and destination blending operations are defined in the GA_blendFuncType enumeration, and the final result is a combination of the source and destination blending functions. Blending is disabled by calling this function with srcBlendFunc or dstBlendFunc set to gaBlendNone. Before any blending will take effect, both the source and the destination blending functions must be enabled.

Note: Not all hardware supports this function, and if the hardware does not support it this function will be NULL.

See Also

SetAlphaValue

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