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