diff options
| author | Ben Marsh <[email protected]> | 2019-10-22 09:07:59 -0400 |
|---|---|---|
| committer | Ben Marsh <[email protected]> | 2019-10-22 09:07:59 -0400 |
| commit | bd0027e737c6512397f841c22786274ed74b927f (patch) | |
| tree | f7ffbdb8f3741bb7f24635616cc189cba5cb865c /vrayPlug/plugin/shaderMain.cpp | |
| download | shave-and-a-haircut-bd0027e737c6512397f841c22786274ed74b927f.tar.xz shave-and-a-haircut-bd0027e737c6512397f841c22786274ed74b927f.zip | |
Adding Shave-and-a-Haircut 9.6
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 + + |