From dc7fb184f845033fd7551c0b6073bbfaa3207f85 Mon Sep 17 00:00:00 2001 From: sbosse Date: Mon, 14 Oct 2024 23:08:04 +0200 Subject: [PATCH] Mon 14 Oct 23:06:38 CEST 2024 --- kernel/bitmap.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 kernel/bitmap.h diff --git a/kernel/bitmap.h b/kernel/bitmap.h new file mode 100644 index 0000000..5969369 --- /dev/null +++ b/kernel/bitmap.h @@ -0,0 +1,27 @@ +/* +Copyright (C) 2016-2019 The University of Notre Dame +This software is distributed under the GNU General Public License. +See the file LICENSE for details. +*/ + +#ifndef BITMAP_H +#define BITMAP_H + +#include "kernel/types.h" + +struct bitmap *bitmap_create_root(); + +struct bitmap *bitmap_create(int width, int height, int format); +void bitmap_delete(struct bitmap *b); + +struct bitmap { + uint32_t width; + uint32_t height; + uint32_t format; + uint8_t *data; +}; + +#define BITMAP_FORMAT_RGB 0 +#define BITMAP_FORMAT_RGBA 1 + +#endif