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.

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

Smartphone: Windows Mobile 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

Last updated on Friday, April 22, 2005

© 2005 Microsoft Corporation. All rights reserved.

Send feedback on this topic to the authors.