couch/scripting/couch.i

22 lines
362 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
%{
#include "Transform.h"
#include "Mesh.h"
#include "Ball.h"
#include "Camera.h"
extern void AddMeshToList(Mesh &mesh);
%}
2021-01-13 18:51:58 -06:00
struct Vector3 {
double x, y, z;
};
2021-01-13 16:47:16 -06:00
%include "Transform.h"
%include "Mesh.h"
%include "Ball.h"
%include "Camera.h"
2021-01-13 18:51:58 -06:00
2021-01-13 16:47:16 -06:00
extern void AddMeshToList(Mesh &mesh);