+ 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:
trass3r 2010-01-14 22:24:49 +00:00
parent c9ed7507c1
commit 8577dbd56d
3 changed files with 5 additions and 3 deletions

View File

@ -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;

View File

@ -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()

View File

@ -154,3 +154,5 @@ version (UnitTest)
alias Vector2!(float) Vector2f;
/// ditto
alias Vector2!(int) Vector2i;
/// ditto
alias Vector2!(int) Vector2ui;