I finally decided to get back into coding, and after seeing that not only SFML 2.0 has finally been released, but SFML 2.1 has been too, I decided to start converting my old SFML 1.6 code to the new format.
And I've hit my first brick wall with Collision Detection.
my old code relies on TransformToGlobal to look up screen positions of 2 sprites, to see if they intersect, and TransformToLocal to then find the pixel position within that sprite.
Okay, I think I figured that part out.
I used getTransform in place of TransformToGlobal, and getInverseTransform in place of TransformToLocal, with a transformPoint(vector) on the end to get the actual positions of the sprites, and positions of the pixels within the sprite.
the next step was then to compare the pixels with GetPixel to see if they both had an alpha > 127.
Problem: sf::Sprite::GetPixel() no longer exists, nor has a .getPixel() alternative.
I thought... no problem, let's just look at the image pixel. wait... we're using Textures in Sprites now, instead of Images... no getPixel there either. (Also, I would have needed to do even more maths on the sprite and texture's Rects to figure out what pixel I actually wanted to look at, but with all the extra maths everywhere accounting for the massive changes in structure (EG, changing rects from left, top, right, buttom, to left, top, width, heiht), the maths is kinda moot).
So... how do I examine the alpha of a specific pixel in a sprite in SFML 2.1?
Alternate question: How would I do a "Pixel Perfect" collision Detection of 2 sprites in SFML 2.1?