summaryrefslogtreecommitdiff
path: root/lib/libgfx/src
AgeCommit message (Collapse)Author
13 hourslibgfx: draw: Add gfx_copy_region()Ian Moffett
This commit introduces a new gfx_copy_region() function that allows a rectangular region of the screen to be defined and its contents copied to a different part of the screen. Signed-off-by: Ian Moffett <ian@osmora.org>
14 hourslibgfx: draw: Add gfx_get_pix() functionIan Moffett
Introduce gfx routine to grab the RGB value of a specific pixel at a specific location on the screen. Signed-off-by: Ian Moffett <ian@osmora.org>
36 hourslibgfx: draw: Add gfx_plot_point() pixel plottingIan Moffett
Implement mechanism that allows one to plot pixels on the screen with a specific color at specific x/y coordinates. Example: -- struct gfx_point p = { .x = 150, .y = 200, .color = GFX_GREEN }; /* Draw green point at (150,200) */ gfx_plot_point(&ctx, &p); -- Signed-off-by: Ian Moffett <ian@osmora.org>
36 hourslibgfx: draw: Add gfx_pixel_bounds() helperIan Moffett
Implement helper to check if a point on the screen is within bounds of the screen. Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayslib: Introduce libgfxIan Moffett
This commit introduces libgfx which is a low-level graphics library and does not know anything about windows, display architecture, etc. The job of libgfx is soley to provide an API to draw shapes, graphical objects and perform operations on them. Signed-off-by: Ian Moffett <ian@osmora.org>