forked from jvan/pyvrui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gl.i
53 lines (40 loc) · 1.5 KB
/
gl.i
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
%{
#include <GL/GLObject.h>
#include <GL/GLContextData.h>
#include <GL/GLModels.h>
%}
//------------------------------------------------------------------------------
// DataItem Class Interface
//
//------------------------------------------------------------------------------
%feature("director") DataItem;
struct DataItem
{
virtual ~DataItem(void) { }
};
//------------------------------------------------------------------------------
// GL::GLObject Class Interface
//
//------------------------------------------------------------------------------
NESTED_WORKAROUND_HELPER(GLObject, DataItem);
%feature("director") GLObject;
%include <GL/GLObject.h>
/* Automatically disable garbage collection on DataItem objects */
%pythonprepend GLContextData::addDataItem(const GLObject* thing, GLObject::DataItem* dataItem) %{
args[1].__disown__()
%}
%import <GL/TLSHelper.h>
//------------------------------------------------------------------------------
// GL::GLContextData Class Interface
//
//------------------------------------------------------------------------------
%warnfilter(SWIGWARN_PARSE_NAMED_NESTED_CLASS) GLContextData::CurrentContextDataChangedCallbackData;
%include <GL/GLContextData.h>
%extend GLContextData {
%template(retrieveDataItem) retrieveDataItem<DataItem>;
};
//------------------------------------------------------------------------------
// GL::GLModels Interface
//
//------------------------------------------------------------------------------
%include <GL/GLModels.h>