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