I'm trying to create pixel perfect 2D collision detection using DirectX LockRectangle method. The following thing are the ones that I've already been able to do:
1.Locking a texture and reading its bit data.
2.Plotting texture's bit data into 2D array.
Ofcourse the data that I get is not transformed to screen coordinates (without rotation, scaling, etc.). I understand the theory that should let me create pixel perfect collision but what I don't know is how to get transformed bit data. Is it possible to do it with directX?
[C# code would be appreciated.]
Edited by mCray, 18 February 2013 - 06:15 AM.