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