GFXLockedRect

Engine/source/gfx/gfxTextureObject.h

Contains information on a locked region of a texture.

More...

Public Attributes

U8 *

Pointer to the start of locked rectangle.

Pitch of the lock.

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.

Public Attributes

U8 * bits 

Pointer to the start of locked rectangle.

S32 pitch 

Pitch of the lock.

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