Blt
Expandir Minimizar

SetViewport routine

The SetViewport function informs guard-band-aware drivers of the view-clipping rectangle.

Syntax


PFND3DDDI_SETVIEWPORT SetViewport;

__checkReturn HRESULT APIENTRY SetViewport(
  _In_  HANDLE hDevice,
  _In_  const D3DDDIARG_VIEWPORTINFO *pData
)
{ ... }

Parameters

hDevice [in]

A handle to the display device (graphics context).

pData [in]

A pointer to a D3DDDIARG_VIEWPORTINFO structure that describes the view-clipping rectangle.

Return value

SetViewport returns S_OK or an appropriate error result if the driver is not successfully informed about the view-clipping rectangle.

Requirements

Version

Available in Windows Vista and later versions of the Windows operating systems.

Header

D3dumddi.h (include D3dumddi.h)

See also

D3DDDIARG_VIEWPORTINFO
D3DDDI_DEVICEFUNCS

 

 

Send comments about this topic to Microsoft

Mostrar:
© 2014 Microsoft