summaryrefslogtreecommitdiff
path: root/meme/overlay.h
blob: 243960894c0a0ce89b7896e5b6b808d3f481c20e (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
25
26
/*
 * overlay.h - Overlay in Gnuplot format
 *
 * Written 2015 by Werner Almesberger
 * Copyright 2015 by Werner Almesberger
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 */


#ifndef OVERLAY_H
#define	OVERLAY_H

struct overlay;


void overlay_draw(const struct overlay *overlay,
    void (*moveto)(void *user, int x, int y),
    void (*lineto)(void *user, int x, int y), void *user);
struct overlay *overlay_load(const char *name,
    void (*xform)(float x, float y, float *res_x, float *res_y));

#endif /* !OVERLAY_H */