Blame c++/contourgl/test.h

93cbac
/*
93cbac
    ......... 2015 Ivan Mahonin
93cbac
93cbac
    This program is free software: you can redistribute it and/or modify
93cbac
    it under the terms of the GNU General Public License as published by
93cbac
    the Free Software Foundation, either version 3 of the License, or
93cbac
    (at your option) any later version.
93cbac
93cbac
    This program is distributed in the hope that it will be useful,
93cbac
    but WITHOUT ANY WARRANTY; without even the implied warranty of
93cbac
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
93cbac
    GNU General Public License for more details.
93cbac
93cbac
    You should have received a copy of the GNU General Public License
93cbac
    along with this program.  If not, see <http: licenses="" www.gnu.org="">.</http:>
93cbac
*/
93cbac
93cbac
#ifndef _TEST_H_
93cbac
#define _TEST_H_
93cbac
93cbac
#include <ctime></ctime>
93cbac
#include <string></string>
93cbac
9edf2e
#include "contour.h"
49e693
#include "environment.h"
a80036
93cbac
class Test {
93cbac
public:
9edf2e
	struct ContourInfo {
9edf2e
		bool invert;
9edf2e
		bool antialias;
9edf2e
		bool evenodd;
9edf2e
		Color color;
9edf2e
		Contour contour;
9edf2e
		ContourInfo(): invert(), antialias(), evenodd() { }
9edf2e
	};
9edf2e
49e693
	Environment &e;
7c6b57
49e693
	Test(Environment &e): e(e) { }
49e693
	~Test() { }
9edf2e
49e693
	void draw_contour(int start, int count, bool even_odd, bool invert, const Color &color);
49e693
	void load(std::vector<contourinfo> &contours, const std::string &filename);</contourinfo>
9edf2e
49e693
	void test1();
49e693
	void test2();
49e693
	void test3();
49e693
	void test4();
93cbac
};
93cbac
93cbac
#endif