Displaying and transforming objects in layers

Apr 3, 2011 at 6:09pm
Using the glDisplayfunc();, I want to display and transform individual objects in layers but its misbehaving instead. I know about how open gl executes the matrices at the bottom of the function first during any translations.

However aside from that I don't know how I can apply individual transformations in layers.

//basically when I add the static_object, the transformations for background are tampered with. Any help here?
1
2
3
4
5
6
7
void Display()
{
	 Background();
	 Static_object();
	glutSwapBuffers();
	Sleep(15);//delay (frame change)
}
Apr 3, 2011 at 6:51pm
Topic archived. No new replies allowed.