cubiomes/xmapview.h

32 lines
515 B
C
Raw Normal View History

2018-03-05 21:20:54 +00:00
#ifndef XMAPVIEW_H_
#define XMAPVIEW_H_
#include "generator.h"
#include <X11/X.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/keysym.h>
typedef struct xwin_t
{
Display *dis;
int screen;
Window win;
GC gc;
uint *colbuf;
uint sx, sy;
} xwin_t;
xwin_t init_x(uint sx, uint sy, const char *titel);
void close_x(xwin_t w);
2018-03-17 16:53:16 +00:00
void viewmap(Layer *layer, unsigned char biomeColour[256][3],
2018-03-05 21:20:54 +00:00
int areaX, int areaZ, uint areaWidth, uint areaHeight, uint pixscale);
#endif