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