mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-26 05:06:12 +01:00
Added sfTexture, renamed sfRenderImage to sfRenderTexture, removed sfSprite_GetPixel, added sfImage_FlipHorizontally and sfImage_FlipVertically
This commit is contained in:
1 parent
29663b351d
commit
f4eda513af
22 files changed
+1032
-530
No files matched your search
@@ -470,3 +470,17 @@ void sfRenderWindow_ConvertCoords(const sfRenderWindow* renderWindow, unsigned i
|
||||
if (viewX) *viewX = point.x;
|
||||
if (viewY) *viewY = point.y;
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Copy the current contents of a window to an image
|
||||
////////////////////////////////////////////////////////////
|
||||
sfImage* sfRenderWindow_Capture(const sfRenderWindow* renderWindow)
|
||||
{
|
||||
CSFML_CHECK(renderWindow);
|
||||
|
||||
sfImage* image = new sfImage;
|
||||
image->This = renderWindow->This.Capture();
|
||||
|
||||
return image;
|
||||
}
|
||||
Reference in new issue
Block a user