31
General / [SFML 2.0] Collision
« on: February 21, 2012, 11:28:39 am »
* GetSubRect(): use GetGlobalBounds() taking in account the transformations. GetLocalBounds() for to ignore the transforms.
* TransformToLocal() can now be done transforming a point using the inverse matrix ( sprite.GetInverseTransform().TransformPoint(p) )
* TransformToGlobal() same as above but with GetTransform(), not the inverse
* GetPixel() is still on Image class. If you use textures, first copy the texture to a image using CopyToImage()
* GetSize(), GetWidth(), GetHeight(): use the methods provided by the Texture class GetWidth() and GetHeight()
* TransformToLocal() can now be done transforming a point using the inverse matrix ( sprite.GetInverseTransform().TransformPoint(p) )
* TransformToGlobal() same as above but with GetTransform(), not the inverse
* GetPixel() is still on Image class. If you use textures, first copy the texture to a image using CopyToImage()
* GetSize(), GetWidth(), GetHeight(): use the methods provided by the Texture class GetWidth() and GetHeight()