1 | typedef DWORD HSURFACE; |
1 | HSURFACE CALL HGE_Impl::Target_GetSurface(HTARGET target) |
1 | //targTemp is a HTARGET |
Surface_Lock syntax is identical to Texture_Lock, however making changes to it is useless, because you can’t copy surface to texture in my version (but this is possible and you can write it on your own). HSURFACE can be only used to read data from render target. Remember, that Target_GetSurface creates new surface, which you have to deallocate every time you use it.
Note that my code is for DirectX9 version of HGE.
Code provided on do-whatever-you-want-but-notice-author licence. ;)
It looks like you're new here. If you want to get involved, click one of these buttons!