11#ifndef CORE_GP_GETPUTPIXEL_H
12#define CORE_GP_GETPUTPIXEL_H
57 GP_ABORT(
"Invalid pixmap pixel type");
116static inline void gp_putpixel_raw_clipped(
gp_pixmap *pixmap,
119 GP_FN_PER_PACK_PIXMAP(gp_putpixel_raw_clipped, pixmap, pixmap, x, y, p);
uint32_t gp_pixel
Pixel integer value.
int gp_coord
Integer type for coordinates i.e. x, y, ...
Generated macros and function to access pixels.
uint8_t gp_pixel_addr_offset(const gp_pixmap *pixmap, gp_coord x)
Returns a pixel offset in a byte (in pixels).
Defines how are pixels packed in a buffer.
static void gp_putpixel_raw(gp_pixmap *pixmap, gp_coord x, gp_coord y, gp_pixel p)
Puts a pixel value.
static gp_pixel gp_getpixel_raw(const gp_pixmap *pixmap, gp_coord x, gp_coord y)
Gets a pixel value.
void gp_putpixel(gp_pixmap *pixmap, gp_coord x, gp_coord y, gp_pixel p)
Puts a pixel value.
gp_pixel gp_getpixel(const gp_pixmap *pixmap, gp_coord x, gp_coord y)
Gets a pixel value.
#define GP_PIXEL_IS_CLIPPED(pixmap, x, y)
Returns true when pixel is clipped out of pixmap.