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?