// mgf export filter

#ifndef _MGF_EXPORTER_H_
#define _MGF_EXPORTER_H_

// include base xrml exporter header file
#include "../exporter.H"

namespace mgf {
  class exporter: public xrml::exporter {
  private:
    char* progname;
    bool rgb_vertex_colors;

  public:
    exporter(char* progname =0, bool rgb_vertex_colors =false);

    // Called by xrml::world::save() after opening the output
    // file handle (if appropriate) and before calling
    // save() below.
    void init(class xrml::file* file_handle);

    // This member functions does the actual exporting.
    void save(class xrml::world* wrl);
  };
} // end namespace mgf

#endif /* _MGF_EXPORTER_H_ */
