diff options
| author | Bryan Galdrikian <[email protected]> | 2017-08-23 11:24:32 -0700 |
|---|---|---|
| committer | Bryan Galdrikian <[email protected]> | 2017-08-23 11:24:32 -0700 |
| commit | f1e539cadfb085cedc32f9773cfb9d14bfcdf138 (patch) | |
| tree | 7ca74e06a4386dd22fd850a8417a31a85d282a30 /tools/ArtistTools/source/BlastPlugin/Render/Interface | |
| parent | Updated to CL 22661993: (diff) | |
| download | blast-f1e539cadfb085cedc32f9773cfb9d14bfcdf138.tar.xz blast-f1e539cadfb085cedc32f9773cfb9d14bfcdf138.zip | |
Removing ArtistTools and CurveEditor projects
Diffstat (limited to 'tools/ArtistTools/source/BlastPlugin/Render/Interface')
| -rw-r--r-- | tools/ArtistTools/source/BlastPlugin/Render/Interface/PluginBlast.cpp | 69 | ||||
| -rw-r--r-- | tools/ArtistTools/source/BlastPlugin/Render/Interface/PluginBlast.h | 21 |
2 files changed, 0 insertions, 90 deletions
diff --git a/tools/ArtistTools/source/BlastPlugin/Render/Interface/PluginBlast.cpp b/tools/ArtistTools/source/BlastPlugin/Render/Interface/PluginBlast.cpp deleted file mode 100644 index 3a9c9c9..0000000 --- a/tools/ArtistTools/source/BlastPlugin/Render/Interface/PluginBlast.cpp +++ /dev/null @@ -1,69 +0,0 @@ -#include "PluginBlast.h" - -PluginBlast* g_Plugin = nullptr; - -PluginBlast::PluginBlast() -{ -} - -PluginBlast::~PluginBlast() -{ -} - -typedef PluginBlast*(*Func)(void); - -bool PluginBlast::Create(std::string strApi) -{ - if ("" == strApi) - return false; - - std::string pluginDll = ""; - HMODULE module = NULL; - Func CreateFunc = NULL; - -#ifdef NV_ARTISTTOOLS - pluginDll = "RenderBlast"; -#else - pluginDll = "FurRender"; -#endif - - pluginDll.append(strApi); - -#ifdef _WIN64 - pluginDll.append(".win64"); -#else - pluginDll.append(".win32"); -#endif - -#ifdef _DEBUG - pluginDll.append(".d"); -#else -#endif - - pluginDll.append(".dll"); - - module = LoadLibraryA(pluginDll.c_str()); - if (NULL == module) - return false; - - CreateFunc = (Func)GetProcAddress(module, "CreateRenderBlast"); - if (NULL == CreateFunc) - return false; - - g_Plugin = CreateFunc(); - return (NULL != g_Plugin); -} - -PluginBlast* PluginBlast::Instance() -{ - return g_Plugin; -} - -void PluginBlast::Destroy() -{ - if (nullptr == g_Plugin) - return; - - delete g_Plugin; - g_Plugin = nullptr; -} diff --git a/tools/ArtistTools/source/BlastPlugin/Render/Interface/PluginBlast.h b/tools/ArtistTools/source/BlastPlugin/Render/Interface/PluginBlast.h deleted file mode 100644 index a67fd89..0000000 --- a/tools/ArtistTools/source/BlastPlugin/Render/Interface/PluginBlast.h +++ /dev/null @@ -1,21 +0,0 @@ -#pragma once - -#include "RenderPlugin.h" -#include "blastplugin_global.h" - -class PLUGINBT_EXPORT PluginBlast -{ -public: - static bool Create(std::string api); - static PluginBlast* Instance(); - static void Destroy(); - - ~PluginBlast(); - - // D3D11Shaders - virtual bool D3D11Shaders_InitializeShadersD3D11(std::map<int, D3D11RenderShader*>& ShaderMap) = 0; - -protected: - PluginBlast(); -}; - |