aboutsummaryrefslogtreecommitdiffstats
path: root/src/meh.h
blob: 46f4e0e07bb2d20486eab89bd168c476cb4d6b92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <stdio.h>

struct image;

struct imageformat{
	struct image *(*open)(FILE *);
	int (*read)(struct image *);
};

struct image{
	unsigned char *buf;
	unsigned int width, height;
	FILE *f;
	struct imageformat *fmt;
};

#include "X11/Xlib.h"

XImage *ximage(struct image *img, unsigned int width, unsigned int height);
void setaspect(unsigned int w, unsigned int h);
void xinit();
void drawimage(struct image *img, unsigned int width, unsigned int height);