]> git.saurik.com Git - wxWidgets.git/blame - wxPython/contrib/glcanvas/msw/glcanvas.py
added /GX- to get around an internal compiler error in MSVC. I don't
[wxWidgets.git] / wxPython / contrib / glcanvas / msw / glcanvas.py
CommitLineData
325274bb
RD
1# This file was created automatically by SWIG.
2import glcanvasc
3
4from misc import *
5
6from misc2 import *
7
8from windows import *
9
10from gdi import *
11
d2103cf2
RD
12from clip_dnd import *
13
325274bb
RD
14from events import *
15
16from mdi import *
17
18from frames import *
19
20from stattool import *
21
22from controls import *
23
24from controls2 import *
25
26from windows2 import *
27
28from cmndlgs import *
29
30from windows3 import *
31
32from image import *
33
34from printfw import *
d2103cf2
RD
35
36from sizers import *
325274bb
RD
37import wx
38class wxGLContextPtr :
39 def __init__(self,this):
40 self.this = this
41 self.thisown = 0
42 def __del__(self,glcanvasc=glcanvasc):
43 if self.thisown == 1 :
44 glcanvasc.delete_wxGLContext(self)
45 def SetCurrent(self, *_args, **_kwargs):
46 val = apply(glcanvasc.wxGLContext_SetCurrent,(self,) + _args, _kwargs)
47 return val
48 def SetColour(self, *_args, **_kwargs):
49 val = apply(glcanvasc.wxGLContext_SetColour,(self,) + _args, _kwargs)
50 return val
51 def SwapBuffers(self, *_args, **_kwargs):
52 val = apply(glcanvasc.wxGLContext_SwapBuffers,(self,) + _args, _kwargs)
53 return val
54 def GetWindow(self, *_args, **_kwargs):
55 val = apply(glcanvasc.wxGLContext_GetWindow,(self,) + _args, _kwargs)
56 if val: val = wxWindowPtr(val)
57 return val
58 def __repr__(self):
59 return "<C wxGLContext instance at %s>" % (self.this,)
60class wxGLContext(wxGLContextPtr):
61 def __init__(self,*_args,**_kwargs):
62 self.this = apply(glcanvasc.new_wxGLContext,_args,_kwargs)
63 self.thisown = 1
64
65
66
67
68class wxGLCanvasPtr(wxScrolledWindowPtr):
69 def __init__(self,this):
70 self.this = this
71 self.thisown = 0
72 def SetCurrent(self, *_args, **_kwargs):
73 val = apply(glcanvasc.wxGLCanvas_SetCurrent,(self,) + _args, _kwargs)
74 return val
75 def SetColour(self, *_args, **_kwargs):
76 val = apply(glcanvasc.wxGLCanvas_SetColour,(self,) + _args, _kwargs)
77 return val
78 def SwapBuffers(self, *_args, **_kwargs):
79 val = apply(glcanvasc.wxGLCanvas_SwapBuffers,(self,) + _args, _kwargs)
80 return val
81 def GetContext(self, *_args, **_kwargs):
82 val = apply(glcanvasc.wxGLCanvas_GetContext,(self,) + _args, _kwargs)
83 if val: val = wxGLContextPtr(val)
84 return val
85 def __repr__(self):
86 return "<C wxGLCanvas instance at %s>" % (self.this,)
87class wxGLCanvas(wxGLCanvasPtr):
88 def __init__(self,*_args,**_kwargs):
89 self.this = apply(glcanvasc.new_wxGLCanvas,_args,_kwargs)
90 self.thisown = 1
f6bcfd97 91 #wx._StdWindowCallbacks(self)
325274bb
RD
92
93
94
95
96
97
98#-------------- FUNCTION WRAPPERS ------------------
99
325274bb
RD
100
101
102#-------------- VARIABLE WRAPPERS ------------------
103