Elaztek Developer Hub
Blamite Game Engine - blam!  00398.09.22.23.2015.blamite
The core library for the Blamite Game Engine.
StaticPluginLoader.h
Go to the documentation of this file.
1 /*
2 -----------------------------------------------------------------------------
3 This source file is part of OGRE
4 (Object-oriented Graphics Rendering Engine)
5 For the latest info, see http://www.ogre3d.org/
6 
7 Copyright (c) 2000-2016 Torus Knot Software Ltd
8 
9 Permission is hereby granted, free of charge, to any person obtaining a copy
10 of this software and associated documentation files (the "Software"), to deal
11 in the Software without restriction, including without limitation the rights
12 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13 copies of the Software, and to permit persons to whom the Software is
14 furnished to do so, subject to the following conditions:
15 
16 The above copyright notice and this permission notice shall be included in
17 all copies or substantial portions of the Software.
18 
19 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25 THE SOFTWARE.
26 -----------------------------------------------------------------------------
27 */
28 
29 #ifndef _Demo_StaticPluginLoader_H_
30 #define _Demo_StaticPluginLoader_H_
31 
32 #include "OGRE/OgreBuildSettings.h"
33 
34 namespace Ogre
35 {
36 #ifdef OGRE_STATIC_LIB
37  #ifdef OGRE_BUILD_RENDERSYSTEM_METAL
38  class MetalPlugin;
39  #endif
40  #ifdef OGRE_BUILD_RENDERSYSTEM_D3D11
41  class D3D11Plugin;
42  #endif
43  #ifdef OGRE_BUILD_RENDERSYSTEM_GL3PLUS
44  class GL3PlusPlugin;
45  #endif
46  #ifdef OGRE_BUILD_RENDERSYSTEM_GLES2
47  class GLES2Plugin;
48  #endif
49  #ifdef OGRE_BUILD_RENDERSYSTEM_VULKAN
50  class VulkanPlugin;
51  #endif
52 #endif
53  class Root;
54 }
55 
56 namespace Demo
57 {
60  {
61 #ifdef OGRE_STATIC_LIB
62  unsigned int mDummy;
63  #ifdef OGRE_BUILD_RENDERSYSTEM_GL3PLUS
64  Ogre::GL3PlusPlugin *mGL3PlusPlugin;
65  #endif
66  #ifdef OGRE_BUILD_RENDERSYSTEM_GLES2
67  Ogre::GLES2Plugin *mGLES2Plugin;
68  #endif
69  #ifdef OGRE_BUILD_RENDERSYSTEM_D3D11
70  Ogre::D3D11Plugin *mD3D11PlusPlugin;
71  #endif
72  #ifdef OGRE_BUILD_RENDERSYSTEM_METAL
73  Ogre::MetalPlugin *mMetalPlugin;
74  #endif
75  #ifdef OGRE_BUILD_RENDERSYSTEM_VULKAN
76  Ogre::VulkanPlugin *mVulkanPlugin;
77  #endif
78 #endif
79  public:
82 
83  void install( Ogre::Root *root );
84  };
85 }
86 
87 #endif
88 
Demo::StaticPluginLoader::StaticPluginLoader
StaticPluginLoader()
Definition: StaticPluginLoader.cpp:52
Demo::StaticPluginLoader::~StaticPluginLoader
~StaticPluginLoader()
Definition: StaticPluginLoader.cpp:78
Demo
Definition: BaseSystem.cpp:5
StaticPluginLoader.h
Demo::StaticPluginLoader::install
void install(Ogre::Root *root)
Definition: StaticPluginLoader.cpp:104
Ogre
Definition: ogre2_imgui_manager.h:18
Demo::StaticPluginLoader
Utility class to load plugins statically.
Definition: StaticPluginLoader.h:59