Gets the API currently in use.
If the renderer has not been realized yet, 0 is returned.
a GL context
the currently used API