natiny_backend_get_current
int natiny_backend_get_current(void);
The backend that is actually drawing, as one of the NATINY_BACKEND_*
constants. 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 NATINY_BACKEND_* constant; 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()));
Notes
- Only meaningful once
natiny_backend_init()has returned non-zero.