Advertisement
Guest User

Init code

a guest
Jan 4th, 2011
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1.         V_RETURN(m_pDev->GetRenderTargetData(m_pSurface, m_pSysMemSurface));
  2.  
  3.         D3DLOCKED_RECT rect;
  4.         V_RETURN(m_pSysMemSurface->LockRect(&rect, nullptr, 0));
  5.  
  6.         _height = ((float*)rect.pBits)[0];
  7.         m_pSysMemSurface->UnlockRect();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement