1 # This file was created automatically by SWIG.
14 from clip_dnd
import *
26 from stattool
import *
28 from controls
import *
30 from controls2
import *
32 from windows2
import *
36 from windows3
import *
46 class wxGLContextPtr(wxObjectPtr
):
47 def __init__(self
,this
):
50 def __del__(self
,glcanvasc
=glcanvasc
):
51 if self
.thisown
== 1 :
52 glcanvasc
.delete_wxGLContext(self
)
53 def SetCurrent(self
, *_args
, **_kwargs
):
54 val
= apply(glcanvasc
.wxGLContext_SetCurrent
,(self
,) + _args
, _kwargs
)
56 def SetColour(self
, *_args
, **_kwargs
):
57 val
= apply(glcanvasc
.wxGLContext_SetColour
,(self
,) + _args
, _kwargs
)
59 def SwapBuffers(self
, *_args
, **_kwargs
):
60 val
= apply(glcanvasc
.wxGLContext_SwapBuffers
,(self
,) + _args
, _kwargs
)
62 def GetWindow(self
, *_args
, **_kwargs
):
63 val
= apply(glcanvasc
.wxGLContext_GetWindow
,(self
,) + _args
, _kwargs
)
66 return "<C wxGLContext instance at %s>" % (self
.this
,)
67 class wxGLContext(wxGLContextPtr
):
68 def __init__(self
,this
):
74 class wxGLCanvasPtr(wxWindowPtr
):
75 def __init__(self
,this
):
78 def SetCurrent(self
, *_args
, **_kwargs
):
79 val
= apply(glcanvasc
.wxGLCanvas_SetCurrent
,(self
,) + _args
, _kwargs
)
81 def SetColour(self
, *_args
, **_kwargs
):
82 val
= apply(glcanvasc
.wxGLCanvas_SetColour
,(self
,) + _args
, _kwargs
)
84 def SwapBuffers(self
, *_args
, **_kwargs
):
85 val
= apply(glcanvasc
.wxGLCanvas_SwapBuffers
,(self
,) + _args
, _kwargs
)
87 def GetContext(self
, *_args
, **_kwargs
):
88 val
= apply(glcanvasc
.wxGLCanvas_GetContext
,(self
,) + _args
, _kwargs
)
89 if val
: val
= wxGLContextPtr(val
)
92 return "<C wxGLCanvas instance at %s>" % (self
.this
,)
93 class wxGLCanvas(wxGLCanvasPtr
):
94 def __init__(self
,*_args
,**_kwargs
):
95 self
.this
= apply(glcanvasc
.new_wxGLCanvas
,_args
,_kwargs
)
97 self
._setOORInfo
(self
)
101 def wxGLCanvasWithContext(*_args
,**_kwargs
):
102 val
= wxGLCanvasPtr(apply(glcanvasc
.new_wxGLCanvasWithContext
,_args
,_kwargs
))
104 val
._setOORInfo
(self
)
110 #-------------- FUNCTION WRAPPERS ------------------
114 #-------------- VARIABLE WRAPPERS ------------------
116 WX_GL_RGBA
= glcanvasc
.WX_GL_RGBA
117 WX_GL_BUFFER_SIZE
= glcanvasc
.WX_GL_BUFFER_SIZE
118 WX_GL_LEVEL
= glcanvasc
.WX_GL_LEVEL
119 WX_GL_DOUBLEBUFFER
= glcanvasc
.WX_GL_DOUBLEBUFFER
120 WX_GL_STEREO
= glcanvasc
.WX_GL_STEREO
121 WX_GL_AUX_BUFFERS
= glcanvasc
.WX_GL_AUX_BUFFERS
122 WX_GL_MIN_RED
= glcanvasc
.WX_GL_MIN_RED
123 WX_GL_MIN_GREEN
= glcanvasc
.WX_GL_MIN_GREEN
124 WX_GL_MIN_BLUE
= glcanvasc
.WX_GL_MIN_BLUE
125 WX_GL_MIN_ALPHA
= glcanvasc
.WX_GL_MIN_ALPHA
126 WX_GL_DEPTH_SIZE
= glcanvasc
.WX_GL_DEPTH_SIZE
127 WX_GL_STENCIL_SIZE
= glcanvasc
.WX_GL_STENCIL_SIZE
128 WX_GL_MIN_ACCUM_RED
= glcanvasc
.WX_GL_MIN_ACCUM_RED
129 WX_GL_MIN_ACCUM_GREEN
= glcanvasc
.WX_GL_MIN_ACCUM_GREEN
130 WX_GL_MIN_ACCUM_BLUE
= glcanvasc
.WX_GL_MIN_ACCUM_BLUE
131 WX_GL_MIN_ACCUM_ALPHA
= glcanvasc
.WX_GL_MIN_ACCUM_ALPHA