]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/contrib/glcanvas/mac/glcanvas.py
In GetPath(), don't append separator if there's already one at the end
[wxWidgets.git] / wxPython / contrib / glcanvas / mac / 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,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)
64 return val
65 def __repr__(self):
66 return "<C wxGLContext instance at %s>" % (self.this,)
67class wxGLContext(wxGLContextPtr):
68 def __init__(self,this):
69 self.this = this
70
71
72
73
74class wxGLCanvasPtr(wxWindowPtr):
75 def __init__(self,this):
76 self.this = this
77 self.thisown = 0
78 def SetCurrent(self, *_args, **_kwargs):
79 val = apply(glcanvasc.wxGLCanvas_SetCurrent,(self,) + _args, _kwargs)
80 return val
81 def SetColour(self, *_args, **_kwargs):
82 val = apply(glcanvasc.wxGLCanvas_SetColour,(self,) + _args, _kwargs)
83 return val
84 def SwapBuffers(self, *_args, **_kwargs):
85 val = apply(glcanvasc.wxGLCanvas_SwapBuffers,(self,) + _args, _kwargs)
86 return val
87 def GetContext(self, *_args, **_kwargs):
88 val = apply(glcanvasc.wxGLCanvas_GetContext,(self,) + _args, _kwargs)
89 if val: val = wxGLContextPtr(val)
90 return val
91 def __repr__(self):
92 return "<C wxGLCanvas instance at %s>" % (self.this,)
93class wxGLCanvas(wxGLCanvasPtr):
94 def __init__(self,*_args,**_kwargs):
95 self.this = apply(glcanvasc.new_wxGLCanvas,_args,_kwargs)
96 self.thisown = 1
97 self._setOORInfo(self)
98
99
100
101def wxGLCanvasWithContext(*_args,**_kwargs):
102 val = wxGLCanvasPtr(apply(glcanvasc.new_wxGLCanvasWithContext,_args,_kwargs))
103 val.thisown = 1
104 val._setOORInfo(self)
105 return val
106
107
108
109
110#-------------- FUNCTION WRAPPERS ------------------
111
112
113
114#-------------- VARIABLE WRAPPERS ------------------
115
116WX_GL_RGBA = glcanvasc.WX_GL_RGBA
117WX_GL_BUFFER_SIZE = glcanvasc.WX_GL_BUFFER_SIZE
118WX_GL_LEVEL = glcanvasc.WX_GL_LEVEL
119WX_GL_DOUBLEBUFFER = glcanvasc.WX_GL_DOUBLEBUFFER
120WX_GL_STEREO = glcanvasc.WX_GL_STEREO
121WX_GL_AUX_BUFFERS = glcanvasc.WX_GL_AUX_BUFFERS
122WX_GL_MIN_RED = glcanvasc.WX_GL_MIN_RED
123WX_GL_MIN_GREEN = glcanvasc.WX_GL_MIN_GREEN
124WX_GL_MIN_BLUE = glcanvasc.WX_GL_MIN_BLUE
125WX_GL_MIN_ALPHA = glcanvasc.WX_GL_MIN_ALPHA
126WX_GL_DEPTH_SIZE = glcanvasc.WX_GL_DEPTH_SIZE
127WX_GL_STENCIL_SIZE = glcanvasc.WX_GL_STENCIL_SIZE
128WX_GL_MIN_ACCUM_RED = glcanvasc.WX_GL_MIN_ACCUM_RED
129WX_GL_MIN_ACCUM_GREEN = glcanvasc.WX_GL_MIN_ACCUM_GREEN
130WX_GL_MIN_ACCUM_BLUE = glcanvasc.WX_GL_MIN_ACCUM_BLUE
131WX_GL_MIN_ACCUM_ALPHA = glcanvasc.WX_GL_MIN_ACCUM_ALPHA