New export through plugin scheme for yafray. It is working on linux and mac os x
[blender.git] / source / blender / yafray / intern / api.cpp
1 #include "export_File.h"
2 #include "export_Plugin.h"
3
4 static yafrayFileRender_t byfile;
5 static yafrayPluginRender_t byplugin;
6
7 yafrayRender_t *YAFBLEND=&byplugin;
8
9 extern "C" 
10 {
11 void YAF_switchPlugin() {YAFBLEND=&byplugin;}
12 void YAF_switchFile() {YAFBLEND=&byfile;}
13 int YAF_exportScene() { return (int)YAFBLEND->exportScene(); }
14 //void YAF_displayImage() { YAFBLEND->displayImage(); }
15 void YAF_addDupliMtx(Object* obj) { YAFBLEND->addDupliMtx(obj); }
16 int YAF_objectKnownData(Object* obj) { return (int)YAFBLEND->objectKnownData(obj); }
17
18 }