Initial implementation of GL macros.