Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This structure describes a locked rectangular region.   This structure is used in calls to IDirect3DMobileTexture::LockRectand IDirect3DMobileSurface::LockRect.

Syntax

typedef struct _D3DMLOCKED_RECT {
  INT   
Pitch;
  void* 
pBits;
} D3DMLOCKED_RECT;

Members

Pitch

Pitch of surface, in bytes.

The pitch for DXTn formats, see D3DMFORMAT, refers to a row of blocks. For example, if you have a width of 16, then you will have a pitch of 4 blocks (4*8 for DXT1, 4*16 for DXT2-5.)

pBits

Pointer to the locked bits. If a RECTLwas provided to the LockRectcall, pBitswill be appropriately offset from the start of the surface.

Requirements

Header d3dmtypes.h
Windows Embedded CE Windows CE 5.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also