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