]> git.saurik.com Git - wxWidgets.git/blame - wxPython/contrib/glcanvas/gtk/glcanvas.py
Fixes for the UNICODE build
[wxWidgets.git] / wxPython / contrib / glcanvas / gtk / glcanvas.py
CommitLineData
a29cd6c0 1# This file was created automatically by SWIG.
d14a1e28 2# Don't modify this file, modify the SWIG interface instead.
a29cd6c0 3
d14a1e28 4import _glcanvas
a29cd6c0 5
d14a1e28
RD
6import core
7wx = core
8class GLContext(core.Object):
e811c8ce
RD
9 def __repr__(self):
10 return "<%s.%s; proxy of C++ wxGLContext instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 11 def __init__(self, *args, **kwargs):
0df68c9f
RD
12 """
13 __init__(bool isRGB, GLCanvas win, wxPalette palette=wxNullPalette,
14 GLContext other=None) -> GLContext
15 """
d14a1e28
RD
16 newobj = _glcanvas.new_GLContext(*args, **kwargs)
17 self.this = newobj.this
a29cd6c0 18 self.thisown = 1
d14a1e28
RD
19 del newobj.thisown
20 def __del__(self, destroy=_glcanvas.delete_GLContext):
e811c8ce 21 """__del__()"""
d14a1e28
RD
22 try:
23 if self.thisown: destroy(self)
24 except: pass
e811c8ce
RD
25
26 def SetCurrent(*args, **kwargs):
27 """SetCurrent()"""
28 return _glcanvas.GLContext_SetCurrent(*args, **kwargs)
29
30 def SetColour(*args, **kwargs):
196addbf 31 """SetColour(String colour)"""
e811c8ce
RD
32 return _glcanvas.GLContext_SetColour(*args, **kwargs)
33
34 def SwapBuffers(*args, **kwargs):
35 """SwapBuffers()"""
36 return _glcanvas.GLContext_SwapBuffers(*args, **kwargs)
37
38 def SetupPixelFormat(*args, **kwargs):
39 """SetupPixelFormat()"""
40 return _glcanvas.GLContext_SetupPixelFormat(*args, **kwargs)
41
42 def SetupPalette(*args, **kwargs):
43 """SetupPalette(wxPalette palette)"""
44 return _glcanvas.GLContext_SetupPalette(*args, **kwargs)
45
46 def CreateDefaultPalette(*args, **kwargs):
47 """CreateDefaultPalette() -> wxPalette"""
48 return _glcanvas.GLContext_CreateDefaultPalette(*args, **kwargs)
49
50 def GetPalette(*args, **kwargs):
51 """GetPalette() -> wxPalette"""
52 return _glcanvas.GLContext_GetPalette(*args, **kwargs)
53
54 def GetWindow(*args, **kwargs):
55 """GetWindow() -> Window"""
56 return _glcanvas.GLContext_GetWindow(*args, **kwargs)
57
a29cd6c0 58
d14a1e28
RD
59class GLContextPtr(GLContext):
60 def __init__(self, this):
a29cd6c0 61 self.this = this
d14a1e28
RD
62 if not hasattr(self,"thisown"): self.thisown = 0
63 self.__class__ = GLContext
64_glcanvas.GLContext_swigregister(GLContextPtr)
b2dc1044
RD
65cvar = _glcanvas.cvar
66GLCanvasNameStr = cvar.GLCanvasNameStr
d14a1e28
RD
67
68WX_GL_RGBA = _glcanvas.WX_GL_RGBA
69WX_GL_BUFFER_SIZE = _glcanvas.WX_GL_BUFFER_SIZE
70WX_GL_LEVEL = _glcanvas.WX_GL_LEVEL
71WX_GL_DOUBLEBUFFER = _glcanvas.WX_GL_DOUBLEBUFFER
72WX_GL_STEREO = _glcanvas.WX_GL_STEREO
73WX_GL_AUX_BUFFERS = _glcanvas.WX_GL_AUX_BUFFERS
74WX_GL_MIN_RED = _glcanvas.WX_GL_MIN_RED
75WX_GL_MIN_GREEN = _glcanvas.WX_GL_MIN_GREEN
76WX_GL_MIN_BLUE = _glcanvas.WX_GL_MIN_BLUE
77WX_GL_MIN_ALPHA = _glcanvas.WX_GL_MIN_ALPHA
78WX_GL_DEPTH_SIZE = _glcanvas.WX_GL_DEPTH_SIZE
79WX_GL_STENCIL_SIZE = _glcanvas.WX_GL_STENCIL_SIZE
80WX_GL_MIN_ACCUM_RED = _glcanvas.WX_GL_MIN_ACCUM_RED
81WX_GL_MIN_ACCUM_GREEN = _glcanvas.WX_GL_MIN_ACCUM_GREEN
82WX_GL_MIN_ACCUM_BLUE = _glcanvas.WX_GL_MIN_ACCUM_BLUE
83WX_GL_MIN_ACCUM_ALPHA = _glcanvas.WX_GL_MIN_ACCUM_ALPHA
84class GLCanvas(core.Window):
e811c8ce
RD
85 def __repr__(self):
86 return "<%s.%s; proxy of C++ wxGLCanvas instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 87 def __init__(self, *args, **kwargs):
0df68c9f
RD
88 """
89 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
b2dc1044
RD
90 Size size=DefaultSize, long style=0, String name=GLCanvasNameStr,
91 int attribList=None, wxPalette palette=wxNullPalette) -> GLCanvas
0df68c9f 92 """
d14a1e28
RD
93 newobj = _glcanvas.new_GLCanvas(*args, **kwargs)
94 self.this = newobj.this
a29cd6c0 95 self.thisown = 1
d14a1e28 96 del newobj.thisown
0220cbc1 97 self._setOORInfo(self)
e811c8ce
RD
98
99 def SetCurrent(*args, **kwargs):
100 """SetCurrent()"""
101 return _glcanvas.GLCanvas_SetCurrent(*args, **kwargs)
102
103 def SetColour(*args, **kwargs):
196addbf 104 """SetColour(String colour)"""
e811c8ce
RD
105 return _glcanvas.GLCanvas_SetColour(*args, **kwargs)
106
107 def SwapBuffers(*args, **kwargs):
108 """SwapBuffers()"""
109 return _glcanvas.GLCanvas_SwapBuffers(*args, **kwargs)
110
111 def GetContext(*args, **kwargs):
112 """GetContext() -> GLContext"""
113 return _glcanvas.GLCanvas_GetContext(*args, **kwargs)
114
a29cd6c0 115
d14a1e28
RD
116class GLCanvasPtr(GLCanvas):
117 def __init__(self, this):
118 self.this = this
119 if not hasattr(self,"thisown"): self.thisown = 0
120 self.__class__ = GLCanvas
121_glcanvas.GLCanvas_swigregister(GLCanvasPtr)
a29cd6c0 122
d14a1e28 123def wxGLCanvasWithContext(*args, **kwargs):
0df68c9f
RD
124 """
125 wxGLCanvasWithContext(Window parent, GLContext shared=None, int id=-1, Point pos=DefaultPosition,
126 Size size=DefaultSize,
b2dc1044 127 long style=0, String name=GLCanvasNameStr,
0df68c9f
RD
128 int attribList=None, wxPalette palette=wxNullPalette) -> GLCanvas
129 """
d14a1e28 130 val = _glcanvas.new_wxGLCanvasWithContext(*args, **kwargs)
0220cbc1 131 val.thisown = 1
d14a1e28 132 val._setOORInfo(val)
0220cbc1
RD
133 return val
134
a29cd6c0 135