Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[MANTA] r1439 - trunk/SwigInterface


Chronological Thread 
  • From: abe@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [MANTA] r1439 - trunk/SwigInterface
  • Date: Fri, 29 Jun 2007 10:42:50 -0600 (MDT)

Author: abe
Date: Fri Jun 29 10:42:50 2007
New Revision: 1439

Modified:
   trunk/SwigInterface/wxManta.py
Log:

Added conditional based on sys.platform to use a working gl context init call.

M    wxManta.py


Modified: trunk/SwigInterface/wxManta.py
==============================================================================
--- trunk/SwigInterface/wxManta.py      (original)
+++ trunk/SwigInterface/wxManta.py      Fri Jun 29 10:42:50 2007
@@ -112,11 +112,12 @@
     def __init__(self, parent, sync_display, opengl_display, updateFramerate,
                  size=wx.Size(xres,yres)):
 
-        # This line for linux.
-        # wxGLCanvas.__init__(self, parent, -1, attribList=[GL_DOUBLEBUFFER, 
0], style=wx.NO_BORDER, size=size)
-
-        # This line for OSX
-        wxGLCanvas.__init__(self, parent, -1, style=wx.NO_BORDER, size=size) 
       
+        if (sys.platform == "darwin"):
+            # This line for OSX
+            wxGLCanvas.__init__(self, parent, -1, style=wx.NO_BORDER, 
size=size)
+        else:
+            # This line for linux.
+            wxGLCanvas.__init__(self, parent, -1, 
attribList=[GL_DOUBLEBUFFER, 0], style=wx.NO_BORDER, size=size)
 
         self.sync_display = sync_display
         self.opengl_display = opengl_display




  • [MANTA] r1439 - trunk/SwigInterface, abe, 06/29/2007

Archive powered by MHonArc 2.6.16.

Top of page