]>
Commit | Line | Data |
---|---|---|
1 | # This file was created automatically by SWIG 1.3.29. | |
2 | # Don't modify this file, modify the SWIG interface instead. | |
3 | ||
4 | """ | |
5 | `GLCanvas` provides an OpenGL Context on a `wx.Window`. | |
6 | """ | |
7 | ||
8 | import _glcanvas | |
9 | import new | |
10 | new_instancemethod = new.instancemethod | |
11 | def _swig_setattr_nondynamic(self,class_type,name,value,static=1): | |
12 | if (name == "thisown"): return self.this.own(value) | |
13 | if (name == "this"): | |
14 | if type(value).__name__ == 'PySwigObject': | |
15 | self.__dict__[name] = value | |
16 | return | |
17 | method = class_type.__swig_setmethods__.get(name,None) | |
18 | if method: return method(self,value) | |
19 | if (not static) or hasattr(self,name): | |
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): | |
28 | if (name == "thisown"): return self.this.own() | |
29 | method = class_type.__swig_getmethods__.get(name,None) | |
30 | if method: return method(self) | |
31 | raise AttributeError,name | |
32 | ||
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 | ||
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): | |
50 | if (name == "thisown"): return self.this.own(value) | |
51 | if hasattr(self,name) or (name == "this"): | |
52 | set(self,name,value) | |
53 | else: | |
54 | raise AttributeError("You cannot add attributes to %s" % self) | |
55 | return set_attr | |
56 | ||
57 | ||
58 | import _core | |
59 | wx = _core | |
60 | __docfilter__ = wx.__DocFilter(globals()) | |
61 | class GLContext(_core.Object): | |
62 | """Proxy of C++ GLContext class""" | |
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): | |
66 | """ | |
67 | __init__(self, bool isRGB, GLCanvas win, Palette palette=wxNullPalette, | |
68 | GLContext other=None) -> GLContext | |
69 | """ | |
70 | _glcanvas.GLContext_swiginit(self,_glcanvas.new_GLContext(*args, **kwargs)) | |
71 | __swig_destroy__ = _glcanvas.delete_GLContext | |
72 | __del__ = lambda self : None; | |
73 | def SetCurrent(*args, **kwargs): | |
74 | """SetCurrent(self)""" | |
75 | return _glcanvas.GLContext_SetCurrent(*args, **kwargs) | |
76 | ||
77 | def SetColour(*args, **kwargs): | |
78 | """SetColour(self, String colour)""" | |
79 | return _glcanvas.GLContext_SetColour(*args, **kwargs) | |
80 | ||
81 | def SwapBuffers(*args, **kwargs): | |
82 | """SwapBuffers(self)""" | |
83 | return _glcanvas.GLContext_SwapBuffers(*args, **kwargs) | |
84 | ||
85 | def SetupPixelFormat(*args, **kwargs): | |
86 | """SetupPixelFormat(self)""" | |
87 | return _glcanvas.GLContext_SetupPixelFormat(*args, **kwargs) | |
88 | ||
89 | def SetupPalette(*args, **kwargs): | |
90 | """SetupPalette(self, Palette palette)""" | |
91 | return _glcanvas.GLContext_SetupPalette(*args, **kwargs) | |
92 | ||
93 | def CreateDefaultPalette(*args, **kwargs): | |
94 | """CreateDefaultPalette(self) -> Palette""" | |
95 | return _glcanvas.GLContext_CreateDefaultPalette(*args, **kwargs) | |
96 | ||
97 | def GetPalette(*args, **kwargs): | |
98 | """GetPalette(self) -> Palette""" | |
99 | return _glcanvas.GLContext_GetPalette(*args, **kwargs) | |
100 | ||
101 | def GetWindow(*args, **kwargs): | |
102 | """GetWindow(self) -> Window""" | |
103 | return _glcanvas.GLContext_GetWindow(*args, **kwargs) | |
104 | ||
105 | _glcanvas.GLContext_swigregister(GLContext) | |
106 | cvar = _glcanvas.cvar | |
107 | GLCanvasNameStr = cvar.GLCanvasNameStr | |
108 | ||
109 | WX_GL_RGBA = _glcanvas.WX_GL_RGBA | |
110 | WX_GL_BUFFER_SIZE = _glcanvas.WX_GL_BUFFER_SIZE | |
111 | WX_GL_LEVEL = _glcanvas.WX_GL_LEVEL | |
112 | WX_GL_DOUBLEBUFFER = _glcanvas.WX_GL_DOUBLEBUFFER | |
113 | WX_GL_STEREO = _glcanvas.WX_GL_STEREO | |
114 | WX_GL_AUX_BUFFERS = _glcanvas.WX_GL_AUX_BUFFERS | |
115 | WX_GL_MIN_RED = _glcanvas.WX_GL_MIN_RED | |
116 | WX_GL_MIN_GREEN = _glcanvas.WX_GL_MIN_GREEN | |
117 | WX_GL_MIN_BLUE = _glcanvas.WX_GL_MIN_BLUE | |
118 | WX_GL_MIN_ALPHA = _glcanvas.WX_GL_MIN_ALPHA | |
119 | WX_GL_DEPTH_SIZE = _glcanvas.WX_GL_DEPTH_SIZE | |
120 | WX_GL_STENCIL_SIZE = _glcanvas.WX_GL_STENCIL_SIZE | |
121 | WX_GL_MIN_ACCUM_RED = _glcanvas.WX_GL_MIN_ACCUM_RED | |
122 | WX_GL_MIN_ACCUM_GREEN = _glcanvas.WX_GL_MIN_ACCUM_GREEN | |
123 | WX_GL_MIN_ACCUM_BLUE = _glcanvas.WX_GL_MIN_ACCUM_BLUE | |
124 | WX_GL_MIN_ACCUM_ALPHA = _glcanvas.WX_GL_MIN_ACCUM_ALPHA | |
125 | class GLCanvas(_core.Window): | |
126 | """Proxy of C++ GLCanvas class""" | |
127 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
128 | __repr__ = _swig_repr | |
129 | def __init__(self, *args, **kwargs): | |
130 | """ | |
131 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
132 | Size size=DefaultSize, long style=0, String name=GLCanvasNameStr, | |
133 | int attribList=None, Palette palette=wxNullPalette) -> GLCanvas | |
134 | """ | |
135 | _glcanvas.GLCanvas_swiginit(self,_glcanvas.new_GLCanvas(*args, **kwargs)) | |
136 | self._setOORInfo(self) | |
137 | ||
138 | def SetCurrent(*args, **kwargs): | |
139 | """SetCurrent(self)""" | |
140 | return _glcanvas.GLCanvas_SetCurrent(*args, **kwargs) | |
141 | ||
142 | def SetColour(*args, **kwargs): | |
143 | """SetColour(self, String colour)""" | |
144 | return _glcanvas.GLCanvas_SetColour(*args, **kwargs) | |
145 | ||
146 | def SwapBuffers(*args, **kwargs): | |
147 | """SwapBuffers(self)""" | |
148 | return _glcanvas.GLCanvas_SwapBuffers(*args, **kwargs) | |
149 | ||
150 | def GetContext(*args, **kwargs): | |
151 | """GetContext(self) -> GLContext""" | |
152 | return _glcanvas.GLCanvas_GetContext(*args, **kwargs) | |
153 | ||
154 | _glcanvas.GLCanvas_swigregister(GLCanvas) | |
155 | ||
156 | def GLCanvasWithContext(*args, **kwargs): | |
157 | """ | |
158 | GLCanvasWithContext(Window parent, GLContext shared=None, int id=-1, Point pos=DefaultPosition, | |
159 | Size size=DefaultSize, | |
160 | long style=0, String name=GLCanvasNameStr, | |
161 | int attribList=None, Palette palette=wxNullPalette) -> GLCanvas | |
162 | """ | |
163 | val = _glcanvas.new_GLCanvasWithContext(*args, **kwargs) | |
164 | val._setOORInfo(val) | |
165 | return val | |
166 | ||
167 | ||
168 |