]>
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.
5 `GLCanvas` provides an OpenGL Context on a `wx.Window`.
12 __docfilter__
= wx
.__DocFilter
(globals())
13 class GLContext(_core
.Object
):
15 return "<%s.%s; proxy of C++ wxGLContext instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
16 def __init__(self
, *args
, **kwargs
):
18 __init__(self, bool isRGB, GLCanvas win, wxPalette palette=wxNullPalette,
19 GLContext other=None) -> GLContext
21 newobj
= _glcanvas
.new_GLContext(*args
, **kwargs
)
22 self
.this
= newobj
.this
25 def __del__(self
, destroy
=_glcanvas
.delete_GLContext
):
28 if self
.thisown
: destroy(self
)
31 def SetCurrent(*args
, **kwargs
):
32 """SetCurrent(self)"""
33 return _glcanvas
.GLContext_SetCurrent(*args
, **kwargs
)
35 def SetColour(*args
, **kwargs
):
36 """SetColour(self, String colour)"""
37 return _glcanvas
.GLContext_SetColour(*args
, **kwargs
)
39 def SwapBuffers(*args
, **kwargs
):
40 """SwapBuffers(self)"""
41 return _glcanvas
.GLContext_SwapBuffers(*args
, **kwargs
)
43 def SetupPixelFormat(*args
, **kwargs
):
44 """SetupPixelFormat(self)"""
45 return _glcanvas
.GLContext_SetupPixelFormat(*args
, **kwargs
)
47 def SetupPalette(*args
, **kwargs
):
48 """SetupPalette(self, wxPalette palette)"""
49 return _glcanvas
.GLContext_SetupPalette(*args
, **kwargs
)
51 def CreateDefaultPalette(*args
, **kwargs
):
52 """CreateDefaultPalette(self) -> wxPalette"""
53 return _glcanvas
.GLContext_CreateDefaultPalette(*args
, **kwargs
)
55 def GetPalette(*args
, **kwargs
):
56 """GetPalette(self) -> wxPalette"""
57 return _glcanvas
.GLContext_GetPalette(*args
, **kwargs
)
59 def GetWindow(*args
, **kwargs
):
60 """GetWindow(self) -> Window"""
61 return _glcanvas
.GLContext_GetWindow(*args
, **kwargs
)
64 class GLContextPtr(GLContext
):
65 def __init__(self
, this
):
67 if not hasattr(self
,"thisown"): self
.thisown
= 0
68 self
.__class
__ = GLContext
69 _glcanvas
.GLContext_swigregister(GLContextPtr
)
71 GLCanvasNameStr
= cvar
.GLCanvasNameStr
73 WX_GL_RGBA
= _glcanvas
.WX_GL_RGBA
74 WX_GL_BUFFER_SIZE
= _glcanvas
.WX_GL_BUFFER_SIZE
75 WX_GL_LEVEL
= _glcanvas
.WX_GL_LEVEL
76 WX_GL_DOUBLEBUFFER
= _glcanvas
.WX_GL_DOUBLEBUFFER
77 WX_GL_STEREO
= _glcanvas
.WX_GL_STEREO
78 WX_GL_AUX_BUFFERS
= _glcanvas
.WX_GL_AUX_BUFFERS
79 WX_GL_MIN_RED
= _glcanvas
.WX_GL_MIN_RED
80 WX_GL_MIN_GREEN
= _glcanvas
.WX_GL_MIN_GREEN
81 WX_GL_MIN_BLUE
= _glcanvas
.WX_GL_MIN_BLUE
82 WX_GL_MIN_ALPHA
= _glcanvas
.WX_GL_MIN_ALPHA
83 WX_GL_DEPTH_SIZE
= _glcanvas
.WX_GL_DEPTH_SIZE
84 WX_GL_STENCIL_SIZE
= _glcanvas
.WX_GL_STENCIL_SIZE
85 WX_GL_MIN_ACCUM_RED
= _glcanvas
.WX_GL_MIN_ACCUM_RED
86 WX_GL_MIN_ACCUM_GREEN
= _glcanvas
.WX_GL_MIN_ACCUM_GREEN
87 WX_GL_MIN_ACCUM_BLUE
= _glcanvas
.WX_GL_MIN_ACCUM_BLUE
88 WX_GL_MIN_ACCUM_ALPHA
= _glcanvas
.WX_GL_MIN_ACCUM_ALPHA
89 class GLCanvas(_core
.Window
):
91 return "<%s.%s; proxy of C++ wxGLCanvas instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
92 def __init__(self
, *args
, **kwargs
):
94 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
95 Size size=DefaultSize, long style=0, String name=GLCanvasNameStr,
96 int attribList=None, wxPalette palette=wxNullPalette) -> GLCanvas
98 newobj
= _glcanvas
.new_GLCanvas(*args
, **kwargs
)
99 self
.this
= newobj
.this
102 self
._setOORInfo
(self
)
104 def SetCurrent(*args
, **kwargs
):
105 """SetCurrent(self)"""
106 return _glcanvas
.GLCanvas_SetCurrent(*args
, **kwargs
)
108 def SetColour(*args
, **kwargs
):
109 """SetColour(self, String colour)"""
110 return _glcanvas
.GLCanvas_SetColour(*args
, **kwargs
)
112 def SwapBuffers(*args
, **kwargs
):
113 """SwapBuffers(self)"""
114 return _glcanvas
.GLCanvas_SwapBuffers(*args
, **kwargs
)
116 def GetContext(*args
, **kwargs
):
117 """GetContext(self) -> GLContext"""
118 return _glcanvas
.GLCanvas_GetContext(*args
, **kwargs
)
121 class GLCanvasPtr(GLCanvas
):
122 def __init__(self
, this
):
124 if not hasattr(self
,"thisown"): self
.thisown
= 0
125 self
.__class
__ = GLCanvas
126 _glcanvas
.GLCanvas_swigregister(GLCanvasPtr
)
128 def GLCanvasWithContext(*args
, **kwargs
):
130 GLCanvasWithContext(Window parent, GLContext shared=None, int id=-1, Point pos=DefaultPosition,
131 Size size=DefaultSize,
132 long style=0, String name=GLCanvasNameStr,
133 int attribList=None, wxPalette palette=wxNullPalette) -> GLCanvas
135 val
= _glcanvas
.new_GLCanvasWithContext(*args
, **kwargs
)