couch/scripting/couch.i

43 lines
648 B
OpenEdge ABL
Raw Normal View History

2021-01-13 16:47:16 -06:00
%module couch
2021-01-15 17:51:19 -06:00
%include "typemaps.i"
2021-01-13 16:47:16 -06:00
%{
2021-01-15 17:51:19 -06:00
#include "types.h"
2021-01-14 11:52:01 -06:00
#include "Node.h"
2021-01-13 16:47:16 -06:00
#include "Transform.h"
2021-01-14 11:52:01 -06:00
#include "Spatial.h"
#include "Material.h"
2021-01-13 16:47:16 -06:00
#include "Mesh.h"
#include "Ball.h"
#include "Camera.h"
2021-01-15 20:33:25 -06:00
%}
2021-01-15 17:51:19 -06:00
2021-01-14 11:52:01 -06:00
typedef float cfloat;
2021-01-15 17:51:19 -06:00
%ignore "cfloat";
class Vector3 {
public:
2021-01-15 20:33:25 -06:00
Vector3();
2021-01-14 11:52:01 -06:00
cfloat x, y, z;
2021-01-13 18:51:58 -06:00
};
2021-01-15 20:33:25 -06:00
%extend Vector3 {
Vector3 operator+(const Vector3 &o) const {
return *$self + o;
}
Vector3 operator*(const cfloat &o) const {
return *$self * o;
}
}
2021-01-15 17:51:19 -06:00
%ignore "Vector3";
%include "types.h"
2021-01-14 11:52:01 -06:00
%include "Node.h"
%include "Spatial.h"
2021-01-13 16:47:16 -06:00
%include "Transform.h"
%include "Material.h"
2021-01-13 16:47:16 -06:00
%include "Mesh.h"
%include "Ball.h"
%include "Camera.h"
2021-01-15 17:51:19 -06:00