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