From 5053382808960f3209b3fd217fd6b20b240f0d38 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 13 Jun 2021 12:59:45 +0200 Subject: Added image viewer and blerp scaling --- libs/libgui/bmp.h | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 libs/libgui/bmp.h (limited to 'libs/libgui/bmp.h') diff --git a/libs/libgui/bmp.h b/libs/libgui/bmp.h deleted file mode 100644 index f7fb57f..0000000 --- a/libs/libgui/bmp.h +++ /dev/null @@ -1,39 +0,0 @@ -// MIT License, Copyright (c) 2020 Marvin Borner - -#ifndef BMP_H -#define BMP_H - -#include -#include - -struct bmp_header { - u8 signature[2]; - u32 size; - u32 reserved; - u32 offset; -} PACKED; - -struct bmp_info { - u32 size; - u32 width; - u32 height; - u16 planes; - u16 bpp; - u32 compression; - u32 compressed_size; - u32 x_pixel_meter; - u32 y_pixel_meter; - u32 colors; - u32 important_colors; -}; - -struct bmp { - vec2 size; - u8 *data; - u32 bpp; - u32 pitch; -}; - -struct bmp *bmp_load(const char *path) NONNULL; - -#endif -- cgit v1.2.3