2013-09-10 21:01:29 -07:00
|
|
|
/* 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>
|
2013-09-14 16:16:25 -07:00
|
|
|
|
|
|
|
|
2014-08-09 20:46:14 -07:00
|
|
|
namespace charles {
|
|
|
|
|
|
|
|
struct Scene;
|
2013-09-10 21:01:29 -07:00
|
|
|
|
|
|
|
|
|
|
|
class Writer
|
|
|
|
{
|
|
|
|
public:
|
2013-09-15 09:27:05 -07:00
|
|
|
virtual
|
|
|
|
~Writer()
|
|
|
|
{ }
|
|
|
|
|
2013-09-10 21:01:29 -07:00
|
|
|
virtual int write_scene(const Scene &scene, const std::string &filename) = 0;
|
|
|
|
};
|
|
|
|
|
2014-08-09 20:46:14 -07:00
|
|
|
} /* namespace charles */
|
|
|
|
|
2013-09-10 21:01:29 -07:00
|
|
|
#endif
|