5 --------------------------------------------------------------------------------
8 #include <core/GP_GetPutPixel.h>
10 GP_Pixel GP_GetPixel(const GP_Context *context, GP_Coord x, GP_Coord y);
12 void GP_PutPixel(GP_Context *context, GP_Coord x, GP_Coord y, GP_Pixel p);
13 --------------------------------------------------------------------------------
15 Gets, puts a pixel value. GP_Pixel is a number which holds a pixel value.
17 This functions are clipped, GetPixel outside of the context returns zero,
18 PutPixel outside the context is no-op.
20 This functions honour link:context.html[context rotation flags].
22 Generally these function are safe to use but rather slow in innner cycles.
25 --------------------------------------------------------------------------------
28 #include <core/GP_GetPutPixel.h>
30 GP_Pixel GP_GetPixel_Raw(const GP_Context *context, GP_Coord x, GP_Coord y);
32 void GP_PutPixel_Raw(GP_Context *context, GP_Coord x, GP_Coord y, GP_Pixel p);
35 * Substitute {{ bpp }} for specific bits per pixel (1BPP_LE, 24BPP, ...)
37 * These macros are generated to core/GP_GetPutPixel.gen.h
39 GP_Pixel GP_GetPixel_Raw_{{ bpp }}(const GP_Context *c, int x, int y);
41 void GP_PutPixel_Raw_{{ bpp }}(GP_Context *c, GP_Coord x, GP_Coord y,
43 --------------------------------------------------------------------------------
45 These functions are generally fast, but does not honour context rotation flags
46 and do not check coordinates.
48 They are intended as basic building blocks for other GFX primitives, filters,