GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
gp_backend_init.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later
2/*
3 * Copyright (C) 2009-2023 Cyril Hrubis <metan@ucw.cz>
4 */
5
13#ifndef BACKENDS_GP_BACKEND_INIT_H
14#define BACKENDS_GP_BACKEND_INIT_H
15
16#include <backends/gp_backend.h>
17
55gp_backend *gp_backend_init(const char *params,
56 gp_size pref_w, gp_size pref_h,
57 const char *caption);
58
65static inline void gp_backend_init_help(void)
66{
67 gp_backend_init("help", 0, 0, NULL);
68}
69
70#endif /* BACKENDS_GP_BACKEND_INIT_H */
unsigned int gp_size
Integer type for sizes i.e. w, h, ...
Definition gp_types.h:24
An abstraction for display, keyboard and mouse.
static void gp_backend_init_help(void)
Prints information about all backends and parameters.
gp_backend * gp_backend_init(const char *params, gp_size pref_w, gp_size pref_h, const char *caption)
Generic backend initialization.
A backend.
Definition gp_backend.h:72