SHARE
TWEET

Untitled

a guest Apr 22nd, 2019 64 in 2 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class RenderSystemDll
  2. {
  3. private:
  4.     DynamicLibrary dll{ "GLRenderSystem.dll" };
  5.  
  6. public:
  7.     IRenderSystem* createRenderSystem()
  8.     {
  9.         auto func = dll.getSymbol<IRenderSystem*(*)()>("createRenderSystem");
  10.         return func();
  11.     }
  12.  
  13.     IWindow* createWindow(const std::string& title, uint32_t width, uint32_t height)
  14.     {
  15.         auto func = dll.getSymbol<IWindow* (*)(const std::string& title, uint32_t width, uint32_t height)>("createWindow");
  16.         return func(title, width, height);
  17.     }
  18.    
  19.     //etc
  20. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top