Stack and Queue in Open GL