Bink SDK 1.5v

# BinkDX8SurfaceType

The function BinkDX8SurfaceType returns a value describing the format of the specified DirectX 8 surface.

    BINK_COPY_FLAGS BinkDX8SurfaceType(
      LPDIRECT3DSURFACE8 lpDirect3DSurface
    );

#### In Parameters

lpDirect3DSurface
  Specifies the surface that you want to query.

#### Returns

Returns a value describing the format of the surface.

#### Discussion

This function returns a value describing the supplied DirectX 8 surface. You can use this function to obtain the surface type to pass to the BinkCopyToBuffer function. If the surface type is unknown or unsupported, then this function returns -1. For earlier versions of DirectX, use the BinkDDSurfaceType function. On MacOS, use the BinkGDSurfaceType function.

Group: BinkBuffer API
Related Functions: BinkCopyToBuffer, BinkDDSurfaceType, BinkGDSurfaceType
Related Basic Types: BINK_COPY_FLAGS, LPDIRECT3DSURFACE8

For technical support, e-mail Bink1@radgametools.com
© Copyright 1994-2003 RAD Game Tools, Inc. All Rights Reserved.