natiny_backend_get_current
int natiny_backend_get_current(void);
The backend that is actually drawing, as one of the constants listed by
natiny_backend_init. NATINY_BACKEND_AUTO never comes back out of this: by the time
natiny_backend_init has returned non-zero, it has been resolved to a
real one.
Returns
| Type | Description |
|---|---|
int |
Active constant listed by natiny_backend_init; NATINY_BACKEND_AUTO if initialization has not succeeded |
Example
natiny_backend_init(NATINY_BACKEND_AUTO);
printf("drawing with %s\n",
natiny_backend_get_name(natiny_backend_get_current()));