All platforms have the same GLCanvas API now
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45411 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -97,19 +97,21 @@ class GLCanvas(_core.Window):
|
||||
__repr__ = _swig_repr
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""
|
||||
__init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
|
||||
Size size=DefaultSize, long style=0, String name=GLCanvasNameStr,
|
||||
int attribList=None, Palette palette=wxNullPalette) -> GLCanvas
|
||||
__init__(self, Window parent, int id=-1, int attribList=None, Point pos=DefaultPosition,
|
||||
Size size=DefaultSize,
|
||||
long style=0, String name=GLCanvasNameStr, Palette palette=wxNullPalette) -> GLCanvas
|
||||
"""
|
||||
_glcanvas.GLCanvas_swiginit(self,_glcanvas.new_GLCanvas(*args, **kwargs))
|
||||
self._setOORInfo(self)
|
||||
|
||||
def SetCurrent(*args):
|
||||
def Create(*args, **kwargs):
|
||||
"""
|
||||
SetCurrent(self)
|
||||
SetCurrent(self, GLContext RC)
|
||||
Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
|
||||
Size size=DefaultSize, long style=0, String name=wxGLCanvasName,
|
||||
int attribList=None,
|
||||
Palette palette=wxNullPalette) -> bool
|
||||
"""
|
||||
return _glcanvas.GLCanvas_SetCurrent(*args)
|
||||
return _glcanvas.GLCanvas_Create(*args, **kwargs)
|
||||
|
||||
def SetColour(*args, **kwargs):
|
||||
"""SetColour(self, String colour)"""
|
||||
@@ -123,6 +125,13 @@ class GLCanvas(_core.Window):
|
||||
"""GetContext(self) -> GLContext"""
|
||||
return _glcanvas.GLCanvas_GetContext(*args, **kwargs)
|
||||
|
||||
def SetCurrent(*args):
|
||||
"""
|
||||
SetCurrent(self, GLContext context)
|
||||
SetCurrent(self)
|
||||
"""
|
||||
return _glcanvas.GLCanvas_SetCurrent(*args)
|
||||
|
||||
Context = property(GetContext,doc="See `GetContext`")
|
||||
_glcanvas.GLCanvas_swigregister(GLCanvas)
|
||||
|
||||
|
Reference in New Issue
Block a user