Welcome to mirror list, hosted at ThFree Co, Russian Federation.

api.cpp « intern « yafray « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0cb1c6fafdffbfb1555f4c75510c722eea7b3dcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#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(Render* re) { return (int)YAFBLEND->exportScene(re); }
}