Mercurial > fife-parpg
view engine/swigwrappers/python/extensions.i.templ @ 665:0a798d5c241a
Win32 build script updates to use the new Win32 November 2010 Devkit:
* Caution: Python 2.7 is now the officially supported Python version on Win32; Python 2.6 will work fine right now as well but you'll need to edit the builds scripts in this case; continue to use Py 2.6 at your own risk!
* Recommended Python 2.7 distro: http://downloads.activestate.com/ActivePython/releases/2.7.0.2/ActivePython-2.7.0.2-win32-x86.msi
* Win32 Devkit Nov2010 (.exe installer): http://sourceforge.net/projects/fife/files/active/sdks/FIFE_Development_Kit_Nov2010.exe/download
* Win32 Devkit Nov2010 (.zip version): http://sourceforge.net/projects/fife/files/active/sdks/FIFE_Development_Kit_Nov2010.zip/download
* A short announcement of the new devkit will be posted at the FIFE blog later today, with more information about the upgrade process, list of changes, etc.
author | mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Mon, 08 Nov 2010 16:52:13 +0000 |
parents | c0c3f64bfc2d |
children |
line wrap: on
line source
namespace FIFE { %extend PointType2D<int> { int getX() { return $self->x; } int getY() { return $self->y; } void setX(int _x) { $self->x = _x; } void setY(int _y) { $self->y = _y; } std::string __str__() { std::stringstream str; str << "Point" << *$self; return str.str(); } }; %extend PointType2D<double> { double getX() { return $self->x; } double getY() { return $self->y; } void setX(double _x) { $self->x = _x; } void setY(double _y) { $self->y = _y; } std::string __str__() { std::stringstream str; str << "DoublePoint" << *$self; return str.str(); } }; %extend PointType3D<int> { std::string __str__() { std::stringstream str; str << "Point3D" << *$self; return str.str(); } }; %extend PointType3D<double> { std::string __str__() { std::stringstream str; str << "DoublePoint3D" << *$self; return str.str(); } }; %extend RectType<int> { int getX() { return $self->x; } int getY() { return $self->y; } void setX(int _x) { $self->x = _x; } void setY(int _y) { $self->y = _y; } int getW() { return $self->w; } int getH() { return $self->h; } void setW(int _w) { $self->w = _w; } void setH(int _h) { $self->h = _h; } std::string __str__() { std::stringstream str; str << "Rect" << *$self; return str.str(); } }; %extend RectType<float> { float getX() { return $self->x; } float getY() { return $self->y; } void setX(float _x) { $self->x = _x; } void setY(float _y) { $self->y = _y; } float getW() { return $self->w; } float getH() { return $self->h; } void setW(float _w) { $self->w = _w; } void setH(float _h) { $self->h = _h; } std::string __str__() { std::stringstream str; str << "FloatRect" << *$self; return str.str(); } }; %extend RectType<double> { double getX() { return $self->x; } double getY() { return $self->y; } void setX(double _x) { $self->x = _x; } void setY(double _y) { $self->y = _y; } double getW() { return $self->w; } double getH() { return $self->h; } void setW(double _w) { $self->w = _w; } void setH(double _h) { $self->h = _h; } std::string __str__() { std::stringstream str; str << "DoubleRect" << *$self; return str.str(); } }; }