public void popTransform ( ) { if ( stackIndex == 0 ) { throw new RuntimeException ( "Attempt to pop a transform that hasn't be pushed" ) ; } predraw ( ) ; stackIndex -- ; FloatBuffer oldBuffer = ( FloatBuffer ) stack . get ( stackIndex ) ; GL . glLoadMatrix ( oldBuffer ) ; sx = oldBuffer . get ( 16 ) ; sy = oldBuffer . get ( 17 ) ; postdraw ( ) ; }
Pop a previously pushed transform from the stack to the current . This should only be called if a transform has been previously pushed .