]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/glcanvas/gtk/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
):
11 return "<%s.%s; proxy of C++ wxGLContext instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
12 def __init__(self
, *args
, **kwargs
):
13 """__init__(bool isRGB, GLCanvas win, wxPalette palette=wxNullPalette,
14 GLContext other=None) -> GLContext"""
15 newobj
= _glcanvas
.new_GLContext(*args
, **kwargs
)
16 self
.this
= newobj
.this
19 def __del__(self
, destroy
=_glcanvas
.delete_GLContext
):
22 if self
.thisown
: destroy(self
)
25 def SetCurrent(*args
, **kwargs
):
27 return _glcanvas
.GLContext_SetCurrent(*args
, **kwargs
)
29 def SetColour(*args
, **kwargs
):
30 """SetColour(wxString colour)"""
31 return _glcanvas
.GLContext_SetColour(*args
, **kwargs
)
33 def SwapBuffers(*args
, **kwargs
):
35 return _glcanvas
.GLContext_SwapBuffers(*args
, **kwargs
)
37 def SetupPixelFormat(*args
, **kwargs
):
38 """SetupPixelFormat()"""
39 return _glcanvas
.GLContext_SetupPixelFormat(*args
, **kwargs
)
41 def SetupPalette(*args
, **kwargs
):
42 """SetupPalette(wxPalette palette)"""
43 return _glcanvas
.GLContext_SetupPalette(*args
, **kwargs
)
45 def CreateDefaultPalette(*args
, **kwargs
):
46 """CreateDefaultPalette() -> wxPalette"""
47 return _glcanvas
.GLContext_CreateDefaultPalette(*args
, **kwargs
)
49 def GetPalette(*args
, **kwargs
):
50 """GetPalette() -> wxPalette"""
51 return _glcanvas
.GLContext_GetPalette(*args
, **kwargs
)
53 def GetWindow(*args
, **kwargs
):
54 """GetWindow() -> Window"""
55 return _glcanvas
.GLContext_GetWindow(*args
, **kwargs
)
58 class GLContextPtr(GLContext
):
59 def __init__(self
, this
):
61 if not hasattr(self
,"thisown"): self
.thisown
= 0
62 self
.__class
__ = GLContext
63 _glcanvas
.GLContext_swigregister(GLContextPtr
)
65 WX_GL_RGBA
= _glcanvas
.WX_GL_RGBA
66 WX_GL_BUFFER_SIZE
= _glcanvas
.WX_GL_BUFFER_SIZE
67 WX_GL_LEVEL
= _glcanvas
.WX_GL_LEVEL
68 WX_GL_DOUBLEBUFFER
= _glcanvas
.WX_GL_DOUBLEBUFFER
69 WX_GL_STEREO
= _glcanvas
.WX_GL_STEREO
70 WX_GL_AUX_BUFFERS
= _glcanvas
.WX_GL_AUX_BUFFERS
71 WX_GL_MIN_RED
= _glcanvas
.WX_GL_MIN_RED
72 WX_GL_MIN_GREEN
= _glcanvas
.WX_GL_MIN_GREEN
73 WX_GL_MIN_BLUE
= _glcanvas
.WX_GL_MIN_BLUE
74 WX_GL_MIN_ALPHA
= _glcanvas
.WX_GL_MIN_ALPHA
75 WX_GL_DEPTH_SIZE
= _glcanvas
.WX_GL_DEPTH_SIZE
76 WX_GL_STENCIL_SIZE
= _glcanvas
.WX_GL_STENCIL_SIZE
77 WX_GL_MIN_ACCUM_RED
= _glcanvas
.WX_GL_MIN_ACCUM_RED
78 WX_GL_MIN_ACCUM_GREEN
= _glcanvas
.WX_GL_MIN_ACCUM_GREEN
79 WX_GL_MIN_ACCUM_BLUE
= _glcanvas
.WX_GL_MIN_ACCUM_BLUE
80 WX_GL_MIN_ACCUM_ALPHA
= _glcanvas
.WX_GL_MIN_ACCUM_ALPHA
81 class GLCanvas(core
.Window
):
84 return "<%s.%s; proxy of C++ wxGLCanvas instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
85 def __init__(self
, *args
, **kwargs
):
86 """__init__(Window parent, int id=-1, Point pos=DefaultPosition,
87 Size size=DefaultSize, long style=0, wxString name=wxPyGLCanvasNameStr,
89 wxPalette palette=wxNullPalette) -> GLCanvas"""
90 newobj
= _glcanvas
.new_GLCanvas(*args
, **kwargs
)
91 self
.this
= newobj
.this
94 self
._setOORInfo
(self
)
96 def SetCurrent(*args
, **kwargs
):
98 return _glcanvas
.GLCanvas_SetCurrent(*args
, **kwargs
)
100 def SetColour(*args
, **kwargs
):
101 """SetColour(wxString colour)"""
102 return _glcanvas
.GLCanvas_SetColour(*args
, **kwargs
)
104 def SwapBuffers(*args
, **kwargs
):
106 return _glcanvas
.GLCanvas_SwapBuffers(*args
, **kwargs
)
108 def GetContext(*args
, **kwargs
):
109 """GetContext() -> GLContext"""
110 return _glcanvas
.GLCanvas_GetContext(*args
, **kwargs
)
113 class GLCanvasPtr(GLCanvas
):
114 def __init__(self
, this
):
116 if not hasattr(self
,"thisown"): self
.thisown
= 0
117 self
.__class
__ = GLCanvas
118 _glcanvas
.GLCanvas_swigregister(GLCanvasPtr
)
120 def wxGLCanvasWithContext(*args
, **kwargs
):
121 """wxGLCanvasWithContext(Window parent, GLContext shared=None, int id=-1, Point pos=DefaultPosition,
122 Size size=DefaultSize,
123 long style=0, wxString name=wxPyGLCanvasNameStr,
124 int attribList=None, wxPalette palette=wxNullPalette) -> GLCanvas"""
125 val
= _glcanvas
.new_wxGLCanvasWithContext(*args
, **kwargs
)