initial commit of DSFML2
some basic things work, much still has to be done - made as few changes as possible to make it compile under D2 - removed system.thread, use standard threads - lots of other changes git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1333 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
dd255a916d
commit
8431753ba3
58 changed files with 1297 additions and 1274 deletions
|
@ -1,6 +1,7 @@
|
|||
/*
|
||||
* DSFML - SFML Library binding in D language.
|
||||
* DSFML - SFML Library wrapper for the D programming language.
|
||||
* Copyright (C) 2008 Julien Dagorn (sirjulio13@gmail.com)
|
||||
* Copyright (C) 2010 Andreas Hollandt
|
||||
*
|
||||
* This software is provided 'as-is', without any express or
|
||||
* implied warranty. In no event will the authors be held
|
||||
|
@ -56,7 +57,7 @@ struct Vector2(T)
|
|||
{
|
||||
x += other.x;
|
||||
y += other.y;
|
||||
return *this;
|
||||
return this;
|
||||
}
|
||||
|
||||
/// (-=) overload
|
||||
|
@ -64,7 +65,7 @@ struct Vector2(T)
|
|||
{
|
||||
x -= other.x;
|
||||
y -= other.y;
|
||||
return *this;
|
||||
return this;
|
||||
}
|
||||
|
||||
/// (+) overload
|
||||
|
@ -90,7 +91,7 @@ struct Vector2(T)
|
|||
{
|
||||
x *= i;
|
||||
y *= i;
|
||||
return *this;
|
||||
return this;
|
||||
}
|
||||
|
||||
/// (/) overload
|
||||
|
@ -104,11 +105,11 @@ struct Vector2(T)
|
|||
{
|
||||
x /= i;
|
||||
y /= i;
|
||||
return *this;
|
||||
return this;
|
||||
}
|
||||
|
||||
///
|
||||
int opEquals(Vector2 other)
|
||||
const bool opEquals(ref const(Vector2) other)
|
||||
{
|
||||
return (x == other.x) && (y == other.y);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue