[PyOpenGL-Users] Setting Up on New Machine
Brought to you by:
mcfletch
|
From: Ian M. <geo...@gm...> - 2012-02-02 15:45:30
|
Hi,
I just got a new laptop (64 bit, Py2.6), and am going through the cursory
install-everything phase.
I'm having trouble with PyOpenGL. Standard OpenGL calls appear to be
undefined. The following minimal example:
from OpenGL.GL import *
from OpenGL.GLU import *
from OpenGL.GLUT import *
import pygame
from pygame.locals import *
pygame.init()
Screen = (640,480)
pygame.display.set_mode(Screen,OPENGL|DOUBLEBUF)
glEnable(GL_LIGHTING)
. . . produces (after creating a window, and, therefore hopefully, a
context):
Traceback (most recent call last):
File "C:\Users\Ian Mallett\Desktop\t.py", line 11, in <module>
glEnable(GL_LIGHTING)
File
"C:\dev\Python26\lib\site-packages\pyopengl-3.0.2a3-py2.6.egg\OpenGL\platform\baseplatform.py",
line 377, in __call__
self.__name__, self.__name__,
NullFunctionError: Attempt to call an undefined function glEnable, check
for bool(glEnable) before calling
Help? Thanks,
Ian
|