a simple quad utility for stackgl