]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/GLCanvas.py
Compile fixes for Panther
[wxWidgets.git] / wxPython / demo / GLCanvas.py
index 89b984df694b15fa93532faa945fed7bda6cd672..efffd3d9b5f7d135dc4e928cb42b58dbe35fc28a 100644 (file)
@@ -1,5 +1,6 @@
 
 import wx
 
 import wx
+import sys
 
 try:
     from wx import glcanvas
 
 try:
     from wx import glcanvas
@@ -219,7 +220,7 @@ class ConeCanvas(MyCanvasBase):
         glLight(GL_LIGHT0, GL_DIFFUSE, [1.0, 1.0, 1.0, 1.0])
         glLight(GL_LIGHT0, GL_SPECULAR, [1.0, 1.0, 1.0, 1.0])
         glLight(GL_LIGHT0, GL_POSITION, [1.0, 1.0, 1.0, 0.0])
         glLight(GL_LIGHT0, GL_DIFFUSE, [1.0, 1.0, 1.0, 1.0])
         glLight(GL_LIGHT0, GL_SPECULAR, [1.0, 1.0, 1.0, 1.0])
         glLight(GL_LIGHT0, GL_POSITION, [1.0, 1.0, 1.0, 0.0])
-        glLightModel(GL_LIGHT_MODEL_AMBIENT, [0.2, 0.2, 0.2, 1.0])
+        glLightModelfv(GL_LIGHT_MODEL_AMBIENT, [0.2, 0.2, 0.2, 1.0])
         glEnable(GL_LIGHTING)
         glEnable(GL_LIGHT0)
         glDepthFunc(GL_LESS)
         glEnable(GL_LIGHTING)
         glEnable(GL_LIGHT0)
         glDepthFunc(GL_LESS)
@@ -229,7 +230,8 @@ class ConeCanvas(MyCanvasBase):
         glMatrixMode(GL_MODELVIEW)
         # position viewer
         glTranslatef(0.0, 0.0, -2.0);
         glMatrixMode(GL_MODELVIEW)
         # position viewer
         glTranslatef(0.0, 0.0, -2.0);
-
+        #
+        glutInit(sys.argv)
 
 
     def OnDraw(self):
 
 
     def OnDraw(self):