-
Notifications
You must be signed in to change notification settings - Fork 781
Expand file tree
/
Copy pathfreenect2.i
More file actions
33 lines (27 loc) · 806 Bytes
/
freenect2.i
File metadata and controls
33 lines (27 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* build with:
swig2.0 -c++ -DLIBFREENECT2_API -java freenect2.i
javac ...
*/
%module(directors=1) libfreenect2
/* Includes that will be added to the generated xxx_wrap.cpp
wrapper file. They will not be interpreted by SWIG */
%{
#include <string>
#include "../include/libfreenect2/libfreenect2.hpp"
%}
%feature("director") Freenect2Device;
%feature("director") FrameListener;
%include "std_string.i"
%include ../include/libfreenect2/libfreenect2.hpp
%include ../include/libfreenect2/frame_listener.hpp
%include ../include/libfreenect2/registration.h
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("freenect2");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native library freenect2 failed to load.\n" + e);
System.exit(1);
}
}
%}