]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/contrib/glcanvas/gtk/glcanvas.py
added visual c++ makefiles
[wxWidgets.git] / wxPython / contrib / glcanvas / gtk / glcanvas.py
... / ...
CommitLineData
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
12from fonts import *
13
14from clip_dnd import *
15
16from events import *
17
18from streams import *
19
20from utils import *
21
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 *
41
42from sizers import *
43
44from filesys import *
45import wx
46class wxGLContextPtr(wxObjectPtr):
47 def __init__(self,this):
48 self.this = this
49 self.thisown = 0
50 def __del__(self, delfunc=glcanvasc.delete_wxGLContext):
51 if self.thisown == 1:
52 try:
53 delfunc(self)
54 except:
55 pass
56 def SetCurrent(self, *_args, **_kwargs):
57 val = apply(glcanvasc.wxGLContext_SetCurrent,(self,) + _args, _kwargs)
58 return val
59 def SetColour(self, *_args, **_kwargs):
60 val = apply(glcanvasc.wxGLContext_SetColour,(self,) + _args, _kwargs)
61 return val
62 def SwapBuffers(self, *_args, **_kwargs):
63 val = apply(glcanvasc.wxGLContext_SwapBuffers,(self,) + _args, _kwargs)
64 return val
65 def SetupPixelFormat(self, *_args, **_kwargs):
66 val = apply(glcanvasc.wxGLContext_SetupPixelFormat,(self,) + _args, _kwargs)
67 return val
68 def SetupPalette(self, *_args, **_kwargs):
69 val = apply(glcanvasc.wxGLContext_SetupPalette,(self,) + _args, _kwargs)
70 return val
71 def CreateDefaultPalette(self, *_args, **_kwargs):
72 val = apply(glcanvasc.wxGLContext_CreateDefaultPalette,(self,) + _args, _kwargs)
73 if val: val = wxPalettePtr(val) ; val.thisown = 1
74 return val
75 def GetPalette(self, *_args, **_kwargs):
76 val = apply(glcanvasc.wxGLContext_GetPalette,(self,) + _args, _kwargs)
77 if val: val = wxPalettePtr(val)
78 return val
79 def GetWindow(self, *_args, **_kwargs):
80 val = apply(glcanvasc.wxGLContext_GetWindow,(self,) + _args, _kwargs)
81 return val
82 def __repr__(self):
83 return "<C wxGLContext instance at %s>" % (self.this,)
84class wxGLContext(wxGLContextPtr):
85 def __init__(self,*_args,**_kwargs):
86 self.this = apply(glcanvasc.new_wxGLContext,_args,_kwargs)
87 self.thisown = 1
88
89
90
91
92class wxGLCanvasPtr(wxWindowPtr):
93 def __init__(self,this):
94 self.this = this
95 self.thisown = 0
96 def SetCurrent(self, *_args, **_kwargs):
97 val = apply(glcanvasc.wxGLCanvas_SetCurrent,(self,) + _args, _kwargs)
98 return val
99 def SetColour(self, *_args, **_kwargs):
100 val = apply(glcanvasc.wxGLCanvas_SetColour,(self,) + _args, _kwargs)
101 return val
102 def SwapBuffers(self, *_args, **_kwargs):
103 val = apply(glcanvasc.wxGLCanvas_SwapBuffers,(self,) + _args, _kwargs)
104 return val
105 def GetContext(self, *_args, **_kwargs):
106 val = apply(glcanvasc.wxGLCanvas_GetContext,(self,) + _args, _kwargs)
107 if val: val = wxGLContextPtr(val)
108 return val
109 def __repr__(self):
110 return "<C wxGLCanvas instance at %s>" % (self.this,)
111class wxGLCanvas(wxGLCanvasPtr):
112 def __init__(self,*_args,**_kwargs):
113 self.this = apply(glcanvasc.new_wxGLCanvas,_args,_kwargs)
114 self.thisown = 1
115 self._setOORInfo(self)
116
117
118
119def wxGLCanvasWithContext(*_args,**_kwargs):
120 val = wxGLCanvasPtr(apply(glcanvasc.new_wxGLCanvasWithContext,_args,_kwargs))
121 val.thisown = 1
122 val._setOORInfo(self)
123 return val
124
125
126
127
128#-------------- FUNCTION WRAPPERS ------------------
129
130
131
132#-------------- VARIABLE WRAPPERS ------------------
133
134WX_GL_RGBA = glcanvasc.WX_GL_RGBA
135WX_GL_BUFFER_SIZE = glcanvasc.WX_GL_BUFFER_SIZE
136WX_GL_LEVEL = glcanvasc.WX_GL_LEVEL
137WX_GL_DOUBLEBUFFER = glcanvasc.WX_GL_DOUBLEBUFFER
138WX_GL_STEREO = glcanvasc.WX_GL_STEREO
139WX_GL_AUX_BUFFERS = glcanvasc.WX_GL_AUX_BUFFERS
140WX_GL_MIN_RED = glcanvasc.WX_GL_MIN_RED
141WX_GL_MIN_GREEN = glcanvasc.WX_GL_MIN_GREEN
142WX_GL_MIN_BLUE = glcanvasc.WX_GL_MIN_BLUE
143WX_GL_MIN_ALPHA = glcanvasc.WX_GL_MIN_ALPHA
144WX_GL_DEPTH_SIZE = glcanvasc.WX_GL_DEPTH_SIZE
145WX_GL_STENCIL_SIZE = glcanvasc.WX_GL_STENCIL_SIZE
146WX_GL_MIN_ACCUM_RED = glcanvasc.WX_GL_MIN_ACCUM_RED
147WX_GL_MIN_ACCUM_GREEN = glcanvasc.WX_GL_MIN_ACCUM_GREEN
148WX_GL_MIN_ACCUM_BLUE = glcanvasc.WX_GL_MIN_ACCUM_BLUE
149WX_GL_MIN_ACCUM_ALPHA = glcanvasc.WX_GL_MIN_ACCUM_ALPHA