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