-
Notifications
You must be signed in to change notification settings - Fork 53
/
graphics.h
18 lines (14 loc) · 858 Bytes
/
graphics.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
struct graphics;
struct tilecontext {
int z;
int x;
int y;
int xoff;
int yoff;
};
struct graphics *graphics_init(int width, int height, char **filetype);
void out(struct graphics *graphics, int transparency, double gamma, int invert, int bg, int color, int color2, int saturate, int mask, double color_cap, int cie);
int drawClip(double x0, double y0, double x1, double y1, struct graphics *graphics, double bright, double hue, long long meta, int antialias, double thick, struct tilecontext *tc);
void drawPixel(double x, double y, struct graphics *graphics, double bright, double hue, long long meta, struct tilecontext *tc);
void drawBrush(double x, double y, struct graphics *graphics, double bright, double brush, double hue, long long meta, int gaussian, struct tilecontext *tc);
void setClip(struct graphics *gc, int x, int y, int w, int h);