]>
Commit | Line | Data |
---|---|---|
a29cd6c0 | 1 | /* |
2cd2fac8 | 2 | * FILE : contrib/glcanvas/gtk/glcanvas.cpp |
a29cd6c0 HH |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
2cd2fac8 | 6 | * Version 1.1 (Build 883) |
a29cd6c0 HH |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
f786a3b2 | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
a29cd6c0 HH |
28 | # else |
29 | # if defined(__BORLANDC__) | |
3bcd5e1c | 30 | # define SWIGEXPORT(a) a _export |
a29cd6c0 | 31 | # else |
3bcd5e1c | 32 | # define SWIGEXPORT(a) a |
a29cd6c0 HH |
33 | # endif |
34 | # endif | |
35 | #else | |
3bcd5e1c | 36 | # define SWIGEXPORT(a) a |
a29cd6c0 HH |
37 | #endif |
38 | ||
3bcd5e1c RD |
39 | #include "Python.h" |
40 | ||
a29cd6c0 HH |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
3bcd5e1c | 44 | |
a29cd6c0 HH |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
f786a3b2 | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
a29cd6c0 HH |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
a29cd6c0 HH |
54 | #define SWIG_init initglcanvasc |
55 | ||
56 | #define SWIG_name "glcanvasc" | |
57 | ||
b68dc582 | 58 | #include "export.h" |
4662be59 RD |
59 | #ifdef __WXMSW__ |
60 | #include "myglcanvas.h" | |
61 | #else | |
7ff49f0c | 62 | #include <wx/glcanvas.h> |
4662be59 RD |
63 | #endif |
64 | ||
a29cd6c0 | 65 | |
a29cd6c0 HH |
66 | |
67 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
68 | PyObject* o2; | |
69 | PyObject* o3; | |
70 | ||
3bcd5e1c | 71 | if (!target) { |
a29cd6c0 | 72 | target = o; |
3bcd5e1c | 73 | } else if (target == Py_None) { |
a29cd6c0 HH |
74 | Py_DECREF(Py_None); |
75 | target = o; | |
3bcd5e1c | 76 | } else { |
a29cd6c0 HH |
77 | if (!PyTuple_Check(target)) { |
78 | o2 = target; | |
79 | target = PyTuple_New(1); | |
80 | PyTuple_SetItem(target, 0, o2); | |
81 | } | |
3bcd5e1c RD |
82 | o3 = PyTuple_New(1); |
83 | PyTuple_SetItem(o3, 0, o); | |
a29cd6c0 HH |
84 | |
85 | o2 = target; | |
3bcd5e1c RD |
86 | target = PySequence_Concat(o2, o3); |
87 | Py_DECREF(o2); | |
a29cd6c0 HH |
88 | Py_DECREF(o3); |
89 | } | |
90 | return target; | |
91 | } | |
9a74fcaf RD |
92 | |
93 | // Put some wx default wxChar* values into wxStrings. | |
94 | static const wxString wxPyGLCanvasNameStr(wxT("GLCanvas")); | |
95 | static const wxString wxPyEmptyString(wxT("")); | |
54b96882 RD |
96 | #ifdef __cplusplus |
97 | extern "C" { | |
98 | #endif | |
9df61a29 RD |
99 | static void *SwigwxGLContextTowxObject(void *ptr) { |
100 | wxGLContext *src; | |
101 | wxObject *dest; | |
102 | src = (wxGLContext *) ptr; | |
103 | dest = (wxObject *) src; | |
104 | return (void *) dest; | |
105 | } | |
106 | ||
a29cd6c0 | 107 | #define new_wxGLContext(_swigarg0,_swigarg1,_swigarg2) (new wxGLContext(_swigarg0,_swigarg1,_swigarg2)) |
107e4716 | 108 | static PyObject *_wrap_new_wxGLContext(PyObject *self, PyObject *args, PyObject *kwargs) { |
a29cd6c0 HH |
109 | PyObject * _resultobj; |
110 | wxGLContext * _result; | |
111 | bool _arg0; | |
112 | wxGLCanvas * _arg1; | |
f786a3b2 | 113 | wxPalette * _arg2 = (wxPalette *) &wxNullPalette; |
a29cd6c0 | 114 | int tempbool0; |
f786a3b2 HH |
115 | PyObject * _argo1 = 0; |
116 | PyObject * _argo2 = 0; | |
107e4716 | 117 | char *_kwnames[] = { "isRGB","win","palette", NULL }; |
a29cd6c0 HH |
118 | char _ptemp[128]; |
119 | ||
120 | self = self; | |
107e4716 | 121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iO|O:new_wxGLContext",_kwnames,&tempbool0,&_argo1,&_argo2)) |
a29cd6c0 HH |
122 | return NULL; |
123 | _arg0 = (bool ) tempbool0; | |
f786a3b2 HH |
124 | if (_argo1) { |
125 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
126 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxGLCanvas_p")) { | |
a29cd6c0 HH |
127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxGLContext. Expected _wxGLCanvas_p."); |
128 | return NULL; | |
129 | } | |
130 | } | |
f786a3b2 HH |
131 | if (_argo2) { |
132 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
133 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPalette_p")) { | |
a29cd6c0 HH |
134 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxGLContext. Expected _wxPalette_p."); |
135 | return NULL; | |
136 | } | |
137 | } | |
138 | { | |
474c48f9 | 139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 140 | _result = (wxGLContext *)new_wxGLContext(_arg0,_arg1,*_arg2); |
a29cd6c0 | 141 | |
474c48f9 RD |
142 | wxPyEndAllowThreads(__tstate); |
143 | if (PyErr_Occurred()) return NULL; | |
f786a3b2 HH |
144 | } if (_result) { |
145 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGLContext_p"); | |
146 | _resultobj = Py_BuildValue("s",_ptemp); | |
147 | } else { | |
148 | Py_INCREF(Py_None); | |
149 | _resultobj = Py_None; | |
150 | } | |
a29cd6c0 HH |
151 | return _resultobj; |
152 | } | |
153 | ||
154 | #define delete_wxGLContext(_swigobj) (delete _swigobj) | |
107e4716 | 155 | static PyObject *_wrap_delete_wxGLContext(PyObject *self, PyObject *args, PyObject *kwargs) { |
a29cd6c0 HH |
156 | PyObject * _resultobj; |
157 | wxGLContext * _arg0; | |
f786a3b2 | 158 | PyObject * _argo0 = 0; |
107e4716 | 159 | char *_kwnames[] = { "self", NULL }; |
a29cd6c0 HH |
160 | |
161 | self = self; | |
107e4716 | 162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxGLContext",_kwnames,&_argo0)) |
a29cd6c0 | 163 | return NULL; |
f786a3b2 HH |
164 | if (_argo0) { |
165 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
166 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLContext_p")) { | |
a29cd6c0 HH |
167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxGLContext. Expected _wxGLContext_p."); |
168 | return NULL; | |
169 | } | |
170 | } | |
171 | { | |
474c48f9 | 172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 173 | delete_wxGLContext(_arg0); |
a29cd6c0 | 174 | |
474c48f9 RD |
175 | wxPyEndAllowThreads(__tstate); |
176 | if (PyErr_Occurred()) return NULL; | |
a29cd6c0 HH |
177 | } Py_INCREF(Py_None); |
178 | _resultobj = Py_None; | |
179 | return _resultobj; | |
180 | } | |
181 | ||
182 | #define wxGLContext_SetCurrent(_swigobj) (_swigobj->SetCurrent()) | |
107e4716 | 183 | static PyObject *_wrap_wxGLContext_SetCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { |
a29cd6c0 HH |
184 | PyObject * _resultobj; |
185 | wxGLContext * _arg0; | |
f786a3b2 | 186 | PyObject * _argo0 = 0; |
107e4716 | 187 | char *_kwnames[] = { "self", NULL }; |
a29cd6c0 HH |
188 | |
189 | self = self; | |
107e4716 | 190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGLContext_SetCurrent",_kwnames,&_argo0)) |
a29cd6c0 | 191 | return NULL; |
f786a3b2 HH |
192 | if (_argo0) { |
193 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
194 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLContext_p")) { | |
a29cd6c0 HH |
195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLContext_SetCurrent. Expected _wxGLContext_p."); |
196 | return NULL; | |
197 | } | |
198 | } | |
199 | { | |
474c48f9 | 200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 201 | wxGLContext_SetCurrent(_arg0); |
a29cd6c0 | 202 | |
474c48f9 RD |
203 | wxPyEndAllowThreads(__tstate); |
204 | if (PyErr_Occurred()) return NULL; | |
a29cd6c0 HH |
205 | } Py_INCREF(Py_None); |
206 | _resultobj = Py_None; | |
207 | return _resultobj; | |
208 | } | |
209 | ||
210 | #define wxGLContext_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
107e4716 | 211 | static PyObject *_wrap_wxGLContext_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
a29cd6c0 HH |
212 | PyObject * _resultobj; |
213 | wxGLContext * _arg0; | |
214 | char * _arg1; | |
f786a3b2 | 215 | PyObject * _argo0 = 0; |
107e4716 | 216 | char *_kwnames[] = { "self","colour", NULL }; |
a29cd6c0 HH |
217 | |
218 | self = self; | |
107e4716 | 219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os:wxGLContext_SetColour",_kwnames,&_argo0,&_arg1)) |
a29cd6c0 | 220 | return NULL; |
f786a3b2 HH |
221 | if (_argo0) { |
222 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
223 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLContext_p")) { | |
a29cd6c0 HH |
224 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLContext_SetColour. Expected _wxGLContext_p."); |
225 | return NULL; | |
226 | } | |
227 | } | |
228 | { | |
474c48f9 | 229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 230 | wxGLContext_SetColour(_arg0,_arg1); |
a29cd6c0 | 231 | |
474c48f9 RD |
232 | wxPyEndAllowThreads(__tstate); |
233 | if (PyErr_Occurred()) return NULL; | |
a29cd6c0 HH |
234 | } Py_INCREF(Py_None); |
235 | _resultobj = Py_None; | |
236 | return _resultobj; | |
237 | } | |
238 | ||
239 | #define wxGLContext_SwapBuffers(_swigobj) (_swigobj->SwapBuffers()) | |
107e4716 | 240 | static PyObject *_wrap_wxGLContext_SwapBuffers(PyObject *self, PyObject *args, PyObject *kwargs) { |
a29cd6c0 HH |
241 | PyObject * _resultobj; |
242 | wxGLContext * _arg0; | |
f786a3b2 | 243 | PyObject * _argo0 = 0; |
107e4716 | 244 | char *_kwnames[] = { "self", NULL }; |
a29cd6c0 HH |
245 | |
246 | self = self; | |
107e4716 | 247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGLContext_SwapBuffers",_kwnames,&_argo0)) |
a29cd6c0 | 248 | return NULL; |
f786a3b2 HH |
249 | if (_argo0) { |
250 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
251 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLContext_p")) { | |
a29cd6c0 HH |
252 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLContext_SwapBuffers. Expected _wxGLContext_p."); |
253 | return NULL; | |
254 | } | |
255 | } | |
256 | { | |
474c48f9 | 257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 258 | wxGLContext_SwapBuffers(_arg0); |
a29cd6c0 | 259 | |
474c48f9 RD |
260 | wxPyEndAllowThreads(__tstate); |
261 | if (PyErr_Occurred()) return NULL; | |
a29cd6c0 HH |
262 | } Py_INCREF(Py_None); |
263 | _resultobj = Py_None; | |
264 | return _resultobj; | |
265 | } | |
266 | ||
267 | #define wxGLContext_SetupPixelFormat(_swigobj) (_swigobj->SetupPixelFormat()) | |
107e4716 | 268 | static PyObject *_wrap_wxGLContext_SetupPixelFormat(PyObject *self, PyObject *args, PyObject *kwargs) { |
a29cd6c0 HH |
269 | PyObject * _resultobj; |
270 | wxGLContext * _arg0; | |
f786a3b2 | 271 | PyObject * _argo0 = 0; |
107e4716 | 272 | char *_kwnames[] = { "self", NULL }; |
a29cd6c0 HH |
273 | |
274 | self = self; | |
107e4716 | 275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGLContext_SetupPixelFormat",_kwnames,&_argo0)) |
a29cd6c0 | 276 | return NULL; |
f786a3b2 HH |
277 | if (_argo0) { |
278 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
279 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLContext_p")) { | |
a29cd6c0 HH |
280 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLContext_SetupPixelFormat. Expected _wxGLContext_p."); |
281 | return NULL; | |
282 | } | |
283 | } | |
284 | { | |
474c48f9 | 285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 286 | wxGLContext_SetupPixelFormat(_arg0); |
a29cd6c0 | 287 | |
474c48f9 RD |
288 | wxPyEndAllowThreads(__tstate); |
289 | if (PyErr_Occurred()) return NULL; | |
a29cd6c0 HH |
290 | } Py_INCREF(Py_None); |
291 | _resultobj = Py_None; | |
292 | return _resultobj; | |
293 | } | |
294 | ||
295 | #define wxGLContext_SetupPalette(_swigobj,_swigarg0) (_swigobj->SetupPalette(_swigarg0)) | |
107e4716 | 296 | static PyObject *_wrap_wxGLContext_SetupPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
a29cd6c0 HH |
297 | PyObject * _resultobj; |
298 | wxGLContext * _arg0; | |
299 | wxPalette * _arg1; | |
f786a3b2 HH |
300 | PyObject * _argo0 = 0; |
301 | PyObject * _argo1 = 0; | |
107e4716 | 302 | char *_kwnames[] = { "self","palette", NULL }; |
a29cd6c0 HH |
303 | |
304 | self = self; | |
107e4716 | 305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGLContext_SetupPalette",_kwnames,&_argo0,&_argo1)) |
a29cd6c0 | 306 | return NULL; |
f786a3b2 HH |
307 | if (_argo0) { |
308 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
309 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLContext_p")) { | |
a29cd6c0 HH |
310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLContext_SetupPalette. Expected _wxGLContext_p."); |
311 | return NULL; | |
312 | } | |
313 | } | |
f786a3b2 HH |
314 | if (_argo1) { |
315 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
316 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) { | |
a29cd6c0 HH |
317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGLContext_SetupPalette. Expected _wxPalette_p."); |
318 | return NULL; | |
319 | } | |
320 | } | |
321 | { | |
474c48f9 | 322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 323 | wxGLContext_SetupPalette(_arg0,*_arg1); |
a29cd6c0 | 324 | |
474c48f9 RD |
325 | wxPyEndAllowThreads(__tstate); |
326 | if (PyErr_Occurred()) return NULL; | |
a29cd6c0 HH |
327 | } Py_INCREF(Py_None); |
328 | _resultobj = Py_None; | |
329 | return _resultobj; | |
330 | } | |
331 | ||
332 | #define wxGLContext_CreateDefaultPalette(_swigobj) (_swigobj->CreateDefaultPalette()) | |
107e4716 | 333 | static PyObject *_wrap_wxGLContext_CreateDefaultPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
a29cd6c0 HH |
334 | PyObject * _resultobj; |
335 | wxPalette * _result; | |
336 | wxGLContext * _arg0; | |
f786a3b2 | 337 | PyObject * _argo0 = 0; |
107e4716 | 338 | char *_kwnames[] = { "self", NULL }; |
a29cd6c0 HH |
339 | char _ptemp[128]; |
340 | ||
341 | self = self; | |
107e4716 | 342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGLContext_CreateDefaultPalette",_kwnames,&_argo0)) |
a29cd6c0 | 343 | return NULL; |
f786a3b2 HH |
344 | if (_argo0) { |
345 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
346 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLContext_p")) { | |
a29cd6c0 HH |
347 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLContext_CreateDefaultPalette. Expected _wxGLContext_p."); |
348 | return NULL; | |
349 | } | |
350 | } | |
351 | { | |
474c48f9 | 352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 353 | _result = new wxPalette (wxGLContext_CreateDefaultPalette(_arg0)); |
a29cd6c0 | 354 | |
474c48f9 RD |
355 | wxPyEndAllowThreads(__tstate); |
356 | if (PyErr_Occurred()) return NULL; | |
a29cd6c0 HH |
357 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPalette_p"); |
358 | _resultobj = Py_BuildValue("s",_ptemp); | |
359 | return _resultobj; | |
360 | } | |
361 | ||
362 | #define wxGLContext_GetPalette(_swigobj) (_swigobj->GetPalette()) | |
107e4716 | 363 | static PyObject *_wrap_wxGLContext_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
a29cd6c0 HH |
364 | PyObject * _resultobj; |
365 | wxPalette * _result; | |
366 | wxGLContext * _arg0; | |
f786a3b2 | 367 | PyObject * _argo0 = 0; |
107e4716 | 368 | char *_kwnames[] = { "self", NULL }; |
a29cd6c0 HH |
369 | char _ptemp[128]; |
370 | ||
371 | self = self; | |
107e4716 | 372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGLContext_GetPalette",_kwnames,&_argo0)) |
a29cd6c0 | 373 | return NULL; |
f786a3b2 HH |
374 | if (_argo0) { |
375 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
376 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLContext_p")) { | |
a29cd6c0 HH |
377 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLContext_GetPalette. Expected _wxGLContext_p."); |
378 | return NULL; | |
379 | } | |
380 | } | |
381 | { | |
474c48f9 | 382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 383 | _result = (wxPalette *)wxGLContext_GetPalette(_arg0); |
a29cd6c0 | 384 | |
474c48f9 RD |
385 | wxPyEndAllowThreads(__tstate); |
386 | if (PyErr_Occurred()) return NULL; | |
f786a3b2 HH |
387 | } if (_result) { |
388 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
389 | _resultobj = Py_BuildValue("s",_ptemp); | |
390 | } else { | |
391 | Py_INCREF(Py_None); | |
392 | _resultobj = Py_None; | |
393 | } | |
a29cd6c0 HH |
394 | return _resultobj; |
395 | } | |
396 | ||
397 | #define wxGLContext_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
107e4716 | 398 | static PyObject *_wrap_wxGLContext_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
a29cd6c0 HH |
399 | PyObject * _resultobj; |
400 | wxWindow * _result; | |
401 | wxGLContext * _arg0; | |
f786a3b2 | 402 | PyObject * _argo0 = 0; |
107e4716 | 403 | char *_kwnames[] = { "self", NULL }; |
a29cd6c0 HH |
404 | |
405 | self = self; | |
107e4716 | 406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGLContext_GetWindow",_kwnames,&_argo0)) |
a29cd6c0 | 407 | return NULL; |
f786a3b2 HH |
408 | if (_argo0) { |
409 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
410 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLContext_p")) { | |
a29cd6c0 HH |
411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLContext_GetWindow. Expected _wxGLContext_p."); |
412 | return NULL; | |
413 | } | |
414 | } | |
415 | { | |
474c48f9 | 416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 417 | _result = (wxWindow *)wxGLContext_GetWindow(_arg0); |
a29cd6c0 | 418 | |
474c48f9 RD |
419 | wxPyEndAllowThreads(__tstate); |
420 | if (PyErr_Occurred()) return NULL; | |
9df61a29 | 421 | }{ _resultobj = wxPyMake_wxObject(_result); } |
a29cd6c0 HH |
422 | return _resultobj; |
423 | } | |
424 | ||
a29cd6c0 HH |
425 | static void *SwigwxGLCanvasTowxWindow(void *ptr) { |
426 | wxGLCanvas *src; | |
427 | wxWindow *dest; | |
428 | src = (wxGLCanvas *) ptr; | |
429 | dest = (wxWindow *) src; | |
430 | return (void *) dest; | |
431 | } | |
432 | ||
433 | static void *SwigwxGLCanvasTowxEvtHandler(void *ptr) { | |
434 | wxGLCanvas *src; | |
435 | wxEvtHandler *dest; | |
436 | src = (wxGLCanvas *) ptr; | |
437 | dest = (wxEvtHandler *) src; | |
438 | return (void *) dest; | |
439 | } | |
440 | ||
9df61a29 RD |
441 | static void *SwigwxGLCanvasTowxObject(void *ptr) { |
442 | wxGLCanvas *src; | |
443 | wxObject *dest; | |
444 | src = (wxGLCanvas *) ptr; | |
445 | dest = (wxObject *) src; | |
446 | return (void *) dest; | |
447 | } | |
448 | ||
a29cd6c0 | 449 | #define new_wxGLCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxGLCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) |
107e4716 | 450 | static PyObject *_wrap_new_wxGLCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { |
a29cd6c0 HH |
451 | PyObject * _resultobj; |
452 | wxGLCanvas * _result; | |
453 | wxWindow * _arg0; | |
f786a3b2 | 454 | wxWindowID _arg1 = (wxWindowID ) -1; |
b68dc582 RD |
455 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
456 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
f786a3b2 | 457 | long _arg4 = (long ) 0; |
9a74fcaf | 458 | wxString * _arg5 = (wxString *) &wxPyGLCanvasNameStr; |
c368d904 | 459 | int * _arg6 = (int *) NULL; |
f786a3b2 HH |
460 | wxPalette * _arg7 = (wxPalette *) &wxNullPalette; |
461 | PyObject * _argo0 = 0; | |
54b96882 RD |
462 | wxPoint temp; |
463 | PyObject * _obj2 = 0; | |
464 | wxSize temp0; | |
465 | PyObject * _obj3 = 0; | |
9a74fcaf | 466 | PyObject * _obj5 = 0; |
c368d904 RD |
467 | int * temp1; |
468 | PyObject * _obj6 = 0; | |
f786a3b2 | 469 | PyObject * _argo7 = 0; |
107e4716 | 470 | char *_kwnames[] = { "parent","id","pos","size","style","name","attribList","palette", NULL }; |
a29cd6c0 HH |
471 | char _ptemp[128]; |
472 | ||
473 | self = self; | |
9a74fcaf | 474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOOO:new_wxGLCanvas",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5,&_obj6,&_argo7)) |
a29cd6c0 | 475 | return NULL; |
f786a3b2 HH |
476 | if (_argo0) { |
477 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
478 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
a29cd6c0 HH |
479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGLCanvas. Expected _wxWindow_p."); |
480 | return NULL; | |
481 | } | |
482 | } | |
54b96882 RD |
483 | if (_obj2) |
484 | { | |
485 | _arg2 = &temp; | |
486 | if (! wxPoint_helper(_obj2, &_arg2)) | |
a29cd6c0 | 487 | return NULL; |
54b96882 RD |
488 | } |
489 | if (_obj3) | |
490 | { | |
491 | _arg3 = &temp0; | |
492 | if (! wxSize_helper(_obj3, &_arg3)) | |
a29cd6c0 | 493 | return NULL; |
9a74fcaf RD |
494 | } |
495 | if (_obj5) | |
496 | { | |
497 | _arg5 = wxString_in_helper(_obj5); | |
498 | if (_arg5 == NULL) | |
499 | return NULL; | |
54b96882 | 500 | } |
c368d904 RD |
501 | if (_obj6) |
502 | { | |
503 | int i; | |
504 | if (PySequence_Check(_obj6)) { | |
505 | int size = PyObject_Length(_obj6); | |
506 | temp1 = new int[size+1]; // (int*)malloc((size + 1) * sizeof(int)); | |
507 | for (i = 0; i < size; i++) { | |
508 | temp1[i] = PyInt_AsLong(PySequence_GetItem(_obj6, i)); | |
a29cd6c0 | 509 | } |
c368d904 RD |
510 | temp1[size] = 0; |
511 | _arg6 = temp1; | |
a29cd6c0 | 512 | } |
c368d904 | 513 | } |
f786a3b2 HH |
514 | if (_argo7) { |
515 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
516 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxPalette_p")) { | |
a29cd6c0 HH |
517 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxGLCanvas. Expected _wxPalette_p."); |
518 | return NULL; | |
519 | } | |
520 | } | |
521 | { | |
474c48f9 | 522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 523 | _result = (wxGLCanvas *)new_wxGLCanvas(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6,*_arg7); |
a29cd6c0 | 524 | |
474c48f9 RD |
525 | wxPyEndAllowThreads(__tstate); |
526 | if (PyErr_Occurred()) return NULL; | |
f786a3b2 HH |
527 | } if (_result) { |
528 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGLCanvas_p"); | |
529 | _resultobj = Py_BuildValue("s",_ptemp); | |
530 | } else { | |
531 | Py_INCREF(Py_None); | |
532 | _resultobj = Py_None; | |
533 | } | |
9a74fcaf RD |
534 | { |
535 | if (_obj5) | |
536 | delete _arg5; | |
537 | } | |
c368d904 RD |
538 | { |
539 | delete [] _arg6; | |
540 | } | |
a29cd6c0 HH |
541 | return _resultobj; |
542 | } | |
543 | ||
0220cbc1 RD |
544 | #define new_wxGLCanvasWithContext(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxGLCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) |
545 | static PyObject *_wrap_new_wxGLCanvasWithContext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
546 | PyObject * _resultobj; | |
547 | wxGLCanvas * _result; | |
548 | wxWindow * _arg0; | |
549 | wxGLContext * _arg1 = (wxGLContext *) NULL; | |
550 | wxWindowID _arg2 = (wxWindowID ) -1; | |
551 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
552 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
553 | long _arg5 = (long ) 0; | |
9a74fcaf | 554 | wxString * _arg6 = (wxString *) &wxPyGLCanvasNameStr; |
0220cbc1 RD |
555 | int * _arg7 = (int *) NULL; |
556 | wxPalette * _arg8 = (wxPalette *) &wxNullPalette; | |
557 | PyObject * _argo0 = 0; | |
558 | PyObject * _argo1 = 0; | |
559 | wxPoint temp; | |
560 | PyObject * _obj3 = 0; | |
561 | wxSize temp0; | |
562 | PyObject * _obj4 = 0; | |
9a74fcaf | 563 | PyObject * _obj6 = 0; |
0220cbc1 RD |
564 | int * temp1; |
565 | PyObject * _obj7 = 0; | |
566 | PyObject * _argo8 = 0; | |
567 | char *_kwnames[] = { "parent","shared","id","pos","size","style","name","attribList","palette", NULL }; | |
568 | char _ptemp[128]; | |
569 | ||
570 | self = self; | |
9a74fcaf | 571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OiOOlOOO:new_wxGLCanvasWithContext",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6,&_obj7,&_argo8)) |
0220cbc1 RD |
572 | return NULL; |
573 | if (_argo0) { | |
574 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
575 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
576 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGLCanvasWithContext. Expected _wxWindow_p."); | |
577 | return NULL; | |
578 | } | |
579 | } | |
580 | if (_argo1) { | |
581 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
582 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxGLContext_p")) { | |
583 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxGLCanvasWithContext. Expected _wxGLContext_p."); | |
584 | return NULL; | |
585 | } | |
586 | } | |
587 | if (_obj3) | |
588 | { | |
589 | _arg3 = &temp; | |
590 | if (! wxPoint_helper(_obj3, &_arg3)) | |
591 | return NULL; | |
592 | } | |
593 | if (_obj4) | |
594 | { | |
595 | _arg4 = &temp0; | |
596 | if (! wxSize_helper(_obj4, &_arg4)) | |
597 | return NULL; | |
9a74fcaf RD |
598 | } |
599 | if (_obj6) | |
600 | { | |
601 | _arg6 = wxString_in_helper(_obj6); | |
602 | if (_arg6 == NULL) | |
603 | return NULL; | |
0220cbc1 RD |
604 | } |
605 | if (_obj7) | |
606 | { | |
607 | int i; | |
608 | if (PySequence_Check(_obj7)) { | |
609 | int size = PyObject_Length(_obj7); | |
610 | temp1 = new int[size+1]; // (int*)malloc((size + 1) * sizeof(int)); | |
611 | for (i = 0; i < size; i++) { | |
612 | temp1[i] = PyInt_AsLong(PySequence_GetItem(_obj7, i)); | |
613 | } | |
614 | temp1[size] = 0; | |
615 | _arg7 = temp1; | |
616 | } | |
617 | } | |
618 | if (_argo8) { | |
619 | if (_argo8 == Py_None) { _arg8 = NULL; } | |
620 | else if (SWIG_GetPtrObj(_argo8,(void **) &_arg8,"_wxPalette_p")) { | |
621 | PyErr_SetString(PyExc_TypeError,"Type error in argument 9 of new_wxGLCanvasWithContext. Expected _wxPalette_p."); | |
622 | return NULL; | |
623 | } | |
624 | } | |
625 | { | |
474c48f9 | 626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 627 | _result = (wxGLCanvas *)new_wxGLCanvasWithContext(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7,*_arg8); |
0220cbc1 | 628 | |
474c48f9 RD |
629 | wxPyEndAllowThreads(__tstate); |
630 | if (PyErr_Occurred()) return NULL; | |
0220cbc1 RD |
631 | } if (_result) { |
632 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGLCanvas_p"); | |
633 | _resultobj = Py_BuildValue("s",_ptemp); | |
634 | } else { | |
635 | Py_INCREF(Py_None); | |
636 | _resultobj = Py_None; | |
637 | } | |
9a74fcaf RD |
638 | { |
639 | if (_obj6) | |
640 | delete _arg6; | |
641 | } | |
0220cbc1 RD |
642 | { |
643 | delete [] _arg7; | |
644 | } | |
645 | return _resultobj; | |
646 | } | |
647 | ||
a29cd6c0 | 648 | #define wxGLCanvas_SetCurrent(_swigobj) (_swigobj->SetCurrent()) |
107e4716 | 649 | static PyObject *_wrap_wxGLCanvas_SetCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { |
a29cd6c0 HH |
650 | PyObject * _resultobj; |
651 | wxGLCanvas * _arg0; | |
f786a3b2 | 652 | PyObject * _argo0 = 0; |
107e4716 | 653 | char *_kwnames[] = { "self", NULL }; |
a29cd6c0 HH |
654 | |
655 | self = self; | |
107e4716 | 656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGLCanvas_SetCurrent",_kwnames,&_argo0)) |
a29cd6c0 | 657 | return NULL; |
f786a3b2 HH |
658 | if (_argo0) { |
659 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
660 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLCanvas_p")) { | |
a29cd6c0 HH |
661 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLCanvas_SetCurrent. Expected _wxGLCanvas_p."); |
662 | return NULL; | |
663 | } | |
664 | } | |
665 | { | |
474c48f9 | 666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 667 | wxGLCanvas_SetCurrent(_arg0); |
a29cd6c0 | 668 | |
474c48f9 RD |
669 | wxPyEndAllowThreads(__tstate); |
670 | if (PyErr_Occurred()) return NULL; | |
a29cd6c0 HH |
671 | } Py_INCREF(Py_None); |
672 | _resultobj = Py_None; | |
673 | return _resultobj; | |
674 | } | |
675 | ||
676 | #define wxGLCanvas_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
107e4716 | 677 | static PyObject *_wrap_wxGLCanvas_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
a29cd6c0 HH |
678 | PyObject * _resultobj; |
679 | wxGLCanvas * _arg0; | |
680 | char * _arg1; | |
f786a3b2 | 681 | PyObject * _argo0 = 0; |
107e4716 | 682 | char *_kwnames[] = { "self","colour", NULL }; |
a29cd6c0 HH |
683 | |
684 | self = self; | |
107e4716 | 685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os:wxGLCanvas_SetColour",_kwnames,&_argo0,&_arg1)) |
a29cd6c0 | 686 | return NULL; |
f786a3b2 HH |
687 | if (_argo0) { |
688 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
689 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLCanvas_p")) { | |
a29cd6c0 HH |
690 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLCanvas_SetColour. Expected _wxGLCanvas_p."); |
691 | return NULL; | |
692 | } | |
693 | } | |
694 | { | |
474c48f9 | 695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 696 | wxGLCanvas_SetColour(_arg0,_arg1); |
a29cd6c0 | 697 | |
474c48f9 RD |
698 | wxPyEndAllowThreads(__tstate); |
699 | if (PyErr_Occurred()) return NULL; | |
a29cd6c0 HH |
700 | } Py_INCREF(Py_None); |
701 | _resultobj = Py_None; | |
702 | return _resultobj; | |
703 | } | |
704 | ||
705 | #define wxGLCanvas_SwapBuffers(_swigobj) (_swigobj->SwapBuffers()) | |
107e4716 | 706 | static PyObject *_wrap_wxGLCanvas_SwapBuffers(PyObject *self, PyObject *args, PyObject *kwargs) { |
a29cd6c0 HH |
707 | PyObject * _resultobj; |
708 | wxGLCanvas * _arg0; | |
f786a3b2 | 709 | PyObject * _argo0 = 0; |
107e4716 | 710 | char *_kwnames[] = { "self", NULL }; |
a29cd6c0 HH |
711 | |
712 | self = self; | |
107e4716 | 713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGLCanvas_SwapBuffers",_kwnames,&_argo0)) |
a29cd6c0 | 714 | return NULL; |
f786a3b2 HH |
715 | if (_argo0) { |
716 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
717 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLCanvas_p")) { | |
a29cd6c0 HH |
718 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLCanvas_SwapBuffers. Expected _wxGLCanvas_p."); |
719 | return NULL; | |
720 | } | |
721 | } | |
722 | { | |
474c48f9 | 723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 724 | wxGLCanvas_SwapBuffers(_arg0); |
a29cd6c0 | 725 | |
474c48f9 RD |
726 | wxPyEndAllowThreads(__tstate); |
727 | if (PyErr_Occurred()) return NULL; | |
a29cd6c0 HH |
728 | } Py_INCREF(Py_None); |
729 | _resultobj = Py_None; | |
730 | return _resultobj; | |
731 | } | |
732 | ||
733 | #define wxGLCanvas_GetContext(_swigobj) (_swigobj->GetContext()) | |
107e4716 | 734 | static PyObject *_wrap_wxGLCanvas_GetContext(PyObject *self, PyObject *args, PyObject *kwargs) { |
a29cd6c0 HH |
735 | PyObject * _resultobj; |
736 | wxGLContext * _result; | |
737 | wxGLCanvas * _arg0; | |
f786a3b2 | 738 | PyObject * _argo0 = 0; |
107e4716 | 739 | char *_kwnames[] = { "self", NULL }; |
a29cd6c0 HH |
740 | char _ptemp[128]; |
741 | ||
742 | self = self; | |
107e4716 | 743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGLCanvas_GetContext",_kwnames,&_argo0)) |
a29cd6c0 | 744 | return NULL; |
f786a3b2 HH |
745 | if (_argo0) { |
746 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
747 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLCanvas_p")) { | |
a29cd6c0 HH |
748 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLCanvas_GetContext. Expected _wxGLCanvas_p."); |
749 | return NULL; | |
750 | } | |
751 | } | |
752 | { | |
474c48f9 | 753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 754 | _result = (wxGLContext *)wxGLCanvas_GetContext(_arg0); |
a29cd6c0 | 755 | |
474c48f9 RD |
756 | wxPyEndAllowThreads(__tstate); |
757 | if (PyErr_Occurred()) return NULL; | |
f786a3b2 HH |
758 | } if (_result) { |
759 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGLContext_p"); | |
760 | _resultobj = Py_BuildValue("s",_ptemp); | |
761 | } else { | |
762 | Py_INCREF(Py_None); | |
763 | _resultobj = Py_None; | |
764 | } | |
a29cd6c0 HH |
765 | return _resultobj; |
766 | } | |
767 | ||
768 | static PyMethodDef glcanvascMethods[] = { | |
107e4716 RD |
769 | { "wxGLCanvas_GetContext", (PyCFunction) _wrap_wxGLCanvas_GetContext, METH_VARARGS | METH_KEYWORDS }, |
770 | { "wxGLCanvas_SwapBuffers", (PyCFunction) _wrap_wxGLCanvas_SwapBuffers, METH_VARARGS | METH_KEYWORDS }, | |
771 | { "wxGLCanvas_SetColour", (PyCFunction) _wrap_wxGLCanvas_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
772 | { "wxGLCanvas_SetCurrent", (PyCFunction) _wrap_wxGLCanvas_SetCurrent, METH_VARARGS | METH_KEYWORDS }, | |
0220cbc1 | 773 | { "new_wxGLCanvasWithContext", (PyCFunction) _wrap_new_wxGLCanvasWithContext, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
774 | { "new_wxGLCanvas", (PyCFunction) _wrap_new_wxGLCanvas, METH_VARARGS | METH_KEYWORDS }, |
775 | { "wxGLContext_GetWindow", (PyCFunction) _wrap_wxGLContext_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
776 | { "wxGLContext_GetPalette", (PyCFunction) _wrap_wxGLContext_GetPalette, METH_VARARGS | METH_KEYWORDS }, | |
777 | { "wxGLContext_CreateDefaultPalette", (PyCFunction) _wrap_wxGLContext_CreateDefaultPalette, METH_VARARGS | METH_KEYWORDS }, | |
778 | { "wxGLContext_SetupPalette", (PyCFunction) _wrap_wxGLContext_SetupPalette, METH_VARARGS | METH_KEYWORDS }, | |
779 | { "wxGLContext_SetupPixelFormat", (PyCFunction) _wrap_wxGLContext_SetupPixelFormat, METH_VARARGS | METH_KEYWORDS }, | |
780 | { "wxGLContext_SwapBuffers", (PyCFunction) _wrap_wxGLContext_SwapBuffers, METH_VARARGS | METH_KEYWORDS }, | |
781 | { "wxGLContext_SetColour", (PyCFunction) _wrap_wxGLContext_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
782 | { "wxGLContext_SetCurrent", (PyCFunction) _wrap_wxGLContext_SetCurrent, METH_VARARGS | METH_KEYWORDS }, | |
783 | { "delete_wxGLContext", (PyCFunction) _wrap_delete_wxGLContext, METH_VARARGS | METH_KEYWORDS }, | |
784 | { "new_wxGLContext", (PyCFunction) _wrap_new_wxGLContext, METH_VARARGS | METH_KEYWORDS }, | |
a29cd6c0 HH |
785 | { NULL, NULL } |
786 | }; | |
f786a3b2 HH |
787 | #ifdef __cplusplus |
788 | } | |
789 | #endif | |
790 | /* | |
791 | * This table is used by the pointer type-checker | |
792 | */ | |
793 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
f786a3b2 | 794 | { "_signed_long","_long",0}, |
54b96882 | 795 | { "_wxPrintQuality","_wxCoord",0}, |
f786a3b2 HH |
796 | { "_wxPrintQuality","_int",0}, |
797 | { "_wxPrintQuality","_signed_int",0}, | |
798 | { "_wxPrintQuality","_unsigned_int",0}, | |
799 | { "_wxPrintQuality","_wxWindowID",0}, | |
800 | { "_wxPrintQuality","_uint",0}, | |
801 | { "_wxPrintQuality","_EBool",0}, | |
802 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 803 | { "_wxPrintQuality","_time_t",0}, |
f786a3b2 | 804 | { "_byte","_unsigned_char",0}, |
f786a3b2 HH |
805 | { "_long","_unsigned_long",0}, |
806 | { "_long","_signed_long",0}, | |
54b96882 | 807 | { "_size_t","_wxCoord",0}, |
f786a3b2 | 808 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 809 | { "_size_t","_time_t",0}, |
f786a3b2 HH |
810 | { "_size_t","_unsigned_int",0}, |
811 | { "_size_t","_int",0}, | |
812 | { "_size_t","_wxWindowID",0}, | |
813 | { "_size_t","_uint",0}, | |
54b96882 | 814 | { "_uint","_wxCoord",0}, |
f786a3b2 | 815 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 816 | { "_uint","_time_t",0}, |
f786a3b2 HH |
817 | { "_uint","_size_t",0}, |
818 | { "_uint","_unsigned_int",0}, | |
819 | { "_uint","_int",0}, | |
820 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 821 | { "_wxChar","_char",0}, |
f6bcfd97 | 822 | { "_char","_wxChar",0}, |
32c988a3 | 823 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
54b96882 | 824 | { "_EBool","_wxCoord",0}, |
f786a3b2 HH |
825 | { "_EBool","_wxPrintQuality",0}, |
826 | { "_EBool","_signed_int",0}, | |
827 | { "_EBool","_int",0}, | |
828 | { "_EBool","_wxWindowID",0}, | |
f786a3b2 | 829 | { "_unsigned_long","_long",0}, |
32c988a3 | 830 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
54b96882 | 831 | { "_signed_int","_wxCoord",0}, |
f786a3b2 HH |
832 | { "_signed_int","_wxPrintQuality",0}, |
833 | { "_signed_int","_EBool",0}, | |
834 | { "_signed_int","_wxWindowID",0}, | |
835 | { "_signed_int","_int",0}, | |
2cd2fac8 | 836 | { "_WXTYPE","_wxDateTime_t",0}, |
f786a3b2 HH |
837 | { "_WXTYPE","_short",0}, |
838 | { "_WXTYPE","_signed_short",0}, | |
839 | { "_WXTYPE","_unsigned_short",0}, | |
2cd2fac8 | 840 | { "_unsigned_short","_wxDateTime_t",0}, |
f786a3b2 HH |
841 | { "_unsigned_short","_WXTYPE",0}, |
842 | { "_unsigned_short","_short",0}, | |
9df61a29 | 843 | { "_wxObject","_wxGLCanvas",SwigwxGLCanvasTowxObject}, |
9df61a29 | 844 | { "_wxObject","_wxGLContext",SwigwxGLContextTowxObject}, |
f786a3b2 HH |
845 | { "_signed_short","_WXTYPE",0}, |
846 | { "_signed_short","_short",0}, | |
f786a3b2 | 847 | { "_unsigned_char","_byte",0}, |
54b96882 | 848 | { "_unsigned_int","_wxCoord",0}, |
f786a3b2 | 849 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 850 | { "_unsigned_int","_time_t",0}, |
f786a3b2 HH |
851 | { "_unsigned_int","_size_t",0}, |
852 | { "_unsigned_int","_uint",0}, | |
853 | { "_unsigned_int","_wxWindowID",0}, | |
854 | { "_unsigned_int","_int",0}, | |
2cd2fac8 | 855 | { "_short","_wxDateTime_t",0}, |
f786a3b2 HH |
856 | { "_short","_WXTYPE",0}, |
857 | { "_short","_unsigned_short",0}, | |
858 | { "_short","_signed_short",0}, | |
54b96882 | 859 | { "_wxWindowID","_wxCoord",0}, |
f786a3b2 | 860 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 861 | { "_wxWindowID","_time_t",0}, |
f786a3b2 HH |
862 | { "_wxWindowID","_size_t",0}, |
863 | { "_wxWindowID","_EBool",0}, | |
864 | { "_wxWindowID","_uint",0}, | |
865 | { "_wxWindowID","_int",0}, | |
866 | { "_wxWindowID","_signed_int",0}, | |
867 | { "_wxWindowID","_unsigned_int",0}, | |
54b96882 | 868 | { "_int","_wxCoord",0}, |
f786a3b2 | 869 | { "_int","_wxPrintQuality",0}, |
c368d904 | 870 | { "_int","_time_t",0}, |
f786a3b2 HH |
871 | { "_int","_size_t",0}, |
872 | { "_int","_EBool",0}, | |
873 | { "_int","_uint",0}, | |
874 | { "_int","_wxWindowID",0}, | |
875 | { "_int","_unsigned_int",0}, | |
876 | { "_int","_signed_int",0}, | |
2cd2fac8 RD |
877 | { "_wxDateTime_t","_unsigned_short",0}, |
878 | { "_wxDateTime_t","_short",0}, | |
879 | { "_wxDateTime_t","_WXTYPE",0}, | |
c368d904 RD |
880 | { "_time_t","_wxCoord",0}, |
881 | { "_time_t","_wxPrintQuality",0}, | |
882 | { "_time_t","_unsigned_int",0}, | |
883 | { "_time_t","_int",0}, | |
884 | { "_time_t","_wxWindowID",0}, | |
885 | { "_time_t","_uint",0}, | |
886 | { "_time_t","_size_t",0}, | |
54b96882 RD |
887 | { "_wxCoord","_int",0}, |
888 | { "_wxCoord","_signed_int",0}, | |
889 | { "_wxCoord","_unsigned_int",0}, | |
890 | { "_wxCoord","_wxWindowID",0}, | |
891 | { "_wxCoord","_uint",0}, | |
892 | { "_wxCoord","_EBool",0}, | |
893 | { "_wxCoord","_size_t",0}, | |
c368d904 | 894 | { "_wxCoord","_time_t",0}, |
54b96882 | 895 | { "_wxCoord","_wxPrintQuality",0}, |
f786a3b2 | 896 | { "_wxEvtHandler","_wxGLCanvas",SwigwxGLCanvasTowxEvtHandler}, |
f786a3b2 | 897 | { "_wxWindow","_wxGLCanvas",SwigwxGLCanvasTowxWindow}, |
f786a3b2 HH |
898 | {0,0,0}}; |
899 | ||
a29cd6c0 HH |
900 | static PyObject *SWIG_globals; |
901 | #ifdef __cplusplus | |
902 | extern "C" | |
903 | #endif | |
f786a3b2 | 904 | SWIGEXPORT(void) initglcanvasc() { |
a29cd6c0 HH |
905 | PyObject *m, *d; |
906 | SWIG_globals = SWIG_newvarlink(); | |
907 | m = Py_InitModule("glcanvasc", glcanvascMethods); | |
908 | d = PyModule_GetDict(m); | |
262e41eb RD |
909 | PyDict_SetItemString(d,"WX_GL_RGBA", PyInt_FromLong((long) WX_GL_RGBA)); |
910 | PyDict_SetItemString(d,"WX_GL_BUFFER_SIZE", PyInt_FromLong((long) WX_GL_BUFFER_SIZE)); | |
911 | PyDict_SetItemString(d,"WX_GL_LEVEL", PyInt_FromLong((long) WX_GL_LEVEL)); | |
912 | PyDict_SetItemString(d,"WX_GL_DOUBLEBUFFER", PyInt_FromLong((long) WX_GL_DOUBLEBUFFER)); | |
913 | PyDict_SetItemString(d,"WX_GL_STEREO", PyInt_FromLong((long) WX_GL_STEREO)); | |
914 | PyDict_SetItemString(d,"WX_GL_AUX_BUFFERS", PyInt_FromLong((long) WX_GL_AUX_BUFFERS)); | |
915 | PyDict_SetItemString(d,"WX_GL_MIN_RED", PyInt_FromLong((long) WX_GL_MIN_RED)); | |
916 | PyDict_SetItemString(d,"WX_GL_MIN_GREEN", PyInt_FromLong((long) WX_GL_MIN_GREEN)); | |
917 | PyDict_SetItemString(d,"WX_GL_MIN_BLUE", PyInt_FromLong((long) WX_GL_MIN_BLUE)); | |
918 | PyDict_SetItemString(d,"WX_GL_MIN_ALPHA", PyInt_FromLong((long) WX_GL_MIN_ALPHA)); | |
919 | PyDict_SetItemString(d,"WX_GL_DEPTH_SIZE", PyInt_FromLong((long) WX_GL_DEPTH_SIZE)); | |
920 | PyDict_SetItemString(d,"WX_GL_STENCIL_SIZE", PyInt_FromLong((long) WX_GL_STENCIL_SIZE)); | |
921 | PyDict_SetItemString(d,"WX_GL_MIN_ACCUM_RED", PyInt_FromLong((long) WX_GL_MIN_ACCUM_RED)); | |
922 | PyDict_SetItemString(d,"WX_GL_MIN_ACCUM_GREEN", PyInt_FromLong((long) WX_GL_MIN_ACCUM_GREEN)); | |
923 | PyDict_SetItemString(d,"WX_GL_MIN_ACCUM_BLUE", PyInt_FromLong((long) WX_GL_MIN_ACCUM_BLUE)); | |
924 | PyDict_SetItemString(d,"WX_GL_MIN_ACCUM_ALPHA", PyInt_FromLong((long) WX_GL_MIN_ACCUM_ALPHA)); | |
a29cd6c0 HH |
925 | |
926 | ||
3a70a282 RD |
927 | wxClassInfo::CleanUpClasses(); |
928 | wxClassInfo::InitializeClasses(); | |
a29cd6c0 | 929 | |
f786a3b2 HH |
930 | { |
931 | int i; | |
932 | for (i = 0; _swig_mapping[i].n1; i++) | |
933 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
934 | } | |
a29cd6c0 | 935 | } |