Reference Manual glPushAttrib or glPopAttrib Subroutine Purpose Pushes and pops the attribute stack.
Parameters mask Specifies a mask that indicates which attributes to save.
Values for Mask are provided in the preceding list. The glPushAttrib subroutine takes one argument, a mask that indicates which groups of state variables to save on the attribute stack. Symbolic constants are used to set bits in the mask. The Mask parameter is typically constructed by ORing several of these constants together. The symbolic mask constants and their associated GL states are in the following list.