-class wxGLCanvasPtr(wxScrolledWindowPtr):
- def __init__(self,this):
- self.this = this
- self.thisown = 0
- def SetCurrent(self, *_args, **_kwargs):
- val = apply(glcanvasc.wxGLCanvas_SetCurrent,(self,) + _args, _kwargs)
- return val
- def SetColour(self, *_args, **_kwargs):
- val = apply(glcanvasc.wxGLCanvas_SetColour,(self,) + _args, _kwargs)
- return val
- def SwapBuffers(self, *_args, **_kwargs):
- val = apply(glcanvasc.wxGLCanvas_SwapBuffers,(self,) + _args, _kwargs)
- return val
- def GetContext(self, *_args, **_kwargs):
- val = apply(glcanvasc.wxGLCanvas_GetContext,(self,) + _args, _kwargs)
- if val: val = wxGLContextPtr(val)
- return val
- def __repr__(self):
- return "<C wxGLCanvas instance at %s>" % (self.this,)
-class wxGLCanvas(wxGLCanvasPtr):
- def __init__(self,*_args,**_kwargs):
- self.this = apply(glcanvasc.new_wxGLCanvas,_args,_kwargs)
- self.thisown = 1
- #wx._StdWindowCallbacks(self)
-
+ def GetContext(*args, **kwargs):
+ """GetContext(self) -> GLContext"""
+ return _glcanvas.GLCanvas_GetContext(*args, **kwargs)