MGL_getHardwareFlags

Returns the current hardware acceleration flags for the display device context.

Declaration

long MGLAPI MGL_getHardwareFlags(
MGLDC *dc)

Prototype In

mgraph.h

Parameters

dc | Device context of interest

Return Value

Current hardware acceleration flags for the device context.

Description

This function returns the current hardware acceleration flags for the display device context (this function returns 0 for non-display device contexts). The set of hardware acceleration flags inform the application of what specific hardware acceleration features the underlying video hardware has, so that the application can tailor it's use of specific MGL functions. For instance an application may check if the hardware has transparent BitBlt capabilities for sprite animation, and if not will uses it's own application specific set of routines that rasterize directly to the display surface rather than using the MGL specific functions.

The set of hardware acceleration flags that are returned will be a logical combination of one or more of the values enumerated in MGL_hardwareFlagsType.

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