Saves a copy of the current context.
This is generally used to temporarily save and restore a context. Example:
void my_function (GrxContext *my_context)
{
GrxContext save;
grx_save_current_context (&save);
grx_set_current_context (my_context);
// call some drawing functions
grx_set_current_context (&save);
}
where |
unused Context where the context will be saved or null |
|