]>
Commit | Line | Data |
---|---|---|
325274bb | 1 | # This file was created automatically by SWIG. |
d14a1e28 | 2 | # Don't modify this file, modify the SWIG interface instead. |
325274bb | 3 | |
caef1a4d RD |
4 | """ |
5 | `GLCanvas` provides an OpenGL Context on a `wx.Window`. | |
6 | """ | |
7 | ||
d14a1e28 | 8 | import _glcanvas |
325274bb | 9 | |
d55e5bfc RD |
10 | import _core |
11 | wx = _core | |
c24da6d6 | 12 | __docfilter__ = wx.__DocFilter(globals()) |
d55e5bfc | 13 | class GLContext(_core.Object): |
423f194a RD |
14 | def __repr__(self): |
15 | return "<%s.%s; proxy of C++ wxGLContext instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 16 | def __init__(self, *args, **kwargs): |
41f1cec7 | 17 | """ |
a95a7133 | 18 | __init__(self, bool isRGB, GLCanvas win, wxPalette palette=wxNullPalette, |
41f1cec7 RD |
19 | GLContext other=None) -> GLContext |
20 | """ | |
d14a1e28 RD |
21 | newobj = _glcanvas.new_GLContext(*args, **kwargs) |
22 | self.this = newobj.this | |
325274bb | 23 | self.thisown = 1 |
d14a1e28 RD |
24 | del newobj.thisown |
25 | def __del__(self, destroy=_glcanvas.delete_GLContext): | |
a95a7133 | 26 | """__del__(self)""" |
d14a1e28 RD |
27 | try: |
28 | if self.thisown: destroy(self) | |
29 | except: pass | |
423f194a RD |
30 | |
31 | def SetCurrent(*args, **kwargs): | |
a95a7133 | 32 | """SetCurrent(self)""" |
423f194a RD |
33 | return _glcanvas.GLContext_SetCurrent(*args, **kwargs) |
34 | ||
35 | def SetColour(*args, **kwargs): | |
a95a7133 | 36 | """SetColour(self, String colour)""" |
423f194a RD |
37 | return _glcanvas.GLContext_SetColour(*args, **kwargs) |
38 | ||
39 | def SwapBuffers(*args, **kwargs): | |
a95a7133 | 40 | """SwapBuffers(self)""" |
423f194a RD |
41 | return _glcanvas.GLContext_SwapBuffers(*args, **kwargs) |
42 | ||
43 | def GetWindow(*args, **kwargs): | |
a95a7133 | 44 | """GetWindow(self) -> Window""" |
423f194a RD |
45 | return _glcanvas.GLContext_GetWindow(*args, **kwargs) |
46 | ||
325274bb | 47 | |
d14a1e28 RD |
48 | class GLContextPtr(GLContext): |
49 | def __init__(self, this): | |
325274bb | 50 | self.this = this |
d14a1e28 RD |
51 | if not hasattr(self,"thisown"): self.thisown = 0 |
52 | self.__class__ = GLContext | |
53 | _glcanvas.GLContext_swigregister(GLContextPtr) | |
d03fd34d RD |
54 | cvar = _glcanvas.cvar |
55 | GLCanvasNameStr = cvar.GLCanvasNameStr | |
d14a1e28 RD |
56 | |
57 | WX_GL_RGBA = _glcanvas.WX_GL_RGBA | |
58 | WX_GL_BUFFER_SIZE = _glcanvas.WX_GL_BUFFER_SIZE | |
59 | WX_GL_LEVEL = _glcanvas.WX_GL_LEVEL | |
60 | WX_GL_DOUBLEBUFFER = _glcanvas.WX_GL_DOUBLEBUFFER | |
61 | WX_GL_STEREO = _glcanvas.WX_GL_STEREO | |
62 | WX_GL_AUX_BUFFERS = _glcanvas.WX_GL_AUX_BUFFERS | |
63 | WX_GL_MIN_RED = _glcanvas.WX_GL_MIN_RED | |
64 | WX_GL_MIN_GREEN = _glcanvas.WX_GL_MIN_GREEN | |
65 | WX_GL_MIN_BLUE = _glcanvas.WX_GL_MIN_BLUE | |
66 | WX_GL_MIN_ALPHA = _glcanvas.WX_GL_MIN_ALPHA | |
67 | WX_GL_DEPTH_SIZE = _glcanvas.WX_GL_DEPTH_SIZE | |
68 | WX_GL_STENCIL_SIZE = _glcanvas.WX_GL_STENCIL_SIZE | |
69 | WX_GL_MIN_ACCUM_RED = _glcanvas.WX_GL_MIN_ACCUM_RED | |
70 | WX_GL_MIN_ACCUM_GREEN = _glcanvas.WX_GL_MIN_ACCUM_GREEN | |
71 | WX_GL_MIN_ACCUM_BLUE = _glcanvas.WX_GL_MIN_ACCUM_BLUE | |
72 | WX_GL_MIN_ACCUM_ALPHA = _glcanvas.WX_GL_MIN_ACCUM_ALPHA | |
d55e5bfc | 73 | class GLCanvas(_core.Window): |
423f194a RD |
74 | def __repr__(self): |
75 | return "<%s.%s; proxy of C++ wxGLCanvas instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 76 | def __init__(self, *args, **kwargs): |
41f1cec7 | 77 | """ |
a95a7133 | 78 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
d03fd34d RD |
79 | Size size=DefaultSize, long style=0, String name=GLCanvasNameStr, |
80 | int attribList=None, wxPalette palette=wxNullPalette) -> GLCanvas | |
41f1cec7 | 81 | """ |
d14a1e28 RD |
82 | newobj = _glcanvas.new_GLCanvas(*args, **kwargs) |
83 | self.this = newobj.this | |
325274bb | 84 | self.thisown = 1 |
d14a1e28 | 85 | del newobj.thisown |
0122b7e3 | 86 | self._setOORInfo(self) |
423f194a RD |
87 | |
88 | def SetCurrent(*args, **kwargs): | |
a95a7133 | 89 | """SetCurrent(self)""" |
423f194a RD |
90 | return _glcanvas.GLCanvas_SetCurrent(*args, **kwargs) |
91 | ||
92 | def SetColour(*args, **kwargs): | |
a95a7133 | 93 | """SetColour(self, String colour)""" |
423f194a RD |
94 | return _glcanvas.GLCanvas_SetColour(*args, **kwargs) |
95 | ||
96 | def SwapBuffers(*args, **kwargs): | |
a95a7133 | 97 | """SwapBuffers(self)""" |
423f194a RD |
98 | return _glcanvas.GLCanvas_SwapBuffers(*args, **kwargs) |
99 | ||
100 | def GetContext(*args, **kwargs): | |
a95a7133 | 101 | """GetContext(self) -> GLContext""" |
423f194a RD |
102 | return _glcanvas.GLCanvas_GetContext(*args, **kwargs) |
103 | ||
104 | def SetupPixelFormat(*args, **kwargs): | |
a95a7133 | 105 | """SetupPixelFormat(self, int attribList=None)""" |
423f194a RD |
106 | return _glcanvas.GLCanvas_SetupPixelFormat(*args, **kwargs) |
107 | ||
108 | def SetupPalette(*args, **kwargs): | |
a95a7133 | 109 | """SetupPalette(self, wxPalette palette)""" |
423f194a RD |
110 | return _glcanvas.GLCanvas_SetupPalette(*args, **kwargs) |
111 | ||
112 | def CreateDefaultPalette(*args, **kwargs): | |
a95a7133 | 113 | """CreateDefaultPalette(self) -> wxPalette""" |
423f194a RD |
114 | return _glcanvas.GLCanvas_CreateDefaultPalette(*args, **kwargs) |
115 | ||
116 | def GetPalette(*args, **kwargs): | |
a95a7133 | 117 | """GetPalette(self) -> wxPalette""" |
423f194a RD |
118 | return _glcanvas.GLCanvas_GetPalette(*args, **kwargs) |
119 | ||
0122b7e3 | 120 | |
d14a1e28 RD |
121 | class GLCanvasPtr(GLCanvas): |
122 | def __init__(self, this): | |
123 | self.this = this | |
124 | if not hasattr(self,"thisown"): self.thisown = 0 | |
125 | self.__class__ = GLCanvas | |
126 | _glcanvas.GLCanvas_swigregister(GLCanvasPtr) | |
325274bb | 127 | |
83448d71 | 128 | def GLCanvasWithContext(*args, **kwargs): |
41f1cec7 | 129 | """ |
83448d71 | 130 | GLCanvasWithContext(Window parent, GLContext shared=None, int id=-1, Point pos=DefaultPosition, |
41f1cec7 | 131 | Size size=DefaultSize, |
d03fd34d | 132 | long style=0, String name=GLCanvasNameStr, |
41f1cec7 RD |
133 | int attribList=None, wxPalette palette=wxNullPalette) -> GLCanvas |
134 | """ | |
83448d71 | 135 | val = _glcanvas.new_GLCanvasWithContext(*args, **kwargs) |
0122b7e3 | 136 | val.thisown = 1 |
d14a1e28 | 137 | val._setOORInfo(val) |
0122b7e3 | 138 | return val |
325274bb RD |
139 | |
140 |