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