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