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