GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
gp_backend_virtual.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2/*
3 * Copyright (C) 2009-2012 Cyril Hrubis <metan@ucw.cz>
4 */
5
6/*
7
8 Virtual backend, could emulate backed with any pixel type on the top of
9 initalized backend. Useful for testing.
10
11 */
12
13#ifndef BACKENDS_GP_BACKEND_VIRTUAL_H
14#define BACKENDS_GP_BACKEND_VIRTUAL_H
15
16#include <core/gp_pixel.h>
17#include <backends/gp_backend.h>
18
19enum gp_backend_virt_flags {
20 /* If set virtual backend exit calls 'parent' exit as well */
21 GP_BACKEND_CALL_EXIT = 0x01,
22};
23
24/*
25 * Create an virtual backend on the top of the existing backend.
26 */
27gp_backend *gp_backend_virt_init(gp_backend *backend,
28 gp_pixel_type pixel_type,
29 enum gp_backend_virt_flags flags);
30
31#endif /* BACKENDS_GP_BACKEND_VIRTUAL_H */
gp_pixel_type
List of all pixel types.
A pixel description.