diff --git a/include/render/bitmap.h b/include/render/bitmap.h new file mode 100644 index 0000000..2850343 --- /dev/null +++ b/include/render/bitmap.h @@ -0,0 +1,37 @@ +#include +#include + +/* bitmap codé bit à bit + 0 dans layout -> transparent + 1 dans layout -> 1 dans color -> noir + 0 dans color -> blanc */ + + + + +struct bitmap_rich_8 +{ + uint32_t size_x, + uint32_t size_y, + + uint8_t * color; + uint8_t * layout; +}; + +struct bitmap_rich_16 +{ + uint32_t size_x, + uint32_t size_y, + + uint16_t * color; + uint16_t * layout; +}; + +struct bitmap_rich_32 +{ + uint32_t size_x, + uint32_t size_y, + + uint32_t * color; + uint32_t * layout; +}; \ No newline at end of file diff --git a/src/render/bitmap.c b/src/render/bitmap.c new file mode 100644 index 0000000..1846d85 --- /dev/null +++ b/src/render/bitmap.c @@ -0,0 +1,3 @@ +#include + +bool \ No newline at end of file