IAstudent
06-03-2004, 11:05 PM
Hello all!
I refer to nehe tutorials to learn quadrics and display lists.
However, when i tried to combine the two, i get an exception error running the program.
Is it such that it is not possible to combine the two at all? or am I missing something?
below is an extract of my code, hope someone can tell me what's wrong with it.. thanks alot!!
glvoid BuildLists()
{
ball = glGenLists(1);
glNewList(ball, GL_COMPILE);
gluSphere(quadratics, 1.0f,32,32);
glEndList();
}
I refer to nehe tutorials to learn quadrics and display lists.
However, when i tried to combine the two, i get an exception error running the program.
Is it such that it is not possible to combine the two at all? or am I missing something?
below is an extract of my code, hope someone can tell me what's wrong with it.. thanks alot!!
glvoid BuildLists()
{
ball = glGenLists(1);
glNewList(ball, GL_COMPILE);
gluSphere(quadratics, 1.0f,32,32);
glEndList();
}