Hi Gang,
I am trying to debug some code that seems like it's giving me some problems. I am getting an GL_INVALID_OPERATION error when I stress out the system, and I can see it is happening around this block of code:
glBegin(GL_LINE_STRIP);
for (azListIter = arcVector_[index].listA_begin();, azListIter != arcVector_[index].listA_.end(); ++azListIter)
{
// create the XYZ point from the Az, El,
// and range from the azListIter
GlobeXYZ pt;
createArcPoint(azListIter->az_,
azListIter->el_,
arcVector_[index].range_,
pt);
double vec[3];
pt.xyzVector(vec);
glVertex3dv(vec);
}
glEnd();
Now, I have heard that nothing should go between a glBegin and a glEnd except for glVertex, glColor, glIndex, glNormal, glTexCoord, etc commands. Is this really true? Can I call regular C++ functions in between a glBegin and glEnd?
Thanks for your help. I am a novice at this stuff.
Roach



