GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
gp_pixel_alias.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later
2/*
3 * Copyright (C) 2023 Cyril Hrubis <metan@ucw.cz>
4 */
5
10#ifndef CORE_GP_PIXEL_ALIAS_H
11#define CORE_GP_PIXEL_ALIAS_H
12
13#include <core/gp_pixel.gen.h>
14
21#ifdef GP_PIXEL_G1_UB
23 GP_PIXEL_G1 = GP_PIXEL_G1_UB,
24#endif
25#ifdef GP_PIXEL_G2_UB
27 GP_PIXEL_G2 = GP_PIXEL_G2_UB,
28#endif
29#ifdef GP_PIXEL_G4_UB
31 GP_PIXEL_G4 = GP_PIXEL_G4_UB,
32#endif
33};
34
35#ifdef GP_PIXEL_G1_UB
36# define GP_PIXEL_G1 GP_PIXEL_G1_UB
37# define GP_PIXEL_ADDR_1BPP GP_PIXEL_ADDR_1BPP_UB
38# define GP_PIXEL_ADDR_OFFSET_1BPP GP_PIXEL_ADDR_OFFSET_1BPP_UB
39# define gp_getpixel_raw_1BPP gp_getpixel_raw_1BPP_UB
40# define gp_putpixel_raw_1BPP gp_putpixel_raw_1BPP_UB
41#endif
42
43#ifdef GP_PIXEL_G2_UB
44# define GP_PIXEL_G2 GP_PIXEL_G2_UB
45# define GP_PIXEL_ADDR_2BPP GP_PIXEL_ADDR_2BPP_UB
46# define GP_PIXEL_ADDR_OFFSET_2BPP GP_PIXEL_ADDR_OFFSET_2BPP_UB
47# define gp_getpixel_raw_2BPP gp_getpixel_raw_2BPP_UB
48# define gp_putpixel_raw_2BPP gp_putpixel_raw_2BPP_UB
49#endif
50
51#ifdef GP_PIXEL_G4_UB
52# define GP_PIXEL_G4 GP_PIXEL_G4_UB
53# define GP_PIXEL_ADDR_4BPP GP_PIXEL_ADDR_4BPP_UB
54# define GP_PIXEL_ADDR_OFFSET_4BPP GP_PIXEL_ADDR_OFFSET_4BPP_UB
55# define gp_getpixel_raw_4BPP gp_getpixel_raw_4BPP_UB
56# define gp_putpixel_raw_4BPP gp_putpixel_raw_4BPP_UB
57#endif
58
59#endif /* CORE_GP_PIXEL_ALIAS_H */
A pixel defintions generated from gen/include/gfxprim_config.py.
gp_pixel_type_alias
List of pixel type aliases.