diff options
Diffstat (limited to 'vrayPlug/plugin/shaderMain.cpp')
| -rw-r--r-- | vrayPlug/plugin/shaderMain.cpp | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/vrayPlug/plugin/shaderMain.cpp b/vrayPlug/plugin/shaderMain.cpp new file mode 100644 index 0000000..1cee2bc --- /dev/null +++ b/vrayPlug/plugin/shaderMain.cpp @@ -0,0 +1,51 @@ +// Shave and a Haircut +// (c) 2019 Epic Games +// US Patent 6720962 + +// shaderMain.cpp : Defines the entry point for the DLL application. +// + +#ifdef WIN32 +#include <windows.h> +#endif + +#include "hairAPIvray.h" +#include "shaveVrayBaseBSDFPool.h" + +#ifdef WIN32 +#ifdef _MANAGED +#pragma managed(push, off) +#endif + +BOOL APIENTRY DllMain( HMODULE hModule, + DWORD ul_reason_for_call, + LPVOID lpReserved + ) +{ + switch (ul_reason_for_call) + { + case DLL_PROCESS_ATTACH: + case DLL_THREAD_ATTACH: + case DLL_THREAD_DETACH: + case DLL_PROCESS_DETACH: + break; + } + return TRUE; +} + +#ifdef _MANAGED +#pragma managed(pop) +#endif + +SHAVEVRAYSH_API IShaveBSDFPool* CreateShaveBSDFPool() +{ + return new shaveVrayBaseBSDFPool(); +} +#else //linux +extern "C" IShaveBSDFPool* CreateShaveBSDFPool() +{ + return new shaveVrayBaseBSDFPool(); +} +#endif + + |