]> git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/glcanvas/msw/glcanvas.py
enabled toolbar as it works now
[wxWidgets.git] / wxPython / contrib / glcanvas / msw / glcanvas.py
1 # This file was created automatically by SWIG.
2 import glcanvasc
3
4 from misc import *
5
6 from misc2 import *
7
8 from windows import *
9
10 from gdi import *
11
12 from clip_dnd import *
13
14 from events import *
15
16 from streams import *
17
18 from utils import *
19
20 from mdi import *
21
22 from frames import *
23
24 from stattool import *
25
26 from controls import *
27
28 from controls2 import *
29
30 from windows2 import *
31
32 from cmndlgs import *
33
34 from windows3 import *
35
36 from image import *
37
38 from printfw import *
39
40 from sizers import *
41
42 from filesys import *
43 import wx
44 class 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,)
65 class wxGLContext(wxGLContextPtr):
66 def __init__(self,*_args,**_kwargs):
67 self.this = apply(glcanvasc.new_wxGLContext,_args,_kwargs)
68 self.thisown = 1
69
70
71
72
73 class wxGLCanvasPtr(wxWindowPtr):
74 def __init__(self,this):
75 self.this = this
76 self.thisown = 0
77 def SetCurrent(self, *_args, **_kwargs):
78 val = apply(glcanvasc.wxGLCanvas_SetCurrent,(self,) + _args, _kwargs)
79 return val
80 def SetColour(self, *_args, **_kwargs):
81 val = apply(glcanvasc.wxGLCanvas_SetColour,(self,) + _args, _kwargs)
82 return val
83 def SwapBuffers(self, *_args, **_kwargs):
84 val = apply(glcanvasc.wxGLCanvas_SwapBuffers,(self,) + _args, _kwargs)
85 return val
86 def GetContext(self, *_args, **_kwargs):
87 val = apply(glcanvasc.wxGLCanvas_GetContext,(self,) + _args, _kwargs)
88 if val: val = wxGLContextPtr(val)
89 return val
90 def SetupPixelFormat(self, *_args, **_kwargs):
91 val = apply(glcanvasc.wxGLCanvas_SetupPixelFormat,(self,) + _args, _kwargs)
92 return val
93 def SetupPalette(self, *_args, **_kwargs):
94 val = apply(glcanvasc.wxGLCanvas_SetupPalette,(self,) + _args, _kwargs)
95 return val
96 def CreateDefaultPalette(self, *_args, **_kwargs):
97 val = apply(glcanvasc.wxGLCanvas_CreateDefaultPalette,(self,) + _args, _kwargs)
98 if val: val = wxPalettePtr(val) ; val.thisown = 1
99 return val
100 def GetPalette(self, *_args, **_kwargs):
101 val = apply(glcanvasc.wxGLCanvas_GetPalette,(self,) + _args, _kwargs)
102 if val: val = wxPalettePtr(val)
103 return val
104 def __repr__(self):
105 return "<C wxGLCanvas instance at %s>" % (self.this,)
106 class wxGLCanvas(wxGLCanvasPtr):
107 def __init__(self,*_args,**_kwargs):
108 self.this = apply(glcanvasc.new_wxGLCanvas,_args,_kwargs)
109 self.thisown = 1
110 self._setOORInfo(self)
111
112
113
114 def wxGLCanvasWithContext(*_args,**_kwargs):
115 val = wxGLCanvasPtr(apply(glcanvasc.new_wxGLCanvasWithContext,_args,_kwargs))
116 val.thisown = 1
117 val._setOORInfo(self)
118 return val
119
120
121
122
123 #-------------- FUNCTION WRAPPERS ------------------
124
125
126
127 #-------------- VARIABLE WRAPPERS ------------------
128
129 WX_GL_RGBA = glcanvasc.WX_GL_RGBA
130 WX_GL_BUFFER_SIZE = glcanvasc.WX_GL_BUFFER_SIZE
131 WX_GL_LEVEL = glcanvasc.WX_GL_LEVEL
132 WX_GL_DOUBLEBUFFER = glcanvasc.WX_GL_DOUBLEBUFFER
133 WX_GL_STEREO = glcanvasc.WX_GL_STEREO
134 WX_GL_AUX_BUFFERS = glcanvasc.WX_GL_AUX_BUFFERS
135 WX_GL_MIN_RED = glcanvasc.WX_GL_MIN_RED
136 WX_GL_MIN_GREEN = glcanvasc.WX_GL_MIN_GREEN
137 WX_GL_MIN_BLUE = glcanvasc.WX_GL_MIN_BLUE
138 WX_GL_MIN_ALPHA = glcanvasc.WX_GL_MIN_ALPHA
139 WX_GL_DEPTH_SIZE = glcanvasc.WX_GL_DEPTH_SIZE
140 WX_GL_STENCIL_SIZE = glcanvasc.WX_GL_STENCIL_SIZE
141 WX_GL_MIN_ACCUM_RED = glcanvasc.WX_GL_MIN_ACCUM_RED
142 WX_GL_MIN_ACCUM_GREEN = glcanvasc.WX_GL_MIN_ACCUM_GREEN
143 WX_GL_MIN_ACCUM_BLUE = glcanvasc.WX_GL_MIN_ACCUM_BLUE
144 WX_GL_MIN_ACCUM_ALPHA = glcanvasc.WX_GL_MIN_ACCUM_ALPHA