Sources for the SGL libraries were apparently never released. Most of SBL comes with sources, maybe you can find some equivalent functions there? It has a debug library, but I haven't investigated what it does any closer. (If you want to know where the SGL functions are stored, it's in SGL/LIB/LIBSGL.A. All the SGL programs must be linked to this library.)