rulimine/stage2/lib/image.h
mintsuki 5ee53fbe4d Initial work on bitmap and background support. Add a public domain picture.
Co-authored-by: ethan <55000224+ethan4984@users.noreply.github.com>
2020-09-21 17:43:37 +02:00

18 lines
323 B
C

#ifndef __LIB__IMAGE_H__
#define __LIB__IMAGE_H__
#include <stdint.h>
#include <fs/file.h>
struct image {
struct file_handle *file;
int x_size;
int y_size;
uint32_t (*get_pixel)(struct image *this, int x, int y);
void *local;
};
int open_image(struct image *image, struct file_handle *file);
#endif