New Slic3r::Point::XS class

This commit is contained in:
Alessandro Ranellucci
2013-07-06 15:26:32 +02:00
parent cca25c9950
commit c50ecfb7f8
11 changed files with 109 additions and 17 deletions

21
xs/src/Point.hpp Normal file
View File

@@ -0,0 +1,21 @@
#ifndef slic3r_Point_hpp_
#define slic3r_Point_hpp_
extern "C" {
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
#include "ppport.h"
}
class Point
{
public:
unsigned long x;
unsigned long y;
Point(unsigned long _x, unsigned long _y): x(_x), y(_y) {};
~Point();
SV* _toPerl();
};
#endif