This repository has been archived on 2023-10-09. You can view files and clone it, but cannot push or open issues or pull requests.
Files
blender-archive/source/blender/yafray/intern/export_File.h
Brecht Van Lommel ec04c09365 Fix for error in approximate AO in last commit, made it really slow.
Also, duplis are now taking into account, the proper way to exclude
them is to set the material to be not traceable.

Removed an unnecessary pointer from the VlakRen struct to save some
memory, not really that significant, but still, saves 70 mb for 10
million faces.
2008-01-21 23:17:19 +00:00

35 lines
1.0 KiB
C++

#ifndef __EXPORT_FILE_H
#define __EXPORT_FILE_H
#include"yafray_Render.h"
class yafrayFileRender_t : public yafrayRender_t
{
public:
virtual ~yafrayFileRender_t() {}
protected:
std::string imgout;
std::ofstream xmlfile;
std::string xmlpath;
std::ostringstream ostr;
void displayImage();
bool executeYafray(const std::string &xmlpath);
virtual void writeTextures();
virtual void writeShader(const std::string &shader_name, Material* matr, const std::string &facetexname="");
virtual void writeMaterialsAndModulators();
virtual void writeObject(Object* obj, ObjectRen *obr, const std::vector<VlakRen*> &VLR_list, const float obmat[4][4]);
virtual void writeAllObjects();
virtual void writeAreaLamp(LampRen* lamp, int num, float iview[4][4]);
virtual void writeLamps();
virtual void writeCamera();
virtual void writeHemilight();
virtual void writePathlight();
virtual bool writeWorld();
virtual bool writeRender();
virtual bool initExport();
virtual bool finishExport();
};
#endif