]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/glcanvas/mac/glcanvas.py
1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
8 class GLContext(core
.Object
):
10 return "<%s.%s; proxy of C++ wxGLContext instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
11 def __init__(self
, *args
, **kwargs
):
13 __init__(bool isRGB, GLCanvas win, wxPalette palette=wxNullPalette,
14 GLContext other=None) -> GLContext
16 newobj
= _glcanvas
.new_GLContext(*args
, **kwargs
)
17 self
.this
= newobj
.this
20 def __del__(self
, destroy
=_glcanvas
.delete_GLContext
):
23 if self
.thisown
: destroy(self
)
26 def SetCurrent(*args
, **kwargs
):
28 return _glcanvas
.GLContext_SetCurrent(*args
, **kwargs
)
30 def SetColour(*args
, **kwargs
):
31 """SetColour(wxString colour)"""
32 return _glcanvas
.GLContext_SetColour(*args
, **kwargs
)
34 def SwapBuffers(*args
, **kwargs
):
36 return _glcanvas
.GLContext_SwapBuffers(*args
, **kwargs
)
38 def GetWindow(*args
, **kwargs
):
39 """GetWindow() -> Window"""
40 return _glcanvas
.GLContext_GetWindow(*args
, **kwargs
)
43 class GLContextPtr(GLContext
):
44 def __init__(self
, this
):
46 if not hasattr(self
,"thisown"): self
.thisown
= 0
47 self
.__class
__ = GLContext
48 _glcanvas
.GLContext_swigregister(GLContextPtr
)
50 WX_GL_RGBA
= _glcanvas
.WX_GL_RGBA
51 WX_GL_BUFFER_SIZE
= _glcanvas
.WX_GL_BUFFER_SIZE
52 WX_GL_LEVEL
= _glcanvas
.WX_GL_LEVEL
53 WX_GL_DOUBLEBUFFER
= _glcanvas
.WX_GL_DOUBLEBUFFER
54 WX_GL_STEREO
= _glcanvas
.WX_GL_STEREO
55 WX_GL_AUX_BUFFERS
= _glcanvas
.WX_GL_AUX_BUFFERS
56 WX_GL_MIN_RED
= _glcanvas
.WX_GL_MIN_RED
57 WX_GL_MIN_GREEN
= _glcanvas
.WX_GL_MIN_GREEN
58 WX_GL_MIN_BLUE
= _glcanvas
.WX_GL_MIN_BLUE
59 WX_GL_MIN_ALPHA
= _glcanvas
.WX_GL_MIN_ALPHA
60 WX_GL_DEPTH_SIZE
= _glcanvas
.WX_GL_DEPTH_SIZE
61 WX_GL_STENCIL_SIZE
= _glcanvas
.WX_GL_STENCIL_SIZE
62 WX_GL_MIN_ACCUM_RED
= _glcanvas
.WX_GL_MIN_ACCUM_RED
63 WX_GL_MIN_ACCUM_GREEN
= _glcanvas
.WX_GL_MIN_ACCUM_GREEN
64 WX_GL_MIN_ACCUM_BLUE
= _glcanvas
.WX_GL_MIN_ACCUM_BLUE
65 WX_GL_MIN_ACCUM_ALPHA
= _glcanvas
.WX_GL_MIN_ACCUM_ALPHA
66 class GLCanvas(core
.Window
):
68 return "<%s.%s; proxy of C++ wxGLCanvas instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
69 def __init__(self
, *args
, **kwargs
):
71 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
72 Size size=DefaultSize, long style=0, wxString name=wxPyGLCanvasNameStr,
74 wxPalette palette=wxNullPalette) -> GLCanvas
76 newobj
= _glcanvas
.new_GLCanvas(*args
, **kwargs
)
77 self
.this
= newobj
.this
80 self
._setOORInfo
(self
)
82 def SetCurrent(*args
, **kwargs
):
84 return _glcanvas
.GLCanvas_SetCurrent(*args
, **kwargs
)
86 def SetColour(*args
, **kwargs
):
87 """SetColour(wxString colour)"""
88 return _glcanvas
.GLCanvas_SetColour(*args
, **kwargs
)
90 def SwapBuffers(*args
, **kwargs
):
92 return _glcanvas
.GLCanvas_SwapBuffers(*args
, **kwargs
)
94 def GetContext(*args
, **kwargs
):
95 """GetContext() -> GLContext"""
96 return _glcanvas
.GLCanvas_GetContext(*args
, **kwargs
)
99 class GLCanvasPtr(GLCanvas
):
100 def __init__(self
, this
):
102 if not hasattr(self
,"thisown"): self
.thisown
= 0
103 self
.__class
__ = GLCanvas
104 _glcanvas
.GLCanvas_swigregister(GLCanvasPtr
)
106 def wxGLCanvasWithContext(*args
, **kwargs
):
108 wxGLCanvasWithContext(Window parent, GLContext shared=None, int id=-1, Point pos=DefaultPosition,
109 Size size=DefaultSize,
110 long style=0, wxString name=wxPyGLCanvasNameStr,
111 int attribList=None, wxPalette palette=wxNullPalette) -> GLCanvas
113 val
= _glcanvas
.new_wxGLCanvasWithContext(*args
, **kwargs
)