1 # This file was created automatically by SWIG.
12 from clip_dnd
import *
24 from stattool
import *
26 from controls
import *
28 from controls2
import *
30 from windows2
import *
34 from windows3
import *
44 class wxGLContextPtr(wxObjectPtr
):
45 def __init__(self
,this
):
48 def __del__(self
,glcanvasc
=glcanvasc
):
49 if self
.thisown
== 1 :
50 glcanvasc
.delete_wxGLContext(self
)
51 def SetCurrent(self
, *_args
, **_kwargs
):
52 val
= apply(glcanvasc
.wxGLContext_SetCurrent
,(self
,) + _args
, _kwargs
)
54 def SetColour(self
, *_args
, **_kwargs
):
55 val
= apply(glcanvasc
.wxGLContext_SetColour
,(self
,) + _args
, _kwargs
)
57 def SwapBuffers(self
, *_args
, **_kwargs
):
58 val
= apply(glcanvasc
.wxGLContext_SwapBuffers
,(self
,) + _args
, _kwargs
)
60 def GetWindow(self
, *_args
, **_kwargs
):
61 val
= apply(glcanvasc
.wxGLContext_GetWindow
,(self
,) + _args
, _kwargs
)
64 return "<C wxGLContext instance at %s>" % (self
.this
,)
65 class wxGLContext(wxGLContextPtr
):
66 def __init__(self
,this
):
72 class wxGLCanvasPtr(wxWindowPtr
):
73 def __init__(self
,this
):
76 def SetCurrent(self
, *_args
, **_kwargs
):
77 val
= apply(glcanvasc
.wxGLCanvas_SetCurrent
,(self
,) + _args
, _kwargs
)
79 def SetColour(self
, *_args
, **_kwargs
):
80 val
= apply(glcanvasc
.wxGLCanvas_SetColour
,(self
,) + _args
, _kwargs
)
82 def SwapBuffers(self
, *_args
, **_kwargs
):
83 val
= apply(glcanvasc
.wxGLCanvas_SwapBuffers
,(self
,) + _args
, _kwargs
)
85 def GetContext(self
, *_args
, **_kwargs
):
86 val
= apply(glcanvasc
.wxGLCanvas_GetContext
,(self
,) + _args
, _kwargs
)
87 if val
: val
= wxGLContextPtr(val
)
90 return "<C wxGLCanvas instance at %s>" % (self
.this
,)
91 class wxGLCanvas(wxGLCanvasPtr
):
92 def __init__(self
,*_args
,**_kwargs
):
93 self
.this
= apply(glcanvasc
.new_wxGLCanvas
,_args
,_kwargs
)
95 self
._setOORInfo
(self
)
99 def wxGLCanvasWithContext(*_args
,**_kwargs
):
100 val
= wxGLCanvasPtr(apply(glcanvasc
.new_wxGLCanvasWithContext
,_args
,_kwargs
))
102 val
._setOORInfo
(self
)
108 #-------------- FUNCTION WRAPPERS ------------------
112 #-------------- VARIABLE WRAPPERS ------------------
114 WX_GL_RGBA
= glcanvasc
.WX_GL_RGBA
115 WX_GL_BUFFER_SIZE
= glcanvasc
.WX_GL_BUFFER_SIZE
116 WX_GL_LEVEL
= glcanvasc
.WX_GL_LEVEL
117 WX_GL_DOUBLEBUFFER
= glcanvasc
.WX_GL_DOUBLEBUFFER
118 WX_GL_STEREO
= glcanvasc
.WX_GL_STEREO
119 WX_GL_AUX_BUFFERS
= glcanvasc
.WX_GL_AUX_BUFFERS
120 WX_GL_MIN_RED
= glcanvasc
.WX_GL_MIN_RED
121 WX_GL_MIN_GREEN
= glcanvasc
.WX_GL_MIN_GREEN
122 WX_GL_MIN_BLUE
= glcanvasc
.WX_GL_MIN_BLUE
123 WX_GL_MIN_ALPHA
= glcanvasc
.WX_GL_MIN_ALPHA
124 WX_GL_DEPTH_SIZE
= glcanvasc
.WX_GL_DEPTH_SIZE
125 WX_GL_STENCIL_SIZE
= glcanvasc
.WX_GL_STENCIL_SIZE
126 WX_GL_MIN_ACCUM_RED
= glcanvasc
.WX_GL_MIN_ACCUM_RED
127 WX_GL_MIN_ACCUM_GREEN
= glcanvasc
.WX_GL_MIN_ACCUM_GREEN
128 WX_GL_MIN_ACCUM_BLUE
= glcanvasc
.WX_GL_MIN_ACCUM_BLUE
129 WX_GL_MIN_ACCUM_ALPHA
= glcanvasc
.WX_GL_MIN_ACCUM_ALPHA