C/C++ library for Framebuffer graphics
#include "libfb.h"
int main()
{
use_fb("fb0");
draw_rect(10, 10, 100, 100, 1, 0xf2ff00);
close_fb();
return 0;
}
open given frame buffer
bool use_fb(char* fb_)
close frame buffer
void close_fb()
draw .jpg
and .png
bool draw_image(int32_t offset_x, int32_t offset_y, uint32_t img_width,
uint32_t img_height, const char *image_path)
draw pixel
void draw_pixel(int32_t x, int32_t y, uint32_t color)
draw reactangle
void draw_rect(int32_t x, int32_t y, uint32_t width, uint32_t height,
uint32_t borderWidth, uint32_t borderColor)
draw round rectangle
void draw_rect_round(int32_t x, int32_t y, uint32_t width, uint32_t height,
uint32_t borderWidth, uint32_t borderRadius, uint32_t borderColor)
Here are the sources of code that the /vendor
directory contains, these files are simply copied from the source without modification