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