2006-03-14 00:06:32 -05:00
|
|
|
# This file was created automatically by SWIG 1.3.29.
|
2003-11-12 16:34:20 -05:00
|
|
|
# Don't modify this file, modify the SWIG interface instead.
|
1999-08-24 03:15:52 -04:00
|
|
|
|
2004-05-14 18:18:25 -04:00
|
|
|
"""
|
|
|
|
`GLCanvas` provides an OpenGL Context on a `wx.Window`.
|
|
|
|
"""
|
|
|
|
|
2003-11-12 16:34:20 -05:00
|
|
|
import _glcanvas
|
2006-03-14 00:06:32 -05:00
|
|
|
import new
|
|
|
|
new_instancemethod = new.instancemethod
|
2004-12-23 16:34:11 -05:00
|
|
|
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
|
2006-03-14 00:06:32 -05:00
|
|
|
if (name == "thisown"): return self.this.own(value)
|
2004-12-23 16:34:11 -05:00
|
|
|
if (name == "this"):
|
2006-03-14 00:06:32 -05:00
|
|
|
if type(value).__name__ == 'PySwigObject':
|
|
|
|
self.__dict__[name] = value
|
2004-12-23 16:34:11 -05:00
|
|
|
return
|
|
|
|
method = class_type.__swig_setmethods__.get(name,None)
|
|
|
|
if method: return method(self,value)
|
2006-03-14 00:06:32 -05:00
|
|
|
if (not static) or hasattr(self,name):
|
2004-12-23 16:34:11 -05:00
|
|
|
self.__dict__[name] = value
|
|
|
|
else:
|
|
|
|
raise AttributeError("You cannot add attributes to %s" % self)
|
|
|
|
|
|
|
|
def _swig_setattr(self,class_type,name,value):
|
|
|
|
return _swig_setattr_nondynamic(self,class_type,name,value,0)
|
|
|
|
|
|
|
|
def _swig_getattr(self,class_type,name):
|
2006-03-14 00:06:32 -05:00
|
|
|
if (name == "thisown"): return self.this.own()
|
2004-12-23 16:34:11 -05:00
|
|
|
method = class_type.__swig_getmethods__.get(name,None)
|
|
|
|
if method: return method(self)
|
|
|
|
raise AttributeError,name
|
|
|
|
|
2006-03-14 00:06:32 -05:00
|
|
|
def _swig_repr(self):
|
|
|
|
try: strthis = "proxy of " + self.this.__repr__()
|
|
|
|
except: strthis = ""
|
|
|
|
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
|
|
|
|
|
2004-12-23 16:34:11 -05:00
|
|
|
import types
|
|
|
|
try:
|
|
|
|
_object = types.ObjectType
|
|
|
|
_newclass = 1
|
|
|
|
except AttributeError:
|
|
|
|
class _object : pass
|
|
|
|
_newclass = 0
|
|
|
|
del types
|
|
|
|
|
|
|
|
|
|
|
|
def _swig_setattr_nondynamic_method(set):
|
|
|
|
def set_attr(self,name,value):
|
2006-03-14 00:06:32 -05:00
|
|
|
if (name == "thisown"): return self.this.own(value)
|
|
|
|
if hasattr(self,name) or (name == "this"):
|
2004-12-23 16:34:11 -05:00
|
|
|
set(self,name,value)
|
|
|
|
else:
|
|
|
|
raise AttributeError("You cannot add attributes to %s" % self)
|
|
|
|
return set_attr
|
|
|
|
|
|
|
|
|
2004-04-25 03:03:15 -04:00
|
|
|
import _core
|
|
|
|
wx = _core
|
2004-05-01 23:13:30 -04:00
|
|
|
__docfilter__ = wx.__DocFilter(globals())
|
2004-04-25 03:03:15 -04:00
|
|
|
class GLContext(_core.Object):
|
2004-12-23 16:34:11 -05:00
|
|
|
"""Proxy of C++ GLContext class"""
|
2006-03-14 00:06:32 -05:00
|
|
|
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
|
|
|
|
__repr__ = _swig_repr
|
|
|
|
def __init__(self, *args, **kwargs):
|
2006-09-07 23:38:52 -04:00
|
|
|
"""__init__(self, GLCanvas win, GLContext other=None) -> GLContext"""
|
2006-03-14 00:06:32 -05:00
|
|
|
_glcanvas.GLContext_swiginit(self,_glcanvas.new_GLContext(*args, **kwargs))
|
|
|
|
__swig_destroy__ = _glcanvas.delete_GLContext
|
|
|
|
__del__ = lambda self : None;
|
2003-11-19 13:38:16 -05:00
|
|
|
def SetCurrent(*args, **kwargs):
|
2006-09-07 23:38:52 -04:00
|
|
|
"""SetCurrent(self, GLCanvas win)"""
|
2003-11-19 13:38:16 -05:00
|
|
|
return _glcanvas.GLContext_SetCurrent(*args, **kwargs)
|
|
|
|
|
2006-05-18 22:02:29 -04:00
|
|
|
_glcanvas.GLContext_swigregister(GLContext)
|
2003-12-19 20:17:52 -05:00
|
|
|
cvar = _glcanvas.cvar
|
|
|
|
GLCanvasNameStr = cvar.GLCanvasNameStr
|
2003-11-12 16:34:20 -05:00
|
|
|
|
|
|
|
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
|
2004-04-25 03:03:15 -04:00
|
|
|
class GLCanvas(_core.Window):
|
2004-12-23 16:34:11 -05:00
|
|
|
"""Proxy of C++ GLCanvas class"""
|
2006-03-14 00:06:32 -05:00
|
|
|
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
|
|
|
|
__repr__ = _swig_repr
|
|
|
|
def __init__(self, *args, **kwargs):
|
2003-11-26 20:17:54 -05:00
|
|
|
"""
|
2004-04-24 20:47:48 -04:00
|
|
|
__init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
|
2003-12-19 20:17:52 -05:00
|
|
|
Size size=DefaultSize, long style=0, String name=GLCanvasNameStr,
|
2006-05-17 21:22:06 -04:00
|
|
|
int attribList=None, Palette palette=wxNullPalette) -> GLCanvas
|
2003-11-26 20:17:54 -05:00
|
|
|
"""
|
2006-03-14 00:06:32 -05:00
|
|
|
_glcanvas.GLCanvas_swiginit(self,_glcanvas.new_GLCanvas(*args, **kwargs))
|
2001-10-12 19:26:38 -04:00
|
|
|
self._setOORInfo(self)
|
2003-11-19 13:38:16 -05:00
|
|
|
|
2006-10-23 21:08:17 -04:00
|
|
|
def SetCurrent(*args):
|
|
|
|
"""
|
|
|
|
SetCurrent(self)
|
|
|
|
SetCurrent(self, GLContext RC)
|
|
|
|
"""
|
|
|
|
return _glcanvas.GLCanvas_SetCurrent(*args)
|
2003-11-19 13:38:16 -05:00
|
|
|
|
|
|
|
def SetColour(*args, **kwargs):
|
2004-04-24 20:47:48 -04:00
|
|
|
"""SetColour(self, String colour)"""
|
2003-11-19 13:38:16 -05:00
|
|
|
return _glcanvas.GLCanvas_SetColour(*args, **kwargs)
|
|
|
|
|
|
|
|
def SwapBuffers(*args, **kwargs):
|
2004-04-24 20:47:48 -04:00
|
|
|
"""SwapBuffers(self)"""
|
2003-11-19 13:38:16 -05:00
|
|
|
return _glcanvas.GLCanvas_SwapBuffers(*args, **kwargs)
|
|
|
|
|
|
|
|
def GetContext(*args, **kwargs):
|
2004-04-24 20:47:48 -04:00
|
|
|
"""GetContext(self) -> GLContext"""
|
2003-11-19 13:38:16 -05:00
|
|
|
return _glcanvas.GLCanvas_GetContext(*args, **kwargs)
|
|
|
|
|
|
|
|
def SetupPixelFormat(*args, **kwargs):
|
2004-04-24 20:47:48 -04:00
|
|
|
"""SetupPixelFormat(self, int attribList=None)"""
|
2003-11-19 13:38:16 -05:00
|
|
|
return _glcanvas.GLCanvas_SetupPixelFormat(*args, **kwargs)
|
|
|
|
|
|
|
|
def SetupPalette(*args, **kwargs):
|
2006-05-17 21:22:06 -04:00
|
|
|
"""SetupPalette(self, Palette palette)"""
|
2003-11-19 13:38:16 -05:00
|
|
|
return _glcanvas.GLCanvas_SetupPalette(*args, **kwargs)
|
|
|
|
|
|
|
|
def CreateDefaultPalette(*args, **kwargs):
|
2006-05-17 21:22:06 -04:00
|
|
|
"""CreateDefaultPalette(self) -> Palette"""
|
2003-11-19 13:38:16 -05:00
|
|
|
return _glcanvas.GLCanvas_CreateDefaultPalette(*args, **kwargs)
|
|
|
|
|
|
|
|
def GetPalette(*args, **kwargs):
|
2006-05-17 21:22:06 -04:00
|
|
|
"""GetPalette(self) -> Palette"""
|
2003-11-19 13:38:16 -05:00
|
|
|
return _glcanvas.GLCanvas_GetPalette(*args, **kwargs)
|
|
|
|
|
2006-09-25 20:26:35 -04:00
|
|
|
Context = property(GetContext,doc="See `GetContext`")
|
2006-05-18 22:02:29 -04:00
|
|
|
_glcanvas.GLCanvas_swigregister(GLCanvas)
|
1999-08-24 03:15:52 -04:00
|
|
|
|
2004-01-23 17:52:06 -05:00
|
|
|
def GLCanvasWithContext(*args, **kwargs):
|
2003-11-26 20:17:54 -05:00
|
|
|
"""
|
2004-01-23 17:52:06 -05:00
|
|
|
GLCanvasWithContext(Window parent, GLContext shared=None, int id=-1, Point pos=DefaultPosition,
|
2003-11-26 20:17:54 -05:00
|
|
|
Size size=DefaultSize,
|
2003-12-19 20:17:52 -05:00
|
|
|
long style=0, String name=GLCanvasNameStr,
|
2006-05-17 21:22:06 -04:00
|
|
|
int attribList=None, Palette palette=wxNullPalette) -> GLCanvas
|
2003-11-26 20:17:54 -05:00
|
|
|
"""
|
2004-01-23 17:52:06 -05:00
|
|
|
val = _glcanvas.new_GLCanvasWithContext(*args, **kwargs)
|
2003-11-12 16:34:20 -05:00
|
|
|
val._setOORInfo(val)
|
2001-10-12 19:26:38 -04:00
|
|
|
return val
|
1999-08-24 03:15:52 -04:00
|
|
|
|
|
|
|
|
2006-01-23 18:04:44 -05:00
|
|
|
|