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