* introduced SFMLClass type for all C pointers

* getNativePointer -> nativePointer property

- IpAddress.isValid
+ IpAddress.None

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1459 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
trass3r 2010-03-15 23:35:53 +00:00
parent 6b444d338e
commit cfedeee112
23 changed files with 317 additions and 320 deletions

View file

@ -40,7 +40,7 @@ import dsfml.graphics.drawableimpl;
class Shape : DrawableImpl!("sfShape")
{
private:
this (void* ptr)
this (SFMLClass ptr)
{
super(ptr);
}
@ -284,21 +284,21 @@ private:
static extern(C)
{
void* function(float, float, float, float, float, Color, float, Color) sfShape_CreateLine;
void* function(float, float, float, float, Color, float, Color) sfShape_CreateRectangle;
void* function(float, float, float, Color, float, Color) sfShape_CreateCircle;
void function(void*, float, float, Color, Color) sfShape_AddPoint;
void function(void*, int) sfShape_EnableFill;
void function(void*, int) sfShape_EnableOutline;
void function(void*, float Width) sfShape_SetOutlineWidth;
float function(void*) sfShape_GetOutlineWidth;
uint function(void*) sfShape_GetPointsCount;
void function(void*, uint Index, float* X, float* Y) sfShape_GetPointPosition;
void function(void*, uint Index, float X, float Y) sfShape_SetPointPosition;
Color function(void*, uint index) sfShape_GetPointColor;
void function(void*, uint index, Color color) sfShape_SetPointColor;
Color function(void*, uint index) sfShape_GetPointOutlineColor;
void function(void*, uint index, Color color) sfShape_SetPointOutlineColor;
SFMLClass function(float, float, float, float, float, Color, float, Color) sfShape_CreateLine;
SFMLClass function(float, float, float, float, Color, float, Color) sfShape_CreateRectangle;
SFMLClass function(float, float, float, Color, float, Color) sfShape_CreateCircle;
void function(SFMLClass, float, float, Color, Color) sfShape_AddPoint;
void function(SFMLClass, int) sfShape_EnableFill;
void function(SFMLClass, int) sfShape_EnableOutline;
void function(SFMLClass, float Width) sfShape_SetOutlineWidth;
float function(SFMLClass) sfShape_GetOutlineWidth;
uint function(SFMLClass) sfShape_GetPointsCount;
void function(SFMLClass, uint Index, float* X, float* Y) sfShape_GetPointPosition;
void function(SFMLClass, uint Index, float X, float Y) sfShape_SetPointPosition;
Color function(SFMLClass, uint index) sfShape_GetPointColor;
void function(SFMLClass, uint index, Color color) sfShape_SetPointColor;
Color function(SFMLClass, uint index) sfShape_GetPointOutlineColor;
void function(SFMLClass, uint index, Color color) sfShape_SetPointOutlineColor;
}
mixin(loadFromSharedLib2("csfml-graphics", "sfShape",