]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/glcanvas/gtk/glcanvas.py
   1 # This file was created automatically by SWIG. 
  14 from clip_dnd 
import * 
  26 from stattool 
import * 
  28 from controls 
import * 
  30 from controls2 
import * 
  32 from windows2 
import * 
  36 from windows3 
import * 
  46 class wxGLContextPtr(wxObjectPtr
): 
  47     def __init__(self
,this
): 
  50     def __del__(self
, delfunc
=glcanvasc
.delete_wxGLContext
): 
  56     def SetCurrent(self
, *_args
, **_kwargs
): 
  57         val 
= glcanvasc
.wxGLContext_SetCurrent(self
, *_args
, **_kwargs
) 
  59     def SetColour(self
, *_args
, **_kwargs
): 
  60         val 
= glcanvasc
.wxGLContext_SetColour(self
, *_args
, **_kwargs
) 
  62     def SwapBuffers(self
, *_args
, **_kwargs
): 
  63         val 
= glcanvasc
.wxGLContext_SwapBuffers(self
, *_args
, **_kwargs
) 
  65     def SetupPixelFormat(self
, *_args
, **_kwargs
): 
  66         val 
= glcanvasc
.wxGLContext_SetupPixelFormat(self
, *_args
, **_kwargs
) 
  68     def SetupPalette(self
, *_args
, **_kwargs
): 
  69         val 
= glcanvasc
.wxGLContext_SetupPalette(self
, *_args
, **_kwargs
) 
  71     def CreateDefaultPalette(self
, *_args
, **_kwargs
): 
  72         val 
= glcanvasc
.wxGLContext_CreateDefaultPalette(self
, *_args
, **_kwargs
) 
  73         if val
: val 
= wxPalettePtr(val
) ; val
.thisown 
= 1 
  75     def GetPalette(self
, *_args
, **_kwargs
): 
  76         val 
= glcanvasc
.wxGLContext_GetPalette(self
, *_args
, **_kwargs
) 
  77         if val
: val 
= wxPalettePtr(val
)  
  79     def GetWindow(self
, *_args
, **_kwargs
): 
  80         val 
= glcanvasc
.wxGLContext_GetWindow(self
, *_args
, **_kwargs
) 
  83         return "<%s.%s instance; proxy of C++ wxGLContext instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
) 
  84 class wxGLContext(wxGLContextPtr
): 
  85     def __init__(self
,*_args
,**_kwargs
): 
  86         self
.this 
= glcanvasc
.new_wxGLContext(*_args
,**_kwargs
) 
  92 class wxGLCanvasPtr(wxWindowPtr
): 
  93     def __init__(self
,this
): 
  96     def SetCurrent(self
, *_args
, **_kwargs
): 
  97         val 
= glcanvasc
.wxGLCanvas_SetCurrent(self
, *_args
, **_kwargs
) 
  99     def SetColour(self
, *_args
, **_kwargs
): 
 100         val 
= glcanvasc
.wxGLCanvas_SetColour(self
, *_args
, **_kwargs
) 
 102     def SwapBuffers(self
, *_args
, **_kwargs
): 
 103         val 
= glcanvasc
.wxGLCanvas_SwapBuffers(self
, *_args
, **_kwargs
) 
 105     def GetContext(self
, *_args
, **_kwargs
): 
 106         val 
= glcanvasc
.wxGLCanvas_GetContext(self
, *_args
, **_kwargs
) 
 107         if val
: val 
= wxGLContextPtr(val
)  
 110         return "<%s.%s instance; proxy of C++ wxGLCanvas instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
) 
 111 class wxGLCanvas(wxGLCanvasPtr
): 
 112     def __init__(self
,*_args
,**_kwargs
): 
 113         self
.this 
= glcanvasc
.new_wxGLCanvas(*_args
,**_kwargs
) 
 115         self
._setOORInfo
(self
) 
 119 def wxGLCanvasWithContext(*_args
,**_kwargs
): 
 120     val 
= wxGLCanvasPtr(glcanvasc
.new_wxGLCanvasWithContext(*_args
,**_kwargs
)) 
 122     val
._setOORInfo
(self
) 
 128 #-------------- FUNCTION WRAPPERS ------------------ 
 132 #-------------- VARIABLE WRAPPERS ------------------ 
 134 WX_GL_RGBA 
= glcanvasc
.WX_GL_RGBA
 
 135 WX_GL_BUFFER_SIZE 
= glcanvasc
.WX_GL_BUFFER_SIZE
 
 136 WX_GL_LEVEL 
= glcanvasc
.WX_GL_LEVEL
 
 137 WX_GL_DOUBLEBUFFER 
= glcanvasc
.WX_GL_DOUBLEBUFFER
 
 138 WX_GL_STEREO 
= glcanvasc
.WX_GL_STEREO
 
 139 WX_GL_AUX_BUFFERS 
= glcanvasc
.WX_GL_AUX_BUFFERS
 
 140 WX_GL_MIN_RED 
= glcanvasc
.WX_GL_MIN_RED
 
 141 WX_GL_MIN_GREEN 
= glcanvasc
.WX_GL_MIN_GREEN
 
 142 WX_GL_MIN_BLUE 
= glcanvasc
.WX_GL_MIN_BLUE
 
 143 WX_GL_MIN_ALPHA 
= glcanvasc
.WX_GL_MIN_ALPHA
 
 144 WX_GL_DEPTH_SIZE 
= glcanvasc
.WX_GL_DEPTH_SIZE
 
 145 WX_GL_STENCIL_SIZE 
= glcanvasc
.WX_GL_STENCIL_SIZE
 
 146 WX_GL_MIN_ACCUM_RED 
= glcanvasc
.WX_GL_MIN_ACCUM_RED
 
 147 WX_GL_MIN_ACCUM_GREEN 
= glcanvasc
.WX_GL_MIN_ACCUM_GREEN
 
 148 WX_GL_MIN_ACCUM_BLUE 
= glcanvasc
.WX_GL_MIN_ACCUM_BLUE
 
 149 WX_GL_MIN_ACCUM_ALPHA 
= glcanvasc
.WX_GL_MIN_ACCUM_ALPHA