couch/scripting/couch.i
2021-01-20 15:16:44 -06:00

46 lines
685 B
OpenEdge ABL

%module couch
%include "typemaps.i"
%{
#include "types.h"
#include "Node.h"
#include "Transform.h"
#include "Spatial.h"
#include "Mesh.h"
#include "Ball.h"
#include "Material.h"
#include "Camera.h"
%}
%rename("%(strip:[script_])s") "";
typedef float cfloat;
%ignore "cfloat";
class Vector3 {
public:
Vector3();
cfloat x, y, z;
};
%extend Vector3 {
Vector3 operator+(const Vector3 &o) const {
return *$self + o;
}
Vector3 operator*(const cfloat &o) const {
return *$self * o;
}
}
%ignore "Vector3";
%include "types.h"
%include "Node.h"
%include "Spatial.h"
%include "Mesh.h"
%include "Ball.h"
%include "Transform.h"
%include "Material.h"
%include "Camera.h"