Advertisement

06.09.2008 at 12:39AM PDT, ID: 23468224 | Points: 500
[x]
Attachment Details

translation of objects ( opengl glut)

Asked by jsbsudha in C++ Programming Language, OpenGL Graphics & Game Programming

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_COMPILE)
glepolycone(n,points,colors,r);
glEndList();



Start Free Trial
 
Loading Advertisement...
 
[+][-]06.09.2008 at 12:53AM PDT, ID: 21741568

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.10.2008 at 05:38PM PDT, ID: 21756070

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.10.2008 at 05:44PM PDT, ID: 21756090

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.11.2008 at 01:40AM PDT, ID: 21757899

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.11.2008 at 01:41AM PDT, ID: 21757906

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.11.2008 at 04:23AM PDT, ID: 21758743

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.11.2008 at 04:32AM PDT, ID: 21758789

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628