]> git.saurik.com Git - wxWidgets.git/blame - wxPython/contrib/glcanvas/msw/glcanvas.py
SWIGged updates for wxMac
[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
68bc8549
RD
12from fonts import *
13
d2103cf2
RD
14from clip_dnd import *
15
325274bb
RD
16from events import *
17
dbbb98cd
RD
18from streams import *
19
c3819e4a
RD
20from utils import *
21
325274bb
RD
22from mdi import *
23
24from frames import *
25
26from stattool import *
27
28from controls import *
29
30from controls2 import *
31
32from windows2 import *
33
34from cmndlgs import *
35
36from windows3 import *
37
38from image import *
39
40from printfw import *
d2103cf2
RD
41
42from sizers import *
dbbb98cd
RD
43
44from filesys import *
325274bb 45import wx
9416aa89 46class wxGLContextPtr(wxObjectPtr):
325274bb
RD
47 def __init__(self,this):
48 self.this = this
49 self.thisown = 0
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)
55 return val
56 def SetColour(self, *_args, **_kwargs):
57 val = apply(glcanvasc.wxGLContext_SetColour,(self,) + _args, _kwargs)
58 return val
59 def SwapBuffers(self, *_args, **_kwargs):
60 val = apply(glcanvasc.wxGLContext_SwapBuffers,(self,) + _args, _kwargs)
61 return val
62 def GetWindow(self, *_args, **_kwargs):
63 val = apply(glcanvasc.wxGLContext_GetWindow,(self,) + _args, _kwargs)
325274bb
RD
64 return val
65 def __repr__(self):
66 return "<C wxGLContext instance at %s>" % (self.this,)
67class wxGLContext(wxGLContextPtr):
68 def __init__(self,*_args,**_kwargs):
69 self.this = apply(glcanvasc.new_wxGLContext,_args,_kwargs)
70 self.thisown = 1
71
72
73
74
ab11ebfa 75class wxGLCanvasPtr(wxWindowPtr):
325274bb
RD
76 def __init__(self,this):
77 self.this = this
78 self.thisown = 0
79 def SetCurrent(self, *_args, **_kwargs):
80 val = apply(glcanvasc.wxGLCanvas_SetCurrent,(self,) + _args, _kwargs)
81 return val
82 def SetColour(self, *_args, **_kwargs):
83 val = apply(glcanvasc.wxGLCanvas_SetColour,(self,) + _args, _kwargs)
84 return val
85 def SwapBuffers(self, *_args, **_kwargs):
86 val = apply(glcanvasc.wxGLCanvas_SwapBuffers,(self,) + _args, _kwargs)
87 return val
88 def GetContext(self, *_args, **_kwargs):
89 val = apply(glcanvasc.wxGLCanvas_GetContext,(self,) + _args, _kwargs)
90 if val: val = wxGLContextPtr(val)
91 return val
0122b7e3
RD
92 def SetupPixelFormat(self, *_args, **_kwargs):
93 val = apply(glcanvasc.wxGLCanvas_SetupPixelFormat,(self,) + _args, _kwargs)
94 return val
95 def SetupPalette(self, *_args, **_kwargs):
96 val = apply(glcanvasc.wxGLCanvas_SetupPalette,(self,) + _args, _kwargs)
97 return val
98 def CreateDefaultPalette(self, *_args, **_kwargs):
99 val = apply(glcanvasc.wxGLCanvas_CreateDefaultPalette,(self,) + _args, _kwargs)
100 if val: val = wxPalettePtr(val) ; val.thisown = 1
101 return val
102 def GetPalette(self, *_args, **_kwargs):
103 val = apply(glcanvasc.wxGLCanvas_GetPalette,(self,) + _args, _kwargs)
104 if val: val = wxPalettePtr(val)
105 return val
325274bb
RD
106 def __repr__(self):
107 return "<C wxGLCanvas instance at %s>" % (self.this,)
108class wxGLCanvas(wxGLCanvasPtr):
109 def __init__(self,*_args,**_kwargs):
110 self.this = apply(glcanvasc.new_wxGLCanvas,_args,_kwargs)
111 self.thisown = 1
0122b7e3
RD
112 self._setOORInfo(self)
113
325274bb
RD
114
115
0122b7e3
RD
116def wxGLCanvasWithContext(*_args,**_kwargs):
117 val = wxGLCanvasPtr(apply(glcanvasc.new_wxGLCanvasWithContext,_args,_kwargs))
118 val.thisown = 1
119 val._setOORInfo(self)
120 return val
325274bb
RD
121
122
123
124
125#-------------- FUNCTION WRAPPERS ------------------
126
325274bb
RD
127
128
129#-------------- VARIABLE WRAPPERS ------------------
130
c3819e4a
RD
131WX_GL_RGBA = glcanvasc.WX_GL_RGBA
132WX_GL_BUFFER_SIZE = glcanvasc.WX_GL_BUFFER_SIZE
133WX_GL_LEVEL = glcanvasc.WX_GL_LEVEL
134WX_GL_DOUBLEBUFFER = glcanvasc.WX_GL_DOUBLEBUFFER
135WX_GL_STEREO = glcanvasc.WX_GL_STEREO
136WX_GL_AUX_BUFFERS = glcanvasc.WX_GL_AUX_BUFFERS
137WX_GL_MIN_RED = glcanvasc.WX_GL_MIN_RED
138WX_GL_MIN_GREEN = glcanvasc.WX_GL_MIN_GREEN
139WX_GL_MIN_BLUE = glcanvasc.WX_GL_MIN_BLUE
140WX_GL_MIN_ALPHA = glcanvasc.WX_GL_MIN_ALPHA
141WX_GL_DEPTH_SIZE = glcanvasc.WX_GL_DEPTH_SIZE
142WX_GL_STENCIL_SIZE = glcanvasc.WX_GL_STENCIL_SIZE
143WX_GL_MIN_ACCUM_RED = glcanvasc.WX_GL_MIN_ACCUM_RED
144WX_GL_MIN_ACCUM_GREEN = glcanvasc.WX_GL_MIN_ACCUM_GREEN
145WX_GL_MIN_ACCUM_BLUE = glcanvasc.WX_GL_MIN_ACCUM_BLUE
146WX_GL_MIN_ACCUM_ALPHA = glcanvasc.WX_GL_MIN_ACCUM_ALPHA