On 11-11-06 11:31 AM, Maximiliano Guerra wrote:
Hi all, this is my first message in this list. Nice to
meet you all.
It is very good for graphics concepts as well opengl, their
code is in c++ but I'm wanting to do it with python.
So I'm tring to do the first tutorial (you can find the
code here: bitbucket.org/alfonse/gltut
step by step and I ran in some problems with glGenBuffers.
In : from OpenGL.GL import *
In : buf = glGenBuffers(1)
Attempt to call an undefined function glGenBuffers, check
for bool(glGenBuffers) before calling
Your code is attempting to call OpenGL-context requiring code
without an OpenGL context (window). Do the glGenBuffer and similar
calls within a draw callback of your windowing system (e.g. GLUT).
You may also need to verify that your machine has a reasonably
recent video card that supports modern OpenGL (but most do these
Mike C. Fletcher
Designer, VR Plumber, Coder