- self.thisown = 0
- def SetCurrent(self, *_args, **_kwargs):
- val = glcanvasc.wxGLCanvas_SetCurrent(self, *_args, **_kwargs)
- return val
- def SetColour(self, *_args, **_kwargs):
- val = glcanvasc.wxGLCanvas_SetColour(self, *_args, **_kwargs)
- return val
- def SwapBuffers(self, *_args, **_kwargs):
- val = glcanvasc.wxGLCanvas_SwapBuffers(self, *_args, **_kwargs)
- return val
- def GetContext(self, *_args, **_kwargs):
- val = glcanvasc.wxGLCanvas_GetContext(self, *_args, **_kwargs)
- if val: val = wxGLContextPtr(val)
- return val
- def __repr__(self):
- return "<%s.%s instance; proxy of C++ wxGLCanvas instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
-class wxGLCanvas(wxGLCanvasPtr):
- def __init__(self,*_args,**_kwargs):
- self.this = glcanvasc.new_wxGLCanvas(*_args,**_kwargs)
+ if not hasattr(self,"thisown"): self.thisown = 0
+ self.__class__ = GLContext
+_glcanvas.GLContext_swigregister(GLContextPtr)
+
+WX_GL_RGBA = _glcanvas.WX_GL_RGBA
+WX_GL_BUFFER_SIZE = _glcanvas.WX_GL_BUFFER_SIZE
+WX_GL_LEVEL = _glcanvas.WX_GL_LEVEL
+WX_GL_DOUBLEBUFFER = _glcanvas.WX_GL_DOUBLEBUFFER
+WX_GL_STEREO = _glcanvas.WX_GL_STEREO
+WX_GL_AUX_BUFFERS = _glcanvas.WX_GL_AUX_BUFFERS
+WX_GL_MIN_RED = _glcanvas.WX_GL_MIN_RED
+WX_GL_MIN_GREEN = _glcanvas.WX_GL_MIN_GREEN
+WX_GL_MIN_BLUE = _glcanvas.WX_GL_MIN_BLUE
+WX_GL_MIN_ALPHA = _glcanvas.WX_GL_MIN_ALPHA
+WX_GL_DEPTH_SIZE = _glcanvas.WX_GL_DEPTH_SIZE
+WX_GL_STENCIL_SIZE = _glcanvas.WX_GL_STENCIL_SIZE
+WX_GL_MIN_ACCUM_RED = _glcanvas.WX_GL_MIN_ACCUM_RED
+WX_GL_MIN_ACCUM_GREEN = _glcanvas.WX_GL_MIN_ACCUM_GREEN
+WX_GL_MIN_ACCUM_BLUE = _glcanvas.WX_GL_MIN_ACCUM_BLUE
+WX_GL_MIN_ACCUM_ALPHA = _glcanvas.WX_GL_MIN_ACCUM_ALPHA
+class GLCanvas(core.Window):
+ def __init__(self, *args, **kwargs):
+ newobj = _glcanvas.new_GLCanvas(*args, **kwargs)
+ self.this = newobj.this