GFXprim
2D bitmap graphics library with emphasis on speed and correctness
|
General backend init. More...
#include <backends/gp_backend.h>
Go to the source code of this file.
Functions | |
gp_backend * | gp_backend_init (const char *params, gp_size pref_w, gp_size pref_h, const char *caption) |
Generic backend initialization. | |
static void | gp_backend_init_help (void) |
Prints information about all backends and parameters. | |
General backend init.
Simplified backend initalization interface good enough for most of the cases.
Definition in file gp_backend_init.h.
gp_backend * gp_backend_init | ( | const char * | params, |
gp_size | pref_w, | ||
gp_size | pref_h, | ||
const char * | caption | ||
) |
Generic backend initialization.
Example usage:
params | A backend init string, in most cases passed down by an user, when NULL or an empty string is passed in params the library attempts to autodetect which backend to use. The params format is "backend_name:backend_params" e.g. "SDL:fs" is string for fullscreen SDL backend. If "help" is passed as a backend name a help is printed into the stderr. |
pref_w | Preferred width pass 0 for default. |
pref_h | Preferred height pass 0 for default. |
caption | A caption used in a case that backends runs in a window with a caption. |
Referenced by gp_backend_init_help().
|
inlinestatic |
Prints information about all backends and parameters.
Prints information about all backends including description of their parameters into the stderr.
Definition at line 65 of file gp_backend_init.h.
References gp_backend_init().