This repository has been archived on 2023-10-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
blender-archive/source/blender/yafray/intern/api.cpp
Alejandro Conty Estevez ed86852f7e New export through plugin scheme for yafray. It is working on linux and mac os x
Needs latest yafray, you can get it from cvs, but I have also binaries
for os x here:

http://www.coala.uniovi.es/~jandro/noname/downloads/yafray-0.0.6-3.pkg.zip

To use it, go to yafray panels (global settings) and uncheck the "xml" button.
That would tell the export code to avoid xml export and use the yafray plugin
instead. You'll see the render being draw while running and you can even stop it
with ESC key.

Since I'm sure problems will appear, expect updates soon.
Remember: does not work on win32
2004-06-16 18:44:12 +00:00

19 lines
538 B
C++
Executable File

#include "export_File.h"
#include "export_Plugin.h"
static yafrayFileRender_t byfile;
static yafrayPluginRender_t byplugin;
yafrayRender_t *YAFBLEND=&byplugin;
extern "C"
{
void YAF_switchPlugin() {YAFBLEND=&byplugin;}
void YAF_switchFile() {YAFBLEND=&byfile;}
int YAF_exportScene() { return (int)YAFBLEND->exportScene(); }
//void YAF_displayImage() { YAFBLEND->displayImage(); }
void YAF_addDupliMtx(Object* obj) { YAFBLEND->addDupliMtx(obj); }
int YAF_objectKnownData(Object* obj) { return (int)YAFBLEND->objectKnownData(obj); }
}