GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
gp_backend_init.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2/*
3 * Copyright (C) 2009-2023 Cyril Hrubis <metan@ucw.cz>
4 */
5
6/*
7
8 Simplified backend initalization interface good enough for most of the cases.
9
10 */
11
12#ifndef BACKENDS_GP_BACKEND_INIT_H
13#define BACKENDS_GP_BACKEND_INIT_H
14
15#include <backends/gp_backend.h>
16
33gp_backend *gp_backend_init(const char *params,
34 gp_size pref_w, gp_size pref_h,
35 const char *caption);
36
37static inline void gp_backend_init_help(void)
38{
39 gp_backend_init("help", 0, 0, NULL);
40}
41
42#endif /* BACKENDS_GP_BACKEND_INIT_H */
unsigned int gp_size
Integer type for sizes i.e. w, h, ...
Definition gp_types.h:24