]>
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 | |
d14a1e28 RD |
6 | import core |
7 | wx = core | |
8 | class GLContext(core.Object): | |
9 | def __init__(self, *args, **kwargs): | |
10 | newobj = _glcanvas.new_GLContext(*args, **kwargs) | |
11 | self.this = newobj.this | |
a29cd6c0 | 12 | self.thisown = 1 |
d14a1e28 RD |
13 | del newobj.thisown |
14 | def __del__(self, destroy=_glcanvas.delete_GLContext): | |
15 | try: | |
16 | if self.thisown: destroy(self) | |
17 | except: pass | |
18 | def SetCurrent(*args, **kwargs): return _glcanvas.GLContext_SetCurrent(*args, **kwargs) | |
19 | def SetColour(*args, **kwargs): return _glcanvas.GLContext_SetColour(*args, **kwargs) | |
20 | def SwapBuffers(*args, **kwargs): return _glcanvas.GLContext_SwapBuffers(*args, **kwargs) | |
21 | def SetupPixelFormat(*args, **kwargs): return _glcanvas.GLContext_SetupPixelFormat(*args, **kwargs) | |
22 | def SetupPalette(*args, **kwargs): return _glcanvas.GLContext_SetupPalette(*args, **kwargs) | |
23 | def CreateDefaultPalette(*args, **kwargs): return _glcanvas.GLContext_CreateDefaultPalette(*args, **kwargs) | |
24 | def GetPalette(*args, **kwargs): return _glcanvas.GLContext_GetPalette(*args, **kwargs) | |
25 | def GetWindow(*args, **kwargs): return _glcanvas.GLContext_GetWindow(*args, **kwargs) | |
26 | def __repr__(self): | |
27 | return "<%s.%s; proxy of C++ wxGLContext instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
a29cd6c0 | 28 | |
d14a1e28 RD |
29 | class GLContextPtr(GLContext): |
30 | def __init__(self, this): | |
a29cd6c0 | 31 | self.this = this |
d14a1e28 RD |
32 | if not hasattr(self,"thisown"): self.thisown = 0 |
33 | self.__class__ = GLContext | |
34 | _glcanvas.GLContext_swigregister(GLContextPtr) | |
35 | ||
36 | WX_GL_RGBA = _glcanvas.WX_GL_RGBA | |
37 | WX_GL_BUFFER_SIZE = _glcanvas.WX_GL_BUFFER_SIZE | |
38 | WX_GL_LEVEL = _glcanvas.WX_GL_LEVEL | |
39 | WX_GL_DOUBLEBUFFER = _glcanvas.WX_GL_DOUBLEBUFFER | |
40 | WX_GL_STEREO = _glcanvas.WX_GL_STEREO | |
41 | WX_GL_AUX_BUFFERS = _glcanvas.WX_GL_AUX_BUFFERS | |
42 | WX_GL_MIN_RED = _glcanvas.WX_GL_MIN_RED | |
43 | WX_GL_MIN_GREEN = _glcanvas.WX_GL_MIN_GREEN | |
44 | WX_GL_MIN_BLUE = _glcanvas.WX_GL_MIN_BLUE | |
45 | WX_GL_MIN_ALPHA = _glcanvas.WX_GL_MIN_ALPHA | |
46 | WX_GL_DEPTH_SIZE = _glcanvas.WX_GL_DEPTH_SIZE | |
47 | WX_GL_STENCIL_SIZE = _glcanvas.WX_GL_STENCIL_SIZE | |
48 | WX_GL_MIN_ACCUM_RED = _glcanvas.WX_GL_MIN_ACCUM_RED | |
49 | WX_GL_MIN_ACCUM_GREEN = _glcanvas.WX_GL_MIN_ACCUM_GREEN | |
50 | WX_GL_MIN_ACCUM_BLUE = _glcanvas.WX_GL_MIN_ACCUM_BLUE | |
51 | WX_GL_MIN_ACCUM_ALPHA = _glcanvas.WX_GL_MIN_ACCUM_ALPHA | |
52 | class GLCanvas(core.Window): | |
53 | def __init__(self, *args, **kwargs): | |
54 | newobj = _glcanvas.new_GLCanvas(*args, **kwargs) | |
55 | self.this = newobj.this | |
a29cd6c0 | 56 | self.thisown = 1 |
d14a1e28 | 57 | del newobj.thisown |
0220cbc1 | 58 | self._setOORInfo(self) |
d14a1e28 RD |
59 | def SetCurrent(*args, **kwargs): return _glcanvas.GLCanvas_SetCurrent(*args, **kwargs) |
60 | def SetColour(*args, **kwargs): return _glcanvas.GLCanvas_SetColour(*args, **kwargs) | |
61 | def SwapBuffers(*args, **kwargs): return _glcanvas.GLCanvas_SwapBuffers(*args, **kwargs) | |
62 | def GetContext(*args, **kwargs): return _glcanvas.GLCanvas_GetContext(*args, **kwargs) | |
63 | def __repr__(self): | |
64 | return "<%s.%s; proxy of C++ wxGLCanvas instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
a29cd6c0 | 65 | |
d14a1e28 RD |
66 | class GLCanvasPtr(GLCanvas): |
67 | def __init__(self, this): | |
68 | self.this = this | |
69 | if not hasattr(self,"thisown"): self.thisown = 0 | |
70 | self.__class__ = GLCanvas | |
71 | _glcanvas.GLCanvas_swigregister(GLCanvasPtr) | |
a29cd6c0 | 72 | |
d14a1e28 RD |
73 | def wxGLCanvasWithContext(*args, **kwargs): |
74 | val = _glcanvas.new_wxGLCanvasWithContext(*args, **kwargs) | |
0220cbc1 | 75 | val.thisown = 1 |
d14a1e28 | 76 | val._setOORInfo(val) |
0220cbc1 RD |
77 | return val |
78 | ||
a29cd6c0 | 79 |