mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
+ alias Vector2ui
* fixed Sprite.setSubRect * preliminarily fixed sleep function git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1360 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
c9ed7507c1
commit
8577dbd56d
@ -103,7 +103,7 @@ public:
|
||||
*/
|
||||
void setSubRect(IntRect rect)
|
||||
{
|
||||
sfSprite_SetSubRect(m_ptr, &rect);
|
||||
sfSprite_SetSubRect(m_ptr, rect);
|
||||
m_subRect = rect;
|
||||
}
|
||||
|
||||
@ -213,7 +213,7 @@ private:
|
||||
extern (C)
|
||||
{
|
||||
typedef void function(void*, void*, bool) pf_sfSprite_SetImage;
|
||||
typedef void function(void*, IntRect*) pf_sfSprite_SetSubRect;
|
||||
typedef void function(void*, IntRect) pf_sfSprite_SetSubRect;
|
||||
typedef void function(void*, float, float) pf_sfSprite_Resize;
|
||||
typedef void function(void*, int) pf_sfSprite_FlipX;
|
||||
typedef void function(void*, int) pf_sfSprite_FlipY;
|
||||
|
@ -32,7 +32,7 @@ extern(C)
|
||||
{
|
||||
typedef void function(float) pf_sfSleep;
|
||||
|
||||
private static pf_sfSleep sfSleep;
|
||||
private static __gshared pf_sfSleep sfSleep;
|
||||
}
|
||||
|
||||
static this()
|
||||
|
@ -154,3 +154,5 @@ version (UnitTest)
|
||||
alias Vector2!(float) Vector2f;
|
||||
/// ditto
|
||||
alias Vector2!(int) Vector2i;
|
||||
/// ditto
|
||||
alias Vector2!(int) Vector2ui;
|
Loading…
Reference in New Issue
Block a user