mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-25 05:03:36 +01:00
sfTransform is no longer a wrapper around a sf::Transform*, it is a simple structure
This commit is contained in:
1 parent
bf614690ad
commit
bfebe0aab4
30 files changed
+179
-159
No files matched your search
@@ -29,6 +29,7 @@
|
||||
#include <SFML/Graphics/TextStruct.h>
|
||||
#include <SFML/Graphics/Font.h>
|
||||
#include <SFML/Graphics/Color.hpp>
|
||||
#include <SFML/Graphics/ConvertTransform.hpp>
|
||||
#include <SFML/Internal.h>
|
||||
|
||||
|
||||
@@ -157,22 +158,22 @@ void sfText_scale(sfText* text, sfVector2f factors)
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
const sfTransform* sfText_getTransform(const sfText* text)
|
||||
sfTransform sfText_getTransform(const sfText* text)
|
||||
{
|
||||
CSFML_CHECK_RETURN(text, NULL);
|
||||
|
||||
text->Transform.This = text->This.getTransform();
|
||||
return &text->Transform;
|
||||
text->Transform = convertTransform(text->This.getTransform());
|
||||
return text->Transform;
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
const sfTransform* sfText_getInverseTransform(const sfText* text)
|
||||
sfTransform sfText_getInverseTransform(const sfText* text)
|
||||
{
|
||||
CSFML_CHECK_RETURN(text, NULL);
|
||||
|
||||
text->InverseTransform.This = text->This.getInverseTransform();
|
||||
return &text->InverseTransform;
|
||||
text->InverseTransform = convertTransform(text->This.getInverseTransform());
|
||||
return text->InverseTransform;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user