GFXLockedRect Struct Reference

#include <gfxTextureObject.h>

List of all members.


Detailed Description

Contains information on a locked region of a texture.

In general, to access a given pixel in a locked rectangle, use this equation:

     U8 *pixelAtXY = bits + x * pitch + y * pixelSizeInBytes;

Note:
D3DLOCKED_RECT and this structure match up. If you change this assumption, be sure to revisit the D3D GFX implementation.
See also:
GFXTextureObject::lock()


Public Attributes

int pitch
 Pitch of the lock.
U8bits
 Pointer to the start of locked rectangle.


Member Data Documentation

Pitch of the lock.

This is the spacing in bytes of the start of each row of the locked region.

Pointer to the start of locked rectangle.