| Home
| Previous
| Next
| Up

BitBltFxTest

Tests if a set of BitBltFx features are supported.

Declaration

N_int32 NAPI GA_2DRenderFuncs::BitBltFxTest(
GA_bltFx *fx)

Prototype In

snap/graphics.h

Parameters

fx | GA_bltFx structure to check support for

Return Value

1 if the features are supported, 0 if not.

Description

This function allows an application to fill in an GA_bltFx structure with the desired capabilies and to query the driver to determine if those capabilities are available. The driver reports the supported BitBltFx capabilities via the flags and values returned in the BitBltCaps field of the GA_modeInfo structure. However some of the features reported as being available may be mutually exclusive of each other, for instance the hardware may support stretching and source transparency, but not at the same time. This function allows an application program to determine this at runtime, by requesting both stretching and transparency (for instance afBltStretchNearest | afBltColorKeySrcSingle) in the GA_bltFx structure and calling this function to determine if the hardware supports these features together. If the hardware can perform a BitBltFx function with the specified GA_bltFx featues, this function will return a value of 1. If not it will return a value of 0.

See Also

BitBltFx, BitBltFxLin, BitBltFxSys, BitBltFxBM

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