]>
Commit | Line | Data |
---|---|---|
0085ce49 | 1 | # This file was created automatically by SWIG 1.3.29. |
d14a1e28 | 2 | # Don't modify this file, modify the SWIG interface instead. |
a29cd6c0 | 3 | |
db3e571a RD |
4 | """ |
5 | `GLCanvas` provides an OpenGL Context on a `wx.Window`. | |
6 | """ | |
7 | ||
d14a1e28 | 8 | import _glcanvas |
0085ce49 RD |
9 | import new |
10 | new_instancemethod = new.instancemethod | |
3004cfd8 | 11 | def _swig_setattr_nondynamic(self,class_type,name,value,static=1): |
0085ce49 | 12 | if (name == "thisown"): return self.this.own(value) |
3004cfd8 | 13 | if (name == "this"): |
0085ce49 RD |
14 | if type(value).__name__ == 'PySwigObject': |
15 | self.__dict__[name] = value | |
3004cfd8 RD |
16 | return |
17 | method = class_type.__swig_setmethods__.get(name,None) | |
18 | if method: return method(self,value) | |
0085ce49 | 19 | if (not static) or hasattr(self,name): |
3004cfd8 RD |
20 | self.__dict__[name] = value |
21 | else: | |
22 | raise AttributeError("You cannot add attributes to %s" % self) | |
23 | ||
24 | def _swig_setattr(self,class_type,name,value): | |
25 | return _swig_setattr_nondynamic(self,class_type,name,value,0) | |
26 | ||
27 | def _swig_getattr(self,class_type,name): | |
0085ce49 | 28 | if (name == "thisown"): return self.this.own() |
3004cfd8 RD |
29 | method = class_type.__swig_getmethods__.get(name,None) |
30 | if method: return method(self) | |
31 | raise AttributeError,name | |
32 | ||
0085ce49 RD |
33 | def _swig_repr(self): |
34 | try: strthis = "proxy of " + self.this.__repr__() | |
35 | except: strthis = "" | |
36 | return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) | |
37 | ||
3004cfd8 RD |
38 | import types |
39 | try: | |
40 | _object = types.ObjectType | |
41 | _newclass = 1 | |
42 | except AttributeError: | |
43 | class _object : pass | |
44 | _newclass = 0 | |
45 | del types | |
46 | ||
47 | ||
48 | def _swig_setattr_nondynamic_method(set): | |
49 | def set_attr(self,name,value): | |
0085ce49 RD |
50 | if (name == "thisown"): return self.this.own(value) |
51 | if hasattr(self,name) or (name == "this"): | |
3004cfd8 RD |
52 | set(self,name,value) |
53 | else: | |
54 | raise AttributeError("You cannot add attributes to %s" % self) | |
55 | return set_attr | |
56 | ||
57 | ||
54f9ee45 RD |
58 | import _core |
59 | wx = _core | |
66c033b4 | 60 | __docfilter__ = wx.__DocFilter(globals()) |
54f9ee45 | 61 | class GLContext(_core.Object): |
3004cfd8 | 62 | """Proxy of C++ GLContext class""" |
0085ce49 RD |
63 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
64 | __repr__ = _swig_repr | |
65 | def __init__(self, *args, **kwargs): | |
97ab0f6a | 66 | """__init__(self, GLCanvas win, GLContext other=None) -> GLContext""" |
0085ce49 RD |
67 | _glcanvas.GLContext_swiginit(self,_glcanvas.new_GLContext(*args, **kwargs)) |
68 | __swig_destroy__ = _glcanvas.delete_GLContext | |
69 | __del__ = lambda self : None; | |
e811c8ce | 70 | def SetCurrent(*args, **kwargs): |
97ab0f6a | 71 | """SetCurrent(self, GLCanvas win)""" |
e811c8ce RD |
72 | return _glcanvas.GLContext_SetCurrent(*args, **kwargs) |
73 | ||
2131d850 | 74 | _glcanvas.GLContext_swigregister(GLContext) |
b2dc1044 RD |
75 | cvar = _glcanvas.cvar |
76 | GLCanvasNameStr = cvar.GLCanvasNameStr | |
d14a1e28 RD |
77 | |
78 | WX_GL_RGBA = _glcanvas.WX_GL_RGBA | |
79 | WX_GL_BUFFER_SIZE = _glcanvas.WX_GL_BUFFER_SIZE | |
80 | WX_GL_LEVEL = _glcanvas.WX_GL_LEVEL | |
81 | WX_GL_DOUBLEBUFFER = _glcanvas.WX_GL_DOUBLEBUFFER | |
82 | WX_GL_STEREO = _glcanvas.WX_GL_STEREO | |
83 | WX_GL_AUX_BUFFERS = _glcanvas.WX_GL_AUX_BUFFERS | |
84 | WX_GL_MIN_RED = _glcanvas.WX_GL_MIN_RED | |
85 | WX_GL_MIN_GREEN = _glcanvas.WX_GL_MIN_GREEN | |
86 | WX_GL_MIN_BLUE = _glcanvas.WX_GL_MIN_BLUE | |
87 | WX_GL_MIN_ALPHA = _glcanvas.WX_GL_MIN_ALPHA | |
88 | WX_GL_DEPTH_SIZE = _glcanvas.WX_GL_DEPTH_SIZE | |
89 | WX_GL_STENCIL_SIZE = _glcanvas.WX_GL_STENCIL_SIZE | |
90 | WX_GL_MIN_ACCUM_RED = _glcanvas.WX_GL_MIN_ACCUM_RED | |
91 | WX_GL_MIN_ACCUM_GREEN = _glcanvas.WX_GL_MIN_ACCUM_GREEN | |
92 | WX_GL_MIN_ACCUM_BLUE = _glcanvas.WX_GL_MIN_ACCUM_BLUE | |
93 | WX_GL_MIN_ACCUM_ALPHA = _glcanvas.WX_GL_MIN_ACCUM_ALPHA | |
54f9ee45 | 94 | class GLCanvas(_core.Window): |
3004cfd8 | 95 | """Proxy of C++ GLCanvas class""" |
0085ce49 RD |
96 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
97 | __repr__ = _swig_repr | |
98 | def __init__(self, *args, **kwargs): | |
0df68c9f | 99 | """ |
a95a7133 | 100 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
b2dc1044 | 101 | Size size=DefaultSize, long style=0, String name=GLCanvasNameStr, |
2131d850 | 102 | int attribList=None, Palette palette=wxNullPalette) -> GLCanvas |
0df68c9f | 103 | """ |
0085ce49 | 104 | _glcanvas.GLCanvas_swiginit(self,_glcanvas.new_GLCanvas(*args, **kwargs)) |
0220cbc1 | 105 | self._setOORInfo(self) |
e811c8ce | 106 | |
7f442096 RD |
107 | def SetCurrent(*args): |
108 | """ | |
109 | SetCurrent(self) | |
110 | SetCurrent(self, GLContext RC) | |
111 | """ | |
112 | return _glcanvas.GLCanvas_SetCurrent(*args) | |
e811c8ce RD |
113 | |
114 | def SetColour(*args, **kwargs): | |
a95a7133 | 115 | """SetColour(self, String colour)""" |
e811c8ce RD |
116 | return _glcanvas.GLCanvas_SetColour(*args, **kwargs) |
117 | ||
118 | def SwapBuffers(*args, **kwargs): | |
a95a7133 | 119 | """SwapBuffers(self)""" |
e811c8ce RD |
120 | return _glcanvas.GLCanvas_SwapBuffers(*args, **kwargs) |
121 | ||
122 | def GetContext(*args, **kwargs): | |
a95a7133 | 123 | """GetContext(self) -> GLContext""" |
e811c8ce RD |
124 | return _glcanvas.GLCanvas_GetContext(*args, **kwargs) |
125 | ||
e70b4d2d | 126 | Context = property(GetContext,doc="See `GetContext`") |
2131d850 | 127 | _glcanvas.GLCanvas_swigregister(GLCanvas) |
a29cd6c0 | 128 | |
58203fa6 | 129 | def GLCanvasWithContext(*args, **kwargs): |
0df68c9f | 130 | """ |
58203fa6 | 131 | GLCanvasWithContext(Window parent, GLContext shared=None, int id=-1, Point pos=DefaultPosition, |
0df68c9f | 132 | Size size=DefaultSize, |
b2dc1044 | 133 | long style=0, String name=GLCanvasNameStr, |
2131d850 | 134 | int attribList=None, Palette palette=wxNullPalette) -> GLCanvas |
0df68c9f | 135 | """ |
58203fa6 | 136 | val = _glcanvas.new_GLCanvasWithContext(*args, **kwargs) |
d14a1e28 | 137 | val._setOORInfo(val) |
0220cbc1 RD |
138 | return val |
139 | ||
a29cd6c0 | 140 | |
32fe5131 | 141 |