mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-28 07:35:20 +00:00
New Slic3r::Point::XS class
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
%{
|
||||
#include <myinit.h>
|
||||
#include "ZTable.hpp"
|
||||
#include <vector>
|
||||
%}
|
||||
|
||||
|
||||
25
xs/xsp/Point.xsp
Normal file
25
xs/xsp/Point.xsp
Normal file
@@ -0,0 +1,25 @@
|
||||
%module{Slic3r::XS};
|
||||
|
||||
%{
|
||||
#include <myinit.h>
|
||||
#include "Point.hpp"
|
||||
%}
|
||||
|
||||
%name{Slic3r::Point::XS} class Point {
|
||||
Point(unsigned long _x, unsigned long _y);
|
||||
~Point();
|
||||
SV* _toPerl();
|
||||
};
|
||||
|
||||
%package{Slic3r::Point::XS};
|
||||
|
||||
%{
|
||||
PROTOTYPES: DISABLE
|
||||
|
||||
std::string
|
||||
hello_world()
|
||||
CODE:
|
||||
RETVAL = "Hello world!";
|
||||
OUTPUT:
|
||||
RETVAL
|
||||
%}
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
%{
|
||||
#include <myinit.h>
|
||||
#include "TriangleMesh.hpp"
|
||||
%}
|
||||
|
||||
%name{Slic3r::TriangleMesh::XS} class TriangleMesh {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
ZTable* O_OBJECT
|
||||
TriangleMesh* O_OBJECT
|
||||
Point* O_OBJECT
|
||||
std::vector< unsigned int >* T_STD_VECTOR_UINT_PTR
|
||||
|
||||
Reference in New Issue
Block a user