Blame c++/contourgl/utils.h

49e693
/*
49e693
    ......... 2015 Ivan Mahonin
49e693
49e693
    This program is free software: you can redistribute it and/or modify
49e693
    it under the terms of the GNU General Public License as published by
49e693
    the Free Software Foundation, either version 3 of the License, or
49e693
    (at your option) any later version.
49e693
49e693
    This program is distributed in the hope that it will be useful,
49e693
    but WITHOUT ANY WARRANTY; without even the implied warranty of
49e693
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
49e693
    GNU General Public License for more details.
49e693
49e693
    You should have received a copy of the GNU General Public License
49e693
    along with this program.  If not, see <http: licenses="" www.gnu.org="">.</http:>
49e693
*/
49e693
49e693
#ifndef _UTILS_H_
49e693
#define _UTILS_H_
49e693
49e693
#include <string></string>
49e693
49e693
#include "geometry.h"
572d9c
#include "swrender.h"
49e693
49e693
class Utils {
49e693
public:
49e693
	static Vector get_frame_size();
49e693
49e693
	static void save_rgba(
49e693
		const void *buffer,
49e693
		int width,
49e693
		int height,
49e693
		bool flip,
49e693
		const std::string &filename );
49e693
49e693
	static void save_viewport(const std::string &filename);
49e693
49e693
	static void save_surface(const Surface &surface, const std::string &filename);
49e693
};
49e693
49e693
#endif