I have developed an application using glut....I am calling some objects in the display function by calllist........But if I translate the objects stored in the calllist before calling the calllist in the display function......Translation is not done ....can anybody tell me why it is not done...?
for example
void display()
{
glpushmatrix()
gltranslatef(x,y,z);
for(i = 0;i<n;i++)
glcalllist(i);
glpopmatrix();
}
The objects are stored in the Lists as follows......
Lists[0] = new genlists(1);
glNewList(Lists[0],GL_COMP
ILE)
glepolycone(n,points,color
s,r);
glEndList();
Start Free Trial