mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 03:43:52 +00:00
More work for porting Config to XS
This commit is contained in:
15
xs/xsp/Config.xsp
Normal file
15
xs/xsp/Config.xsp
Normal file
@@ -0,0 +1,15 @@
|
||||
%module{Slic3r::XS};
|
||||
|
||||
%{
|
||||
#include <myinit.h>
|
||||
#include "Config.hpp"
|
||||
%}
|
||||
|
||||
%name{Slic3r::Config} class DynamicConfig {
|
||||
DynamicConfig();
|
||||
~DynamicConfig();
|
||||
SV* get(t_config_option_key opt_key);
|
||||
%{
|
||||
|
||||
%}
|
||||
};
|
||||
@@ -1,5 +1,7 @@
|
||||
std::vector<Points::size_type> T_STD_VECTOR_INT
|
||||
t_config_option_key T_STD_STRING
|
||||
|
||||
DynamicConfig* O_OBJECT
|
||||
ZTable* O_OBJECT
|
||||
TriangleMesh* O_OBJECT
|
||||
Point* O_OBJECT
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
%typemap{bool}{simple};
|
||||
%typemap{std::string};
|
||||
%typemap{t_config_option_key};
|
||||
%typemap{std::vector<unsigned int>*};
|
||||
%typemap{std::vector<double>};
|
||||
%typemap{std::vector<double>*};
|
||||
%typemap{SV*};
|
||||
%typemap{AV*};
|
||||
%typemap{Point*};
|
||||
%typemap{DynamicConfig*};
|
||||
%typemap{ExPolygon*};
|
||||
%typemap{ExPolygonCollection*};
|
||||
%typemap{Line*};
|
||||
|
||||
Reference in New Issue
Block a user