]>
Commit | Line | Data |
---|---|---|
a29cd6c0 | 1 | # This file was created automatically by SWIG. |
d14a1e28 | 2 | # Don't modify this file, modify the SWIG interface instead. |
a29cd6c0 | 3 | |
d14a1e28 | 4 | import _glcanvas |
a29cd6c0 | 5 | |
54f9ee45 RD |
6 | import _core |
7 | wx = _core | |
66c033b4 | 8 | __docfilter__ = wx.__DocFilter(globals()) |
54f9ee45 | 9 | class GLContext(_core.Object): |
e811c8ce 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): |
0df68c9f | 13 | """ |
a95a7133 | 14 | __init__(self, bool isRGB, GLCanvas win, wxPalette palette=wxNullPalette, |
0df68c9f RD |
15 | GLContext other=None) -> GLContext |
16 | """ | |
d14a1e28 RD |
17 | newobj = _glcanvas.new_GLContext(*args, **kwargs) |
18 | self.this = newobj.this | |
a29cd6c0 | 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 | |
e811c8ce RD |
26 | |
27 | def SetCurrent(*args, **kwargs): | |
a95a7133 | 28 | """SetCurrent(self)""" |
e811c8ce RD |
29 | return _glcanvas.GLContext_SetCurrent(*args, **kwargs) |
30 | ||
31 | def SetColour(*args, **kwargs): | |
a95a7133 | 32 | """SetColour(self, String colour)""" |
e811c8ce RD |
33 | return _glcanvas.GLContext_SetColour(*args, **kwargs) |
34 | ||
35 | def SwapBuffers(*args, **kwargs): | |
a95a7133 | 36 | """SwapBuffers(self)""" |
e811c8ce RD |
37 | return _glcanvas.GLContext_SwapBuffers(*args, **kwargs) |
38 | ||
39 | def SetupPixelFormat(*args, **kwargs): | |
a95a7133 | 40 | """SetupPixelFormat(self)""" |
e811c8ce RD |
41 | return _glcanvas.GLContext_SetupPixelFormat(*args, **kwargs) |
42 | ||
43 | def SetupPalette(*args, **kwargs): | |
a95a7133 | 44 | """SetupPalette(self, wxPalette palette)""" |
e811c8ce RD |
45 | return _glcanvas.GLContext_SetupPalette(*args, **kwargs) |
46 | ||
47 | def CreateDefaultPalette(*args, **kwargs): | |
a95a7133 | 48 | """CreateDefaultPalette(self) -> wxPalette""" |
e811c8ce RD |
49 | return _glcanvas.GLContext_CreateDefaultPalette(*args, **kwargs) |
50 | ||
51 | def GetPalette(*args, **kwargs): | |
a95a7133 | 52 | """GetPalette(self) -> wxPalette""" |
e811c8ce RD |
53 | return _glcanvas.GLContext_GetPalette(*args, **kwargs) |
54 | ||
55 | def GetWindow(*args, **kwargs): | |
a95a7133 | 56 | """GetWindow(self) -> Window""" |
e811c8ce RD |
57 | return _glcanvas.GLContext_GetWindow(*args, **kwargs) |
58 | ||
a29cd6c0 | 59 | |
d14a1e28 RD |
60 | class GLContextPtr(GLContext): |
61 | def __init__(self, this): | |
a29cd6c0 | 62 | self.this = this |
d14a1e28 RD |
63 | if not hasattr(self,"thisown"): self.thisown = 0 |
64 | self.__class__ = GLContext | |
65 | _glcanvas.GLContext_swigregister(GLContextPtr) | |
b2dc1044 RD |
66 | cvar = _glcanvas.cvar |
67 | GLCanvasNameStr = cvar.GLCanvasNameStr | |
d14a1e28 RD |
68 | |
69 | WX_GL_RGBA = _glcanvas.WX_GL_RGBA | |
70 | WX_GL_BUFFER_SIZE = _glcanvas.WX_GL_BUFFER_SIZE | |
71 | WX_GL_LEVEL = _glcanvas.WX_GL_LEVEL | |
72 | WX_GL_DOUBLEBUFFER = _glcanvas.WX_GL_DOUBLEBUFFER | |
73 | WX_GL_STEREO = _glcanvas.WX_GL_STEREO | |
74 | WX_GL_AUX_BUFFERS = _glcanvas.WX_GL_AUX_BUFFERS | |
75 | WX_GL_MIN_RED = _glcanvas.WX_GL_MIN_RED | |
76 | WX_GL_MIN_GREEN = _glcanvas.WX_GL_MIN_GREEN | |
77 | WX_GL_MIN_BLUE = _glcanvas.WX_GL_MIN_BLUE | |
78 | WX_GL_MIN_ALPHA = _glcanvas.WX_GL_MIN_ALPHA | |
79 | WX_GL_DEPTH_SIZE = _glcanvas.WX_GL_DEPTH_SIZE | |
80 | WX_GL_STENCIL_SIZE = _glcanvas.WX_GL_STENCIL_SIZE | |
81 | WX_GL_MIN_ACCUM_RED = _glcanvas.WX_GL_MIN_ACCUM_RED | |
82 | WX_GL_MIN_ACCUM_GREEN = _glcanvas.WX_GL_MIN_ACCUM_GREEN | |
83 | WX_GL_MIN_ACCUM_BLUE = _glcanvas.WX_GL_MIN_ACCUM_BLUE | |
84 | WX_GL_MIN_ACCUM_ALPHA = _glcanvas.WX_GL_MIN_ACCUM_ALPHA | |
54f9ee45 | 85 | class GLCanvas(_core.Window): |
e811c8ce RD |
86 | def __repr__(self): |
87 | return "<%s.%s; proxy of C++ wxGLCanvas instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 88 | def __init__(self, *args, **kwargs): |
0df68c9f | 89 | """ |
a95a7133 | 90 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
b2dc1044 RD |
91 | Size size=DefaultSize, long style=0, String name=GLCanvasNameStr, |
92 | int attribList=None, wxPalette palette=wxNullPalette) -> GLCanvas | |
0df68c9f | 93 | """ |
d14a1e28 RD |
94 | newobj = _glcanvas.new_GLCanvas(*args, **kwargs) |
95 | self.this = newobj.this | |
a29cd6c0 | 96 | self.thisown = 1 |
d14a1e28 | 97 | del newobj.thisown |
0220cbc1 | 98 | self._setOORInfo(self) |
e811c8ce RD |
99 | |
100 | def SetCurrent(*args, **kwargs): | |
a95a7133 | 101 | """SetCurrent(self)""" |
e811c8ce RD |
102 | return _glcanvas.GLCanvas_SetCurrent(*args, **kwargs) |
103 | ||
104 | def SetColour(*args, **kwargs): | |
a95a7133 | 105 | """SetColour(self, String colour)""" |
e811c8ce RD |
106 | return _glcanvas.GLCanvas_SetColour(*args, **kwargs) |
107 | ||
108 | def SwapBuffers(*args, **kwargs): | |
a95a7133 | 109 | """SwapBuffers(self)""" |
e811c8ce RD |
110 | return _glcanvas.GLCanvas_SwapBuffers(*args, **kwargs) |
111 | ||
112 | def GetContext(*args, **kwargs): | |
a95a7133 | 113 | """GetContext(self) -> GLContext""" |
e811c8ce RD |
114 | return _glcanvas.GLCanvas_GetContext(*args, **kwargs) |
115 | ||
a29cd6c0 | 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) | |
a29cd6c0 | 123 | |
58203fa6 | 124 | def GLCanvasWithContext(*args, **kwargs): |
0df68c9f | 125 | """ |
58203fa6 | 126 | GLCanvasWithContext(Window parent, GLContext shared=None, int id=-1, Point pos=DefaultPosition, |
0df68c9f | 127 | Size size=DefaultSize, |
b2dc1044 | 128 | long style=0, String name=GLCanvasNameStr, |
0df68c9f RD |
129 | int attribList=None, wxPalette palette=wxNullPalette) -> GLCanvas |
130 | """ | |
58203fa6 | 131 | val = _glcanvas.new_GLCanvasWithContext(*args, **kwargs) |
0220cbc1 | 132 | val.thisown = 1 |
d14a1e28 | 133 | val._setOORInfo(val) |
0220cbc1 RD |
134 | return val |
135 | ||
a29cd6c0 | 136 |