D3D9::Surface::LockedRect Class Reference

Locked rectangular area on a bitmapped surface, so the surface bits may be accessed. More...

#include <dx9_wrap.h>

Collaboration diagram for D3D9::Surface::LockedRect:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LockedRect (Surface &n_surface, const Rect &rect)
 Create and lock rectangular region of a bitmapped surface.

 ~LockedRect ()
 Unlock locked rectangular region of a bitmapped surface.

int get_stride () const
 Return stride (distance between starts of consequent image rows, measured in bytes).

void * get_ptr ()
 Return pointer to first row (next rows can be reached by adding stride to the returned pointer multiple times).


Detailed Description

Locked rectangular area on a bitmapped surface, so the surface bits may be accessed.


Constructor & Destructor Documentation

D3D9::Surface::LockedRect::LockedRect Surface n_surface,
const Rect rect
 

Create and lock rectangular region of a bitmapped surface.

D3D9::Surface::LockedRect::~LockedRect  ) 
 

Unlock locked rectangular region of a bitmapped surface.


Member Function Documentation

int D3D9::Surface::LockedRect::get_stride  )  const [inline]
 

Return stride (distance between starts of consequent image rows, measured in bytes).

void* D3D9::Surface::LockedRect::get_ptr  )  [inline]
 

Return pointer to first row (next rows can be reached by adding stride to the returned pointer multiple times).


The documentation for this class was generated from the following files:
Generated on Sun May 1 17:34:29 2005 for RealityStrike Game Engine API by doxygen 1.3.6