Convert writer_png to C++; add Writer class; add PNGWriter class

This commit is contained in:
Eryn Wells 2013-09-10 21:01:29 -07:00
parent 568e3f4c55
commit 5d8a940f30
4 changed files with 58 additions and 26 deletions

21
src/writer.h Normal file
View file

@ -0,0 +1,21 @@
/* writer.h
*
* Writers handle the interface between (mostly) C libraries to write various image formats and the rest of Charles.
*
* Eryn Wells <eryn@erynwells.me>
*/
#ifndef __WRITER_H__
#define __WRITER_H__
#include <string>
#include "scene.h"
class Writer
{
public:
virtual int write_scene(const Scene &scene, const std::string &filename) = 0;
};
#endif