couch/scripting/couch.i

26 lines
427 B
OpenEdge ABL
Raw Normal View History

2021-01-13 16:47:16 -06:00
%module couch
%typemap(in) cfloat {
$1 = (cfloat) lua_tonumber(L, $input);
2021-01-13 18:51:58 -06:00
}
2021-01-13 16:47:16 -06:00
%{
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 "Drawable.h"
2021-01-13 16:47:16 -06:00
#include "Mesh.h"
#include "Ball.h"
#include "Camera.h"
%}
2021-01-14 11:52:01 -06:00
typedef float cfloat;
2021-01-13 18:51:58 -06:00
struct Vector3 {
2021-01-14 11:52:01 -06:00
cfloat x, y, z;
2021-01-13 18:51:58 -06:00
};
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"
2021-01-14 11:52:01 -06:00
%include "Drawable.h"
2021-01-13 16:47:16 -06:00
%include "Mesh.h"
%include "Ball.h"
%include "Camera.h"