Displaying and transforming objects in layers

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)
}
Topic archived. No new replies allowed.