Setting Up on New Machine

Ian Mallett <[email protected]>
Newsgroups gmane.comp.python.opengl.user
Message-ID <CAG4NV=tsa_hQ7dThzRDDfBEKAkaxd9K_yjnQ+wVByDzut_T2hw@mail.gmail.com>
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

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d

_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net
_______________________________________________
PyOpenGL-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyopengl-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.