Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

C++ GetLockedArray Equivalent

Status
Not open for further replies.

BlueDevel

Programmer
Jul 13, 2003
1
US
I am trying to access pixel information in an offscreen surface. I have loaded the surface from a bitmap, created the surface and hardware blitted it to the backbuffer. For doing a perfect pixel routine I need to access the pixel information in different surfaces, after the fact. I found a cool routine in VB, and was surprised to find the key method, GetLockedArray, was missing from C++. So I tried to lock the surface in my Collision routine, and access the pixels thru ddsd.lpsurface, but now the Lock method seems to freeze my program every time I try it (tho it did lock and load it initally in the game init routine). Any help along this line would be appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top