GXSetViewport
The GXSetViewport function defines a GAPI view port. On nonstandard display devices, this function allows you to define the screen region that is affected by the bit block transfer. On standard display devices, this code has no effect.
Note GAPI is deprecated. Use DirectDraw and Direct3D Mobile APIs instead.
Syntax
GXDLL_API int GXSetViewport (
DWORD dwTop,
DWORD dwHeight,
DWORD dwReserved1,
DWORD dwReserved2
);
Parameters
- dwTop
Screen position of the top of the viewport. - dwHeight
Height of the viewport. - dwReserved1
Reserved; must be 0. - dwReserved2
Reserved; must be 0.
Return Values
Success = 1.
Failure = 0. Use GetLastError to get extended error info.
Remarks
This is not a clipper.
Requirements
Pocket PC: Pocket PC 2000 and later
Smartphone: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
Header: gx.h
Library: gx.lib
See Also
GAPI Functions | GXIsDisplayDRAMBuffer | Windows Mobile Game Programming
Send Feedback on this topic to the authors