A 2D tile-based sandbox game.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

OS.h 293B

123456789101112131415161718192021
  1. #pragma once
  2. #include <string>
  3. namespace Swan {
  4. namespace OS {
  5. class Dynlib {
  6. public:
  7. Dynlib(const std::string &path);
  8. ~Dynlib();
  9. template<typename T> T get(const std::string &name) { return (T)getVoid(name); }
  10. void *getVoid(const std::string &name);
  11. private:
  12. void *handle_;
  13. };
  14. }
  15. }