]> git.saurik.com Git - wxWidgets.git/blame - wxPython/contrib/glcanvas/mac/glcanvas.py
Applied and merged patch 486364, which enables wxPython to be built in
[wxWidgets.git] / wxPython / contrib / glcanvas / mac / glcanvas.py
CommitLineData
e6056257
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
12from clip_dnd import *
13
14from events import *
15
16from streams import *
17
80cb3dbc
RD
18from utils import *
19
e6056257
RD
20from mdi import *
21
22from frames import *
23
24from stattool import *
25
26from controls import *
27
28from controls2 import *
29
30from windows2 import *
31
32from cmndlgs import *
33
34from windows3 import *
35
36from image import *
37
38from printfw import *
39
40from sizers import *
41
42from filesys import *
e6056257
RD
43import wx
44class wxGLContextPtr(wxObjectPtr):
45 def __init__(self,this):
46 self.this = this
47 self.thisown = 0
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)
53 return val
54 def SetColour(self, *_args, **_kwargs):
55 val = apply(glcanvasc.wxGLContext_SetColour,(self,) + _args, _kwargs)
56 return val
57 def SwapBuffers(self, *_args, **_kwargs):
58 val = apply(glcanvasc.wxGLContext_SwapBuffers,(self,) + _args, _kwargs)
59 return val
60 def GetWindow(self, *_args, **_kwargs):
61 val = apply(glcanvasc.wxGLContext_GetWindow,(self,) + _args, _kwargs)
62 return val
63 def __repr__(self):
64 return "<C wxGLContext instance at %s>" % (self.this,)
65class wxGLContext(wxGLContextPtr):
b6e5c445
RD
66 def __init__(self,this):
67 self.this = this
e6056257
RD
68
69
70
71
b6e5c445 72class wxGLCanvasPtr(wxWindowPtr):
e6056257
RD
73 def __init__(self,this):
74 self.this = this
75 self.thisown = 0
76 def SetCurrent(self, *_args, **_kwargs):
77 val = apply(glcanvasc.wxGLCanvas_SetCurrent,(self,) + _args, _kwargs)
78 return val
79 def SetColour(self, *_args, **_kwargs):
80 val = apply(glcanvasc.wxGLCanvas_SetColour,(self,) + _args, _kwargs)
81 return val
82 def SwapBuffers(self, *_args, **_kwargs):
83 val = apply(glcanvasc.wxGLCanvas_SwapBuffers,(self,) + _args, _kwargs)
84 return val
85 def GetContext(self, *_args, **_kwargs):
86 val = apply(glcanvasc.wxGLCanvas_GetContext,(self,) + _args, _kwargs)
87 if val: val = wxGLContextPtr(val)
88 return val
89 def __repr__(self):
90 return "<C wxGLCanvas instance at %s>" % (self.this,)
91class wxGLCanvas(wxGLCanvasPtr):
92 def __init__(self,*_args,**_kwargs):
93 self.this = apply(glcanvasc.new_wxGLCanvas,_args,_kwargs)
94 self.thisown = 1
95 self._setOORInfo(self)
96
97
98
99def wxGLCanvasWithContext(*_args,**_kwargs):
100 val = wxGLCanvasPtr(apply(glcanvasc.new_wxGLCanvasWithContext,_args,_kwargs))
101 val.thisown = 1
102 val._setOORInfo(self)
103 return val
104
105
106
107
108#-------------- FUNCTION WRAPPERS ------------------
109
110
111
112#-------------- VARIABLE WRAPPERS ------------------
113
80cb3dbc
RD
114WX_GL_RGBA = glcanvasc.WX_GL_RGBA
115WX_GL_BUFFER_SIZE = glcanvasc.WX_GL_BUFFER_SIZE
116WX_GL_LEVEL = glcanvasc.WX_GL_LEVEL
117WX_GL_DOUBLEBUFFER = glcanvasc.WX_GL_DOUBLEBUFFER
118WX_GL_STEREO = glcanvasc.WX_GL_STEREO
119WX_GL_AUX_BUFFERS = glcanvasc.WX_GL_AUX_BUFFERS
120WX_GL_MIN_RED = glcanvasc.WX_GL_MIN_RED
121WX_GL_MIN_GREEN = glcanvasc.WX_GL_MIN_GREEN
122WX_GL_MIN_BLUE = glcanvasc.WX_GL_MIN_BLUE
123WX_GL_MIN_ALPHA = glcanvasc.WX_GL_MIN_ALPHA
124WX_GL_DEPTH_SIZE = glcanvasc.WX_GL_DEPTH_SIZE
125WX_GL_STENCIL_SIZE = glcanvasc.WX_GL_STENCIL_SIZE
126WX_GL_MIN_ACCUM_RED = glcanvasc.WX_GL_MIN_ACCUM_RED
127WX_GL_MIN_ACCUM_GREEN = glcanvasc.WX_GL_MIN_ACCUM_GREEN
128WX_GL_MIN_ACCUM_BLUE = glcanvasc.WX_GL_MIN_ACCUM_BLUE
129WX_GL_MIN_ACCUM_ALPHA = glcanvasc.WX_GL_MIN_ACCUM_ALPHA