LPDIRECT3DSURFACE9 surf;
l_pD3DDevice->GetBackBuffer(0,0,D3DBACKBUFFER_TYPE_MONO, &surf);
// define the rectangle to lock
D3DLOCKED_RECT pLockedRect;
RECT rect;
rect.bottom = 100;
rect.left = 50;
rect.right = 100;
rect.top = 50;
surf->LockRect(&pLockedRect, &rect, NULL);
LockRect doesnt seem to be working (code included)
Hi, just trying to lock a rectangle so i can access the pixels within the area i have designated and it wont work. Simply the return structure from the LockRect function is always NULL,
pLockedRect is always NULL, i have also tried various flags and nothing changes
any ideas?
ace
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement